Wilson's Algorithm
204 points by ratsbane
Read the article
Discussion on Hacker News