Consider the following statements related to the binary tree sort. I. Element can be added gradually as they become available II. It needs

Lượng Tiger

New member
Consider the following statements related to the binary tree sort.
I. Element can be added gradually as they become available
II. It needs extra memory space
A. Statement I is true but Statement II is false
B. Both Statement I and Statement II are false
C. Both Statement I and Statement II are true
D. Statement II is true but Statement I is false
 
Answer: c
Explanation: Binary tree sort is dynamic sorting, that is it gets more efficient as more the elements are added. So, we can add elements gradually as they become available. Binary tree sort requires extra memory space, its worst case space complexity is Θ(n).
 

Tìm kiếm

Back
Top