1.

What is the worst case of finding the nearest neighbour?(a) O(N)(b) O(N log N)(c) O( log N)(d) O(N^3)Enquiry is from Trees topic in division Trees of Data Structures & Algorithms IThe question was asked during an interview.

Answer»

Correct answer is (a) O(N)

The EXPLANATION is: The worst CASE ANALYSIS of finding the nearest neighbour in a k-d tree is mathematically FOUND to be O(N).



Discussion

No Comment Found

Related InterviewSolutions