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
+16
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,17 @@ __Properties__
73
73
74
74
###### View the algorithm in [action][selection-toptal]
75
75
76
+
## Shell sort
77
+
![alt text][shell-image]
78
+
79
+
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 anywherem considereing every nth element gives a sorted list. Such a list is said to be h-sorted. Equivanelty, it can be thought of as h intterleaved lists, each individually sorted.
80
+
81
+
__Properties__
82
+
* Worst case performance O(nlog2 2n)
83
+
* Best case performance O(n log n)
84
+
* Average case performance depends on gap sequence
85
+
86
+
###### View the algorithm in [action][shell-toptal]
76
87
77
88
## Search Algorithms
78
89
@@ -123,6 +134,11 @@ Mathematically a bijective function is used on the characters' positions to encr
0 commit comments