Coding Horror: Everything Is Fast For Small n
codinghorror.com
codinghorror.com
Instead we get a CS 101 discussion of big-oh?
What?
Do I really want to take advice from someone whose first instinct was to implement insertion sort?
I'll counter: Here's a gem from CS 101 that not everybody's seen: Sorting out Sorting (edit: see the better link posted below)
Even if you know algorithms the video is still stylistically interesting. It's a good example of how to teach quantitative material. The YouTube video is speeded up, but the presentation of n^2 sorts is more effective when each of the demos runs for a painfully long two minutes.
Don't worry about sort algorithms when your n is small.
A real example: with social networks, you can make some reasonable assumptions that people will have hundreds, perhaps thousands of 'friends'.
For many activities (not DB selects), that's a small value.