I need to find for each dataset point all of its closest neighbors. The data set contains approx. 10 million two-dimensional points. Data is close to a grid, but does not form an exact grid ...
This option eliminates (in my opinion) the use of KD Trees, where the main assumption does not have points having the same x coordinate and y coordinate.
I need a fast O (n) algorithm or better (but not too complicated to implement :-))) to solve this problem ... Due to the fact that boost is not standardized, I do not want to use it ...
Thanks for your answers or sample code ...
c ++ algorithm nearest-neighbor large-data
Ian
source share