Hacker News new | ask | show | jobs
by gerbenst 2212 days ago
A very interesting suggestion indeed. Shell sort is an insertion sort though. It owes its better complexity from being able to breaking out of loop early. But these are difficult to predict branches that bubble sort avoids.

Certainly this is worth an experiment

1 comments

Well, you are the expert :). I misremebered and thought of the base case for shell sort to be a kind of bubble sort.