1.

What is the total time spent for N-1 merges in a dynamic equivalence problem?(a) O(N)(b) O(log N)(c) O(N log N)(d) O(M log N)The above asked question is from Trees in section Trees of Data Structures & Algorithms IThe question was asked in unit test.

Answer»

The CORRECT CHOICE is (c) O(N log N)

Easy EXPLANATION - The total time spent for N-1 merges in a dynamic EQUIVALENCE problem is mathematically found to be O(N log N).



Discussion

No Comment Found

Related InterviewSolutions