Given n points in the space. Now given a new point you have to find
the nearest neigbour to it from initial n points
This can be done in O(n), a trivial solution.
This can also be accomplished in O(logn) by space partioning. here is
a link:
         http://en.wikipedia.org/wiki/Nearest_neighbor_search#Space_partitioning

can anybody give a pseudo code or commented C code to impliment it. I
do not understood how to implement it.

this is a google interview question and its variation is a amazon's
question. :)

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to