1.

What is the optimal time required for solving the closest pair problem using divide and conquer approach?(a) O(N)(b) O(log N)(c) O(N log N)(d) O(N^2)The question was asked in class test.This intriguing question comes from Computational Geometry in portion Computational Geometry of Data Structures & Algorithms II

Answer»

Correct ANSWER is (c) O(N LOG N)

The BEST EXPLANATION: The optimal TIME for solving using a divide and conquer approach is mathematically found to be O(N log N).



Discussion

No Comment Found

Related InterviewSolutions