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

Khang Lê

New member
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. False
 
Answer: a
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.
 

Tìm kiếm

Back
Top