Hacker News new | past | comments | ask | show | jobs | submit login

I would think that some form of insertion sort is the most intuitive. That's what people use when they do things like sort cards in their hand.



Anecdotally, the professor of my algorithms class had us all sort cards manually and asked us to describe the algorithm we used when we began studying sorting algorithms. Most of us used either selection sort or insertion sort.


I would think bucket sort (into the suits) would be the most common. Whenever I am sorting named papers I always do it with 26 piles.


A-K in 13 piles then suits in 4 piles is a little faster. Or if your space limited you can group A-7 then 8-K.


That's more or less radix sort, no?


Yep, though radix and bucket sorts are closely related.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: