An open API service indexing awesome lists of open source software.

https://github.com/nelsonbn/algorithms-data-structures-heap-sort

Algorithms and Data Structures - Heap Sort
https://github.com/nelsonbn/algorithms-data-structures-heap-sort

algorithms algorithms-and-data-structures data-structures

Last synced: about 1 month ago
JSON representation

Algorithms and Data Structures - Heap Sort

Awesome Lists containing this project

README

          

# Algorithms and Data Structures - Heap Sort

## Characteristics
- Time complexity:
- Best: Ω(n log(n))
- Average: Θ(n log(n))
- Worst: O(n log(n))
- Space complexity:
- Recursive: O(log(n))
- Iterative: O(1)
- In-place
- Unstable

## Demos:
- [Basic Implementation](./src/basic.py)
- [Optimized Comparisons](./src/optimized_comparisons.py)
- [Without Recursion](./src/without_recursion.py)

## Demonstration
- [Algorithm Visualizer](https://www.cs.usfca.edu/~galles/visualization/HeapSort.html)
- [Algorithm Visualizer](https://algorithm-visualizer.org/brute-force/heapsort)

## References
- [Other Algorithms & Data Structures](https://github.com/NelsonBN/algorithms-data-structures)