InterviewSolution
Saved Bookmarks
| 1. |
In divide and conquer, the time is taken for merging the subproblems is?(a) O(N)(b) O(N log N)(c) O(N^2)(d) O(log N)I got this question in quiz.My doubt stems from Computational Geometry topic in division Computational Geometry of Data Structures & Algorithms II |
|
Answer» RIGHT answer is (b) O(N LOG N) Easiest explanation - The time taken for merging the smaller SUBPROBLEMS in a divide and conquer approach is mathematically FOUND to be O(N log N). |
|