Skip navigation
Shell Sort 🔊 Insertion sort with a twist: start with big gaps. Compare elements 5 apart.
0:00

Shell Sort 🔊 Insertion sort with a twist: start with big gaps. Compare elements 5 apart.

Shell Sort 🔊 Insertion sort with a twist: start with big gaps. Compare elements 5 apart. Then 3 apart. Then 1 apart. Each pass partially sorts the array, so the final insertion sort pass is nearly free. Watch the leaps shrink into slides.

Comments

Comments from the original post on Instagram

No comments yet