1.

The worst case time complexity of tree sort remains unaffected when implemented with an unbalanced tree or a balanced tree.(a) True(b) FalseThe question was posed to me during an interview.This interesting question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

The correct CHOICE is (b) False

The explanation is: The time complexity of tree SORT is AFFECTED when implemented with an unbalanced tree or a balanced tree. In case of a balanced tree it is O(n LOG n) and in case of unbalanced tree it is O(n^2).



Discussion

No Comment Found

Related InterviewSolutions