Which of the following sorting algorithms can be considered as improvement to the binary tree sort?

Which of the following sorting algorithms can be considered as improvement to the binary tree sort?
A. Heap sort
B. Quick sort
C. Selection sort
D. Insertion sort
 
Answer: a
Explanation: Heap sort is basically improvement to the binary tree sort. Heap sort builds a heap on the input element by adjusting the position of the elements within the original array, rather than creating nodes as in binary tree sort.
 

Tìm kiếm

Back
Top