Skip to content

Commit 49b3857

Browse files
liesislukasmgechev
authored andcommitted
Create readme.md (mgechev#94)
* Create readme.md starting comparison table * Update readme.md * Update readme.md updated bubblesort complexity
1 parent aa9beea commit 49b3857

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/sorting/readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Comparison of all sorting algorithms
2+
3+
| Algorithm | Complexity | When to use? |
4+
|----------------------------|-----------------------------------------------------|--------------|
5+
| 3-way-string-quicksort.js | O(N^2) | |
6+
| bubblesort.js | O(N^2) | |
7+
| bucketsort.js | O(N) | |
8+
| countingsort.js | O(N) | |
9+
| heapsort.js | O(N log N) | |
10+
| insertion-binary-sort.js | O(N^2) | |
11+
| insertionsort.js | O(N^2) | |
12+
| lsd.js | O(N*M) for N keys which have M or fewer digits | |
13+
| mergesort.js | O(n log(n)) | |
14+
| msd.js | O(N*M) for N keys which have M or fewer digits | |
15+
| oddeven-sort.js | O(N^2) | |
16+
| quicksort-middle.js | O(N log(N)) | |
17+
| quicksort.js | O(nlog n) | |
18+
| radixsort.js | O(N K) for N keys with K being | |
19+
| recursive-insertionsort.js | O(N^2) | |
20+
| selectionsort.js | O(N^2) | |
21+
| shellsort.js | O((nlog(n))^2) | |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy