Select the correct name for: a comparison-based sorting algorithm that uses a binary heap data structure to sort elements.
- A. Insertion sort
- B. Space complexity
- C. Heap sort ✓
- D. Randomized algorithm
Correct answer
C. Heap sort
Explanation
Heap sort refers to a comparison-based sorting algorithm that uses a binary heap data structure to sort elements.