1.

What is the run time of finding the nearest neighbour in a k-d tree?(a) O(2+ log N)(b) O( log N)(c) O(2^d log N)(d) O( N log N)My query is from Trees topic in chapter Trees of Data Structures & Algorithms IThe question was asked in homework.

Answer»

Right answer is (c) O(2^d log N)

To EXPLAIN: The run TIME of finding the nearest neighbour in a KD TREE is given as O(2^d log N) where 2^d is the time taken to search the neighbourhood.



Discussion

No Comment Found

Related InterviewSolutions