Which of the following is false?

Which of the following is false?
A. Binary tree sort and quick sort have same running time
B. Binary tree sort used BST as work area
C. As the number of elements to sort gets larger, binary tree sort gets more and more efficient
D. Both quick sort and binary tree are in place sorting algorithms
 
Answer: d
Explanation: Binary tree sort and quick sort have same running time i.e O(nlogn)
in average case and O(n$^{2}$) in worst case. Binary tree is not in-place sorting algorithm.
 

Tìm kiếm

Back
Top