Skip to content

Commit a170997

Browse files
jfeng43tapaswenipathak
authored andcommitted
Add animation for heap sort
1 parent b2f1d9c commit a170997

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ __Properties__
8989

9090

9191
### Heap
92+
![alt text][heapsort-image]
9293

9394
**Heapsort** is a _comparison-based_ sorting algorithm. It can be thought of as an improved selection sort. It divides its input into a sorted and an unsorted region, and it iteratively shrinks the unsorted region by extracting the largest element and moving that to the sorted region.
9495

@@ -311,6 +312,7 @@ where {\displaystyle \oplus } \oplus denotes the exclusive disjunction (XOR) op
311312
[quick-wiki]: https://en.wikipedia.org/wiki/Quicksort
312313
[quick-image]: https://upload.wikimedia.org/wikipedia/commons/6/6a/Sorting_quicksort_anim.gif "Quick Sort"
313314

315+
[heapsort-image]: https://upload.wikimedia.org/wikipedia/commons/4/4d/Heapsort-example.gif "Heap Sort"
314316
[heap-wiki]: https://en.wikipedia.org/wiki/Heapsort
315317

316318
[radix-wiki]: https://en.wikipedia.org/wiki/Radix_sort

0 commit comments

Comments
 (0)