#kdtree and ball trees seem cool, but require full knowledge of the thing I'm searching for. What if it's 7 dimensional and I only know 4 of the values?

I feel like a "parallel kd tree" with a separate binary index on each dimension would work better here.

Reduce depth. Allow unspecified values. It'd also be a snap to create and search each dim in parallel.

This must already exist...

#computerscience #math

By using a #KDTree the calculation time goes down from 5.75 to 1.0 seconds #CreativeCoding

Randomly stumbled into #kdtree #quadtree #algorithm today and it happened to allllmost line up with a work problem I've been pondering.

My problem involves moving objects. Not just moving, but I want to query them at different points in time.

I think if I just add a time dimension (HexTrees?) it might work...? I'm not clear on the details of the actual algorithm or how this would work. #software #math

I've been using sklearns #kdtree to find intervalls contained in other intervalls by viewing intervalls as points in 2d space and finding all points within an l-infinity ball. Problem is I need to rotate and shift the ball as sklearns implemention does l-1 but not l-infinity.

Now I want to extend to boxes, viewed as points in 4d space. Any suggestions on how to do the l-infinity to l-1 transform?

#math

I wrote a #kdtree implementation for #javascript today, in case you need fast querying of k nearest neighbors or nearest neighbors in ball of radius R check out https://github.com/benmaier/kd-tree-js
GitHub - benmaier/kd-tree-js: A JavaScript implementation of a kd tree that enables fast searches for points within a range as well as nearest neighbors in d dimensions

A JavaScript implementation of a kd tree that enables fast searches for points within a range as well as nearest neighbors in d dimensions - GitHub - benmaier/kd-tree-js: A JavaScript implementatio...

GitHub
RT @[email protected]: Finally managed to implement my K-D Tree, and pixel-perfect collisions!
https://en.wikipedia.org/wiki/K-d_tree
#gamedev #algorithm #kdtree
k-d tree - Wikipedia