1.

Binary tree sort implemented using a self balancing binary search tree takes O(n log n) time in the worst case but still it is slower than merge sort.(a) True(b) FalseMy question is taken from Binary Trees topic in portion Binary Trees of Data Structures & Algorithms II got this question by my school principal while I was bunking the class.

Answer»

Correct choice is (a) True

The best explanation: The worst case PERFORMANCE of binary tree SORT is O(N log n) when it is implemented using a self balancing binary SEARCH tree. Self balancing binary search trees perform transformations to balance the tree, which caused balancing overhead. DUE to this overhead, binary tree sort is slower than merger sort.



Discussion

No Comment Found

Related InterviewSolutions