InterviewSolution
Saved Bookmarks
| 1. |
What is the worst case efficiency for a path compression algorithm?(a) O(N)(b) O(log N)(c) O(N log N)(d) O(M log N)My doubt stems from Trees in section Trees of Data Structures & Algorithms IThis question was addressed to me in homework. |
|
Answer» RIGHT OPTION is (d) O(M log N) Best explanation: The worst case EFFICIENCY for a PATH COMPRESSION algorithm is mathematically found to be O(M log N). |
|