vault backup: 2022-06-11 13:22:25

This commit is contained in:
Jet Hughes 2022-06-11 13:22:25 +12:00
parent 5d6273b7fe
commit fd0570cc56

View File

@ -9,6 +9,9 @@ tags:
# 3 Heap Sort
In place and ϴ(n lg n)
![works in place](https://i.imgur.com/EbqSl4Y.png)
- start with array
- using itself as a heap, add the elements one at a time until all been added
- Then remove them one at a time - the largest elements gets removed first and the place where is needs to be put gets freed from the map