Code Monkey home page Code Monkey logo

Comments (4)

lvella avatar lvella commented on September 18, 2024

Or even an "infinite" number of dimensions, where all the dimensions beyond the dynamically set dimension of a given Point assumes a default (zero?) value.

from rstar.

rmanoka avatar rmanoka commented on September 18, 2024

I am unsure of the theoretical feasibility of such a data-structure, but r-star knn algorithm gets very slow (slower than linear search) for high-dimensional data (ref), Could you explain your use-case further?

Our current impl. requires the dimension to be known apriori, and also to be a const. (because our trait Point requires Copy which also implies const. size). I'm also unsure if any other library supports this.

from rstar.

lvella avatar lvella commented on September 18, 2024

I have a set of monomials (e.g: { x²y, xz, yz², x³yz⁴}) and I want to quickly find the subset of monomials that divides some other given monomial (e.g: given monomial xyz, from that set, only xz divides it). Using this particular example, the problem is equivalent to having the set of points {(2,1,0), (1,0,1), (0,1,2), (3,1,4)} (each variable is a dimension, the exponents are the coordinates values), and finding what point has all coordinates less than or equal the given point (1,1,1).

The problem here is that the number of variables is unknown beforehand. And yes, it can get very big, so maybe r*-tree is not for me.

from rstar.

Stoeoef avatar Stoeoef commented on September 18, 2024

I agree with @rmanoka on this one - the rtree is probably going to be too slow for this use case if the number of dimensions is too high.

Also, dropping Copy for point types would really hurt our maintenance for little gain.

Closing as this isn't likely to be implemented.

from rstar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.