You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,26 @@ __Properties__
19
19
20
20
###### View the algorithm in [action][bubble-toptal]
21
21
22
+
### Bucket
23
+
![alt text][bucket-image-1]
24
+
![alt text][bucket-image-2]
25
+
26
+
From [Wikipedia][bucket-wiki]: Bucket sort, or bin sort, is a sorting algorithm that works by distributing the elements of an array into a number of buckets. Each bucket is then sorted individually, either using a different sorting algorithm, or by recursively applying the bucket sorting algorithm.
27
+
28
+
__Properties__
29
+
* Worst case performance O(n^2)
30
+
* Best case performance O(n+k)
31
+
* Average case performance O(n+k)
32
+
33
+
### Coctail shaker
34
+
![alt text][cocktail-shaker-image]
35
+
36
+
From [Wikipedia][cocktail-shaker-wiki]: Cocktail shaker sort, also known as bidirectional bubble sort, cocktail sort, shaker sort (which can also refer to a variant of selection sort), ripple sort, shuffle sort, or shuttle sort, is a variation of bubble sort that is both a stable sorting algorithm and a comparison sort. The algorithm differs from a bubble sort in that it sorts in both directions on each pass through the list.
37
+
38
+
__Properties__
39
+
* Worst case performance O(n^2)
40
+
* Best case performance O(n)
41
+
* Average case performance O(n^2)
22
42
23
43
24
44
### Insertion
@@ -59,6 +79,15 @@ __Properties__
59
79
60
80
###### View the algorithm in [action][quick-toptal]
61
81
82
+
### Radix
83
+
84
+
From [Wikipedia][radix-wiki]: In computer science, radix sort is a non-comparative integer sorting algorithm that sorts data with integer keys by grouping keys by the individual digits which share the same significant position and value.
85
+
86
+
__Properties__
87
+
* Worst case performance O(wn)
88
+
* Best case performance O(wn)
89
+
* Average case performance O(wn)
90
+
62
91
### Selection
63
92
![alt text][selection-image]
64
93
@@ -83,6 +112,10 @@ __Properties__
83
112
84
113
###### View the algorithm in [action][shell-toptal]
85
114
115
+
### Topological
116
+
117
+
From [Wikipedia][topological-wiki]: In the field of computer science, a topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge uv from vertex u to vertex v, u comes before v in the ordering. For instance, the vertices of the graph may represent tasks to be performed, and the edges may represent constraints that one task must be performed before another; in this application, a topological ordering is just a valid sequence for the tasks. A topological ordering is possible if and only if the graph has no directed cycles, that is, if it is a directed acyclic graph (DAG). Any DAG has at least one topological ordering, and algorithms are known for constructing a topological ordering of any DAG in linear time.
118
+
86
119
### Time-Complexity Graphs
87
120
88
121
Comparing the complexity of sorting algorithms (Bubble Sort, Insertion Sort, Selection Sort)
@@ -148,6 +181,13 @@ Mathematically a bijective function is used on the characters' positions to encr
0 commit comments