Algorithms are mathematical theories. You're not going to be able to learn them through code alone.
There are certainly less dense introductions to the subject, but Cormen is the classic that you'll see on every good programmer's shelf (and they even read it, too!)
Edit -- "Data Structures and Algorithm Analysis" by Mark Allen Weiss is an example of a common, less-dense introductory text. It's actually not bad, given its intent.
Comments
Algorithms are mathematical theories. You're not going to be able to learn them through code alone.
There are certainly less dense introductions to the subject, but Cormen is the classic that you'll see on every good programmer's shelf (and they even read it, too!)
Edit -- "Data Structures and Algorithm Analysis" by Mark Allen Weiss is an example of a common, less-dense introductory text. It's actually not bad, given its intent.
What other books does every serious programmer need?
Are you being snarky or sincere? It's a good question, if it's an honest one.
No please. I am a slowly reforming chemical engineering student.