1.

What is the worst case time complexity of delete operation(n is the no. of candidates)?(a) O(1)(b) O(n)(c) O(log n)(d) O(n log n)My question is from Trees in division Trees of Data Structures & Algorithms IThe question was asked in class test.

Answer»

The correct choice is (b) O(n)

EASIEST explanation - The WORST CASE in a BIN delete operation OCCURS when all the candidates are concentrated in one bin. So in this case the time complexity is O(n).



Discussion

No Comment Found

Related InterviewSolutions