Heap Sort Visualizer

0 elements
50%
Comparisons: 0
Swaps: 0
Status: Idle

Heap Sort Explained

Heap Sort uses a binary heap to sort an array by building a min heap and repeatedly extracting the minimum element.

Algorithm Characteristics

  • Time ComplexityO(n log n)
  • Space ComplexityO(1)
  • Data StructureHeap
  • StabilityNo

Key Properties

  • Builds a min heap to prioritize smallest elements

  • In-place sorting algorithm with no extra memory

  • Not stable but guarantees O(n log n) performance

  • Efficient for large datasets with heap properties

Heap Sort shines in systems where memory is limited but sorting speed is critical