VISUALGO
//
Problems
Playground
Learn
/
Playground
Sorting
Shell Sort
VISUALGO
//
SORT
shell sort · sorting trace console · O(n log²n)
●
ACTIVE
●
COMPARING
●
SHIFTED
●
SORTED
Goal:
Rearrange all elements in
ascending order
using shell sort.
7
5
3
1
2
8
4
6
SPEED — 20
RUN
ELEMENTS
SET
NEW SHUFFLE
READOUT
step
0 / 21
comparisons
0
swaps
0
status
IDLE