Algorithms

Which statement correctly explains Heap sort?

Correct answer

D. A comparison-based sorting algorithm that uses a binary heap data structure to sort elements.

Explanation

Heap sort refers to a comparison-based sorting algorithm that uses a binary heap data structure to sort elements.