1.

What is the runtime efficiency of using brute force technique for the closest pair problem?(a) O(N)(b) O(N log N)(c) O(N^2)(d) O(N^3log N)I got this question in class test.The origin of the question is Computational Geometry in portion Computational Geometry of Data Structures & Algorithms II

Answer»

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

Easy EXPLANATION - The efficiency of closest pair algorithm by BRUTE force TECHNIQUE is MATHEMATICALLY found to be O(N^2).



Discussion

No Comment Found

Related InterviewSolutions