cga/Algorithms/KDTree
hasufell 899afc7287
ALGO: fix runtime complexity in KDTree
The old code in fact increased the complexity to O(n^2), because
we applied 'elem' which is O(n) to every element of xs.

Instead we compare (in case of partitioning against Y) the y-value
of every element of xs with the y-value of the pivot which tells us
if x lies within ys.
2014-12-02 19:01:04 +01:00
..
KDTree.hs ALGO: fix runtime complexity in KDTree 2014-12-02 19:01:04 +01:00