wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The drawbacks of the binary tree sort are remedied by the-

A
Linear sort
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Quick sort
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Heap sort
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Insertion sort
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Heap sort

The drawbacks of the binary tree sort are remedied by the heap sort.

Heap sort is a comparison based sorting technique based on binary heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end.

The shape of the tree depends on the order of insertions, and it can be degenerated has to be compared with the key of the element to be inserted/found. Keys may be long and the run time may increase much.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Sets and Their Representations
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon