forked from algorithm-visualizer/algorithm-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdesc.json
More file actions
13 lines (13 loc) · 662 Bytes
/
desc.json
File metadata and controls
13 lines (13 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"Shellsort": "Shellsort, also known as Shell sort or Shell's method, is an in-place comparison sort. It can be seen as either a generalization of sorting by exchange (bubble sort) or sorting by insertion (insertion sort). The method starts by sorting pairs of elements far apart from each other, then progressively reducing the gap between elements to be compared.",
"Complexity": {
"time": "best $O(n \\, log \\, n)$, average - depends on 'gap sequence'",
"space": "worst $O(n)$ total, $O(1)$ auxilliary"
},
"References": [
"<a href='https://en.wikipedia.org/wiki/Shellsort'>Wikipedia</a>"
],
"files": {
"basic": "Shellsort"
}
}