Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3ff82f

Browse files
committed
Add counting sort.
1 parent 0c1f685 commit e3ff82f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ Below is the list of some of the most used Big O notations and their performance
217217

218218
### Array Sorting Algorithms Complexity
219219

220-
| Name | Best | Average | Worst | Memory | Stable |
221-
| --------------------- | :-------: | :-------: | :-----------: | :-------: | :-------: |
222-
| **Bubble sort** | n | n^2 | n^2 | 1 | Yes |
223-
| **Insertion sort** | n | n^2 | n^2 | 1 | Yes |
224-
| **Selection sort** | n^2 | n^2 | n^2 | 1 | No |
225-
| **Heap sort** | n log(n) | n log(n) | n log(n) | 1 | No |
226-
| **Merge sort** | n log(n) | n log(n) | n log(n) | n | Yes |
227-
| **Quick sort** | n log(n) | n log(n) | n^2 | log(n) | No |
228-
| **Shell sort** | n log(n) | depends on gap sequence | n (log(n))^2 | 1 | No |
229-
| **Counting sort** | n + r | n + r | n + r | n + r | Yes |
220+
| Name | Best | Average | Worst | Memory | Stable | Comments |
221+
| --------------------- | :-------: | :-------: | :-----------: | :-------: | :-------: | :-------- |
222+
| **Bubble sort** | n | n^2 | n^2 | 1 | Yes ||
223+
| **Insertion sort** | n | n^2 | n^2 | 1 | Yes ||
224+
| **Selection sort** | n^2 | n^2 | n^2 | 1 | No ||
225+
| **Heap sort** | n log(n) | n log(n) | n log(n) | 1 | No ||
226+
| **Merge sort** | n log(n) | n log(n) | n log(n) | n | Yes ||
227+
| **Quick sort** | n log(n) | n log(n) | n^2 | log(n) | No ||
228+
| **Shell sort** | n log(n) | depends on gap sequence | n (log(n))^2 | 1 | No ||
229+
| **Counting sort** | n + r | n + r | n + r | n + r | Yes | r - biggest number in sorted array |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /