This may have been posted or you may know of this link already. I spent two hours reading up on algoritms, sorting and gaming techniques. The site is written in English for us non-math types. Code is simple C++...but mostly text and explanations.
In fact, I now know what Zaei has been talking about. ;-)