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
+54-1Lines changed: 54 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,17 @@ __Properties__
47
47
48
48
###### View the algorithm in [action][merge-toptal]
49
49
50
+
### Quick
51
+
![alt text][quick-image]
50
52
53
+
From [Wikipedia][quick-wiki]: Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of an array in order.
54
+
55
+
__Properties__
56
+
* Worst case performance O(n^2)
57
+
* Best case performance O(n log n) or O(n) with three-way partition
58
+
* Average case performance O(n^2)
59
+
60
+
###### View the algorithm in [action][quick-toptal]
51
61
52
62
### Selection
53
63
![alt text][selection-image]
@@ -61,6 +71,50 @@ __Properties__
61
71
62
72
###### View the algorithm in [action][selection-toptal]
63
73
74
+
### Shell
75
+
![alt text][shell-image]
76
+
77
+
From [Wikipedia][shell-wiki]: Shellsort is a generalization of insertion sort that allows the exchange of items that are far apart. The idea is to arrange the list of elements so that, starting anywhere, considering every nth element gives a sorted list. Such a list is said to be h-sorted. Equivalently, it can be thought of as h interleaved lists, each individually sorted.
78
+
79
+
__Properties__
80
+
* Worst case performance O(nlog2 2n)
81
+
* Best case performance O(n log n)
82
+
* Average case performance depends on gap sequence
83
+
84
+
###### View the algorithm in [action][shell-toptal]
85
+
86
+
### Time-Compexity Graphs
87
+
88
+
Comparing the complexity of sorting algorithms (Bubble Sort, Insertion Sort, Selection Sort)
From [Wikipedia][linear-wiki]: linear search or sequential search is a method for finding a target value within a list. It sequentially checks each element of the list for the target value until a match is found or until all the elements have been searched.
100
+
Linear search runs in at worst linear time and makes at most n comparisons, where n is the length of the list.
101
+
102
+
__Properties__
103
+
* Worst case performance O(n)
104
+
* Best case performance O(1)
105
+
* Average case performance O(n)
106
+
* Worst case space complexity O(1) iterative
107
+
108
+
### Binary
109
+
![alt text][binary-image]
110
+
111
+
From [Wikipedia][binary-wiki]: Binary search, also known as half-interval search or logarithmic search, is a search algorithm that finds the position of a target value within a sorted array. It compares the target value to the middle element of the array; if they are unequal, the half in which the target cannot lie is eliminated and the search continues on the remaining half until it is successful.
0 commit comments