Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> For example, a sort function may do insertion […]

That’s generally called “adaptive”. A famous example of that is timsort.

Your version has issues though: insertion sort is stable, which can dangerously mislead users.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: