erdavila / m-tree Goto Github PK
View Code? Open in Web Editor NEWA data structure for efficient nearest-neighbor queries.
License: MIT License
A data structure for efficient nearest-neighbor queries.
License: MIT License
Hi,
this M-Tree Java implementation works as it outputs the correct nearest neighbors in the correct order. Thank you for open sourcing this! But when I count the number of distance calculations I always get a larger number than there are items in the M-Tree :/ Am I doing something wrong?
flo
I am trying to run this project with new GCC version 11.2.0 and facing an issue with dynamic exception specifications error:
mtree.h:669:85: error: ISO C++17 does not allow dynamic exception specifications
669 | void addData(const Data& data, double distance, const mtree* mtree) throw(SplitNodeReplacement) {
| ^~~~~
mtree.h:723:98: error: ISO C++17 does not allow dynamic exception specifications
723 | virtual void doRemoveData(const Data& data, double distance, const mtree* mtree) throw (DataNotFound) = 0;
...
Removing the throw specification completely will resolve the issue but is there any other way to fix this problem? I have tried to change the default configuration settings(i.e. "cppStandard": "c++17" to "cppStandard": "c++11") but still getting the same issue.
As I can see splitting the nodes in a bottom-up fashion is realized by throwing and catching some data. But it's said that throwing-catching should only be applied for exceptional situation, errors, not in the usual program execution, because that mechanism is very slow and just breakes the rule of good programming style.
So why not add in every node a reference to it's parent? Is it the way to avoid the stack overflow due to a recursion?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.