Knuth · Weeks 29 to 63
TAOCP Volume 1: Fundamental Algorithms
Welcome to Knuth. Volume 1 starts with a big block of math (induction, sums, binomial coefficients, generating functions, asymptotics), then MIX, Knuth's imaginary computer and its assembly language, then the data structures everything else is built on: lists, trees, garbage collection and memory allocation. The math weeks are the hardest stretch of the whole path for most people. That is normal. Push through them and the rest of Knuth opens up.
Every section, week by week
Each section links to its reading guide: what it covers, how to approach it, exercises picked from the book with their ratings, common traps and links. Picked is how many exercises the guide recommends; time is its budget for the week.
What you will be able to do
- Analyze an algorithm exactly, not just in big-O: best case, worst case, average and variance.
- Manipulate sums, binomial coefficients and generating functions with confidence.
- Read and write assembly for a simple machine and count the cost of every instruction.
- Implement linked structures, tree traversals, topological sort, a garbage collector and a malloc-style allocator from first principles.
Before you start
- Finished Crafting Interpreters (you will see the same ideas again in 1.4.3, 2.3.5 and 2.5).
- High-school algebra and comfort with proofs by induction (Week 0 math covers it).
- Basic calculus helps for 1.2.9 and 1.2.11; you can skim the heaviest parts.
- A MIX simulator such as GNU MDK.
Getting the book
The current edition is the third edition (1997), ISBN 0-201-89683-4.
TAOCP is not free. Vol 1, 3rd edition is about $64 new from InformIT (the publisher's store) and much less used. Borrow before you buy: many public and university libraries give you free access to O'Reilly Learning, which carries TAOCP; Libby/OverDrive and interlibrary loan (search WorldCat) work too. Older used editions are fine for Vols 1 to 3; section numbers barely changed. If you buy the eBook, get the PDF from InformIT. Knuth himself warns that the Kindle and ePUB versions mangle the math.
What you need has every option with prices, and which edition do I need covers the differences.
Tips
- Read the front matter on exercise ratings before 1.1. You will use that scale for two years.
- Keep a notebook of identities and tricks; you will refer back to it in every later volume.
- Concrete Mathematics (Graham, Knuth, Patashnik) is the best companion if 1.2 feels too terse.
- Expect to not finish every exercise. Nobody does. The guides tell you which ones matter.
Questions
How long does TAOCP Volume 1 take?
On the cracked.guide path it takes 35 weeks (weeks 29 to 63), about 8 months, and the reading guides budget about 240 hours in all.
How many exercises are in TAOCP Volume 1?
932 in the sections the path covers, rated 00 to HM50, and 273 of them carry Knuth's triangle for recommended. Each reading guide picks the ones worth your time.
Which edition of Volume 1 do I need?
The current one is the third edition (1997). Older used editions work for most of it; section numbers barely changed. Buy the PDF, not Kindle, if you want an eBook.