Binary tree sort is an in-place sorting algorithm.

Ngân Lam

New member
Binary tree sort is an in-place sorting algorithm.
A. True
B. False
 
Answer: b
Explanation: In binary tree sort it is required to reserve one tree node for each array element. Its implementation requires two pointer variables for each node. So, it requires extra memory. The worst case space complexity of binary tree sort is Θ(n). Therefore, binary tree sort is not an in-place sorting algorithm.
 

Tìm kiếm

Back
Top