#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck column:4
#columns:Front	Back	Tags	Deck
TAOCP Vol 1: Fundamental Algorithms: what is the phase about?	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.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::About this phase
TAOCP Vol 1: what should you be able to do by the end?	<ul><li>Analyze an algorithm exactly, not just in big-O: best case, worst case, average and variance.</li><li>Manipulate sums, binomial coefficients and generating functions with confidence.</li><li>Read and write assembly for a simple machine and count the cost of every instruction.</li><li>Implement linked structures, tree traversals, topological sort, a garbage collector and a malloc-style allocator from first principles.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::kind::outcomes	cracked.guide::TAOCP Vol 1::About this phase
TAOCP Vol 1: what do you need before you start?	<ul><li>Finished Crafting Interpreters (you will see the same ideas again in 1.4.3, 2.3.5 and 2.5).</li><li>High-school algebra and comfort with proofs by induction (Week 0 math covers it).</li><li>Basic calculus helps for 1.2.9 and 1.2.11; you can skim the heaviest parts.</li><li>A MIX simulator such as GNU MDK.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::kind::need	cracked.guide::TAOCP Vol 1::About this phase
TAOCP Vol 1: how do you get the book?	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.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::kind::book	cracked.guide::TAOCP Vol 1::About this phase
TAOCP Vol 1: tips for getting through it?	<ul><li>Read the front matter on exercise ratings before 1.1. You will use that scale for two years.</li><li>Keep a notebook of identities and tricks; you will refer back to it in every later volume.</li><li>Concrete Mathematics (Graham, Knuth, Patashnik) is the best companion if 1.2 feels too terse.</li><li>Expect to not finish every exercise. Nobody does. The guides tell you which ones matter.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::kind::tips	cracked.guide::TAOCP Vol 1::About this phase
TAOCP §1.1 Algorithms: what does it cover?	Knuth opens with Euclid's algorithm for the greatest common divisor and uses it to pin down what an algorithm actually is: finite, definite, with input, output and effective steps. He also introduces his house style for writing algorithms as lettered, numbered steps, and sketches a formal model of computation at the end.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1: why does it matter?	Every later section uses this step-by-step format, so getting comfortable with it now pays off for 100+ weeks. The five properties are also a decent checklist for any spec you write at work: if a step is not definite or not guaranteed to terminate, you have a bug waiting to happen.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.1 Algorithms
Euclid's algorithm: what is it?	Euclid's algorithm computes the greatest common divisor of two positive integers by repeatedly replacing the larger with its remainder modulo the smaller until the remainder is zero.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.1 Algorithms
Euclid's algorithm: What is the extended Euclidean algorithm?	The same loop, also tracking coefficients so that it returns x and y with mx + ny = gcd(m, n). It is how you compute modular inverses.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, a common trap: “Getting stuck on the formal definition at the end of the section.” What's the catch?	It is optional on a first read.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, a common trap: “Treating the exercise ratings as difficulty for you personally.” What's the catch?	They are Knuth's estimate of time for a prepared reader; a 20 can take you an hour early on and that is normal.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, a common trap: “Buying an old edition by accident.” What's the catch?	You want Vol 1, 3rd edition (1997, with later printings).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, exercise 1 (rated 10): what is it asking?	Rearrange four variables with as few replacement steps as possible. The same ordering problem that bites people in swap code.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, exercise 2 (rated 15): what is it asking?	Prove a fact about m and n at the top of the loop. First practice reasoning about an algorithm's state instead of just running it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, exercise 3 (rated 20): what is it asking?	Rework Euclid's algorithm so it never does a pure copy step, written in Knuth's step format. Very doable and a good first rewrite.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1, exercise 5 (rated 12, recommended): what is it asking?	Audit the reading procedure from the preface against the five properties of an algorithm. Fun, and it makes the definitions stick.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1: how many exercises, and how are they rated?	9 exercises, rated 10 to M30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1: what should you be comfortable with first?	<ul><li>Comfort reading pseudocode</li><li>Remainders and division (week 0 math)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.1: how should you work through it?	Before the section itself, read Knuth's &quot;Notes on the Exercises&quot; at the front of the book (the preface's reading procedure sends you there too). It explains the rating scale (00 to 50 in steps of ten, M for mathematical, HM for higher math like calculus) and the triangle that marks recommended exercises, which you will rely on for the next two years. Then trace Algorithm E by hand on a few pairs of numbers until it feels boring. Read the five properties slowly. The last few pages on a set-theoretic definition of computation are fine to skim on a first pass; come back to them later if you are curious.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.1 Algorithms
TAOCP §1.2.1 Mathematical Induction: what does it cover?	Induction as the main tool for proving things about integers and about programs. Knuth goes further than a typical math class by showing how to prove an algorithm correct by attaching assertions to each step of a flowchart, using an extended version of Euclid's algorithm as the worked example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1: why does it matter?	Loop invariants, the thing that makes binary search and in-place algorithms correct, are induction in disguise. Once you can write the invariant, debugging off-by-one errors gets a lot less random.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, a common trap: “Reading the assertion proof without actually checking each arrow.” What's the catch?	You will not absorb it passively.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1: what traps should you watch for?	<ul><li>Forgetting the base case or proving the step only for large n.</li><li>Strengthening the hypothesis is often the trick: if the induction step will not go through, try proving something stronger.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 1 (rated 05): what is it asking?	Adapt induction to start from zero. Checks you know what the base case is actually for.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 2 (rated 15): what is it asking?	Find the hole in a bogus induction proof. Great training for code review.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 3 (rated 18): what is it asking?	Another plausible proof that fails at a specific n. Subtler than the last one.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 5 (rated 21): what is it asking?	Prove every integer above 1 factors into primes, using strong induction.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 6 (rated 20): what is it asking?	Check that the extended Euclid invariants survive one step. This is the core technique of the section in miniature.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 8 (rated 25, recommended): what is it asking?	Prove a pattern about odd numbers summing to cubes, then use it to get the closed form for the sum of cubes.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 13 (rated M23, recommended): what is it asking?	Add a step counter to extended Euclid and prove a bound on it with assertions. Program proofs meet running time.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1, exercise 15 (rated HM28, recommended): what is it asking?	Work out how induction should go for statements about two integers. The stretch, and it leads to well-ordering.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1: how many exercises, and how are they rated?	15 exercises, rated 05 to 50.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1: what should you be comfortable with first?	<ul><li>1.1 Algorithms</li><li>Basic induction proofs (week 0)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.1: how should you work through it?	Read the basic induction material quickly if you have seen it before. Slow way down for the flowchart-with-assertions proof of the extended Euclid algorithm: copy the flowchart onto paper and check every assertion yourself, step by step. That technique is the payoff of the section.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.1 Mathematical Induction
TAOCP §1.2.2 Numbers, Powers, and Logarithms: what does it cover?	A careful build-up of integers, rationals and reals, then powers with real exponents and logarithms in any base. It ends with practical ways to compute logarithms by hand-style methods.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2: why does it matter?	Logs are everywhere in complexity analysis, bit counts and data sizes. Knowing exactly how log base changes work, and why lg n and ln n differ only by a constant, makes big-O arguments feel obvious instead of magical.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, a common trap: “Mixing up lg (base 2), ln (base e) and log10.” What's the catch?	Knuth uses lg for base 2 throughout the series.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, a common trap: “Spending the whole week on the real-number construction.” What's the catch?	It is background, not the point.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 4 (rated 05, recommended): what is it asking?	Evaluate a fractional power by hand. Quick check on the exponent rules.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 11 (rated 10, recommended): what is it asking?	Work out how many digits of a logarithm you need for a given accuracy in the power. Error propagation in miniature.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 17 (rated 05, recommended): what is it asking?	A quick round of logs in various bases, a couple of which do not exist.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 19 (rated 20, recommended): what is it asking?	Decide whether a 14-digit decimal number fits in a 47-bit word. The log-to-count-bits skill you use when sizing integers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 22 (rated 20, recommended): what is it asking?	Show a cheap approximation of the base-2 log from ln and log10, and bound its error.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 25 (rated 22): what is it asking?	Prove that a method using only shifts, additions and subtractions computes a binary logarithm. How machines did logs without multiplying.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 27 (rated M25, recommended): what is it asking?	Error analysis of the text's log10 method when each step is computed with limited precision.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2, exercise 28 (rated M30): what is it asking?	Design and analyze a shift-and-add method for exponentials, the inverse of exercise 25. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2: how many exercises, and how are they rated?	29 exercises, rated 00 to M30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2: what should you be comfortable with first?	<ul><li>High-school algebra</li><li>Exponent rules</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.2: how should you work through it?	Skim the construction of the real numbers unless you enjoy it. Work through the logarithm identities with pencil and make a cheat sheet of lg, ln and log10 conversions. Try the method for computing a logarithm digit by digit on a small example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
TAOCP §1.2.3 Sums and Products: what does it cover?	Sigma and Pi notation, and the rules for manipulating sums: distributive, change of variable, interchanging order of summation, and handling sums over relations instead of just ranges. Knuth also introduces the bracket notation for conditions (later called Iverson brackets).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3: why does it matter?	Analyzing loops means analyzing sums. Being able to swap the order of a double sum or reindex cleanly is the core skill behind every running-time derivation you will meet in Vol 3.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, a common trap: “Swapping a double sum with dependent limits incorrectly.” What's the catch?	Draw the region.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3: what traps should you watch for?	<ul><li>Changing a variable but forgetting to change the bounds.</li><li>If you find this section rough, Concrete Mathematics (Graham, Knuth, Patashnik) chapter 2 covers the same ground more gently.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 3 (rated 13, recommended): what is it asking?	Explain why two sums that look like the same substitution come out different. Change of variable only works when the map is one-to-one.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 9 (rated 05, recommended): what is it asking?	Check an edge case of the geometric-series derivation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 17 (rated M00, recommended): what is it asking?	What a sum of 1s over a set counts. Thirty seconds, but it is the bracket idea in its simplest form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 25 (rated 15, recommended): what is it asking?	Find the bug in a slick-looking double-sum derivation. Reused index names are the classic sum bug.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 22 (rated 20, recommended): what is it asking?	Restate the sum manipulation rules for products.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 15 (rated M22, recommended): what is it asking?	Get a closed form for a sum of k times a power by manipulating the sum, not by guessing.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 20 (rated 25, recommended): what is it asking?	Turn a cute numeric pattern into a general formula and prove it with sum manipulation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3, exercise 29 (rated M30, recommended): what is it asking?	Express a triple sum over ordered indices through power sums. The stretch, and a preview of symmetric functions in 1.2.9.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3: how many exercises, and how are they rated?	47 exercises, rated M00 to M30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3: what should you be comfortable with first?	<ul><li>1.2.1 Mathematical Induction</li><li>Arithmetic and geometric series</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.3: how should you work through it?	Do not read this like prose. For every manipulation rule, write a tiny concrete example with numbers (say n = 4) and check both sides agree. Pay special attention to interchanging the order of summation with dependent bounds; draw the grid of (i, j) pairs to see it. The exercises come in two sets; the second is about determinants and is optional.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
TAOCP §1.2.4 Integer Functions and Elementary Number Theory: what does it cover?	Floor, ceiling, the mod operation defined for any real numbers, and the basics of congruences: divisibility, primes, relatively prime numbers, and Fermat's theorem.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4: why does it matter?	Floor and mod show up in every array index calculation, hash function, ring buffer and pagination bug you will ever write. Knuth's definition of mod for negative numbers is worth comparing with how your favorite language does it, because they differ.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, a common trap: “Assuming floor(-x) = -floor(x).” What's the catch?	It does not.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, a common trap: “Assuming C's % is Knuth's mod.” What's the catch?	For negative operands it is not.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 4 (rated M10, recommended): what is it asking?	Relate the floor of -x to the ceiling of x. The identity behind half the off-by-one fixes you will ever write.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 6 (rated 20, recommended): what is it asking?	Decide which floor and ceiling of square root identities really hold.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 8 (rated 00): what is it asking?	Quick mod values with negative operands. Compare each one with what % gives in your language.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 10 (rated 10, recommended): what is it asking?	Mod with non-integer and negative arguments under Knuth's definition.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 14 (rated 12, recommended): what is it asking?	Combine two remainders into one. A tiny Chinese remainder problem.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 19 (rated M10, recommended): what is it asking?	Prove modular inverses exist using extended Euclid. The basis of division mod m.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 35 (rated M20, recommended): what is it asking?	Show that nested integer divisions can be flattened. Why floor((x+m)/n) does not care whether x was floored first.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4, exercise 37 (rated M30, recommended): what is it asking?	Evaluate a floor sum in closed form, with the gcd showing up. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4: how many exercises, and how are they rated?	49 exercises, rated 00 to HM46.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4: what should you be comfortable with first?	<ul><li>1.2.2 Numbers, Powers, and Logarithms</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.4: how should you work through it?	Work every identity about floor and ceiling with a few positive and negative examples. Then write a short program in C or Python comparing x mod y for negative x in Knuth's definition versus your language's % operator. Read the congruence material with pencil; it returns in Vol 2 chapter 4.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.4 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.4 Integer Functions and Elementary Number Theory
TAOCP §1.2.5 Permutations and Factorials: what does it cover?	Counting arrangements, factorials, and how fast n! grows, including Stirling's approximation. Knuth also extends factorials to non-integers via the gamma function and shows how to count the power of a prime dividing n!.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5: why does it matter?	Factorials set the lower bound for comparison sorting (you need about lg n! comparisons) and they tell you instantly when brute force over permutations is hopeless.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, a common trap: “Getting lost in the gamma function.” What's the catch?	It is optional depth for now.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5: what traps should you watch for?	<ul><li>Off-by-one between permutations of n things and arrangements of k out of n.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 1 (rated 00): what is it asking?	Count the orderings of a deck of cards. Warm-up.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 4 (rated 13, recommended): what is it asking?	Use a given log of a big factorial to get its digit count and its leading and trailing digits.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 5 (rated 15): what is it asking?	Estimate a small factorial with the refined Stirling formula and compare with the exact value.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 6 (rated 17, recommended): what is it asking?	Factor a factorial into primes with the prime-power formula, no multiplying out.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 11 (rated M15): what is it asking?	Count the factors of 2 in n! straight from the binary digits of n.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 12 (rated M22, recommended): what is it asking?	Generalize that to any prime using base-p digits.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 24 (rated HM21, recommended): what is it asking?	Prove simple upper and lower bounds for n! with e. Handy whenever you estimate.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5, exercise 14 (rated M28, recommended): what is it asking?	Compute n! mod p from the base-p digits of n. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5: how many exercises, and how are they rated?	25 exercises, rated 00 to M28.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5: what should you be comfortable with first?	<ul><li>1.2.3 Sums and Products</li><li>1.2.4 Integer Functions</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.5: how should you work through it?	Read the counting arguments carefully and do them on small n. Compute a few values of Stirling's approximation against real n! to feel the error. The gamma function part is fine to read for the idea and skim the proofs.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.5 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.5 Permutations and Factorials
TAOCP §1.2.6 Binomial Coefficients (part 1): what does it cover?	Part 1 covers what binomial coefficients count, their definition for general upper index, and the core toolbox of identities: symmetry, absorption, the addition formula (Pascal's rule) and the binomial theorem. Aim to get through the main list of basic properties.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1): why does it matter?	Binomial coefficients are the vocabulary of combinatorics and of probability analysis for algorithms. Half the derivations in Vol 3 lean on these identities.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), a common trap: “Assuming the upper index must be a nonnegative integer.” What's the catch?	Knuth allows general values, and that generality matters.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1): what traps should you watch for?	<ul><li>Trying to memorize identities instead of understanding them through Pascal's triangle.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 5 (rated 05, recommended): what is it asking?	Explain a power-of-eleven pattern with Pascal's triangle.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 6 (rated 10, recommended): what is it asking?	Extend Pascal's triangle upward to negative rows with the addition formula. Shows why general upper indices are natural.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 7 (rated 12): what is it asking?	Find which k makes a binomial coefficient largest.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 36 (rated M10): what is it asking?	Row sums and alternating row sums of Pascal's triangle.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 11 (rated M20, recommended): what is it asking?	Show the power of p dividing a binomial coefficient counts carries when adding in base p.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 12 (rated M22): what is it asking?	Which rows of Pascal's triangle are all odd. A nice tie to binary.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 67 (rated M20, recommended): what is it asking?	Prove the easy upper bound for binomial coefficients that you will actually use when estimating.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1), exercise 10 (rated M25, recommended): what is it asking?	Binomial coefficients modulo a prime. The facts behind a lot of modular tricks; the harder one this week.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1): how many exercises, and how are they rated?	68 exercises, rated 00 to HM35.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1): what should you be comfortable with first?	<ul><li>1.2.5 Permutations and Factorials</li><li>1.2.3 Sums and Products</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 (part 1): how should you work through it?	This is one of the densest sections in Vol 1, so it is split over two weeks. This week: build Pascal's triangle up to row 10 by hand and verify each basic identity against it. Make your own one-page summary of the identities with a numeric example next to each. Stop around the point where the text turns to harder summation techniques.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 1)
TAOCP §1.2.6 Binomial Coefficients (part 2): what does it cover?	Part 2 finishes the section: summing products of binomial coefficients (Vandermonde-style convolution), negating the upper index, and the general strategy for attacking a sum involving binomials. It closes with related numbers like multinomial coefficients and Stirling numbers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2): why does it matter?	This is where you learn to actually evaluate sums that pop out of algorithm analysis, rather than just recognize them.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), a common trap: “Spending three weeks here.” What's the catch?	Set a timer, move on, and revisit later; Vol 3 will send you back anyway.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2): what traps should you watch for?	<ul><li>Losing track of signs when negating the upper index.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 17 (rated M18, recommended): what is it asking?	Prove the Vandermonde convolution by comparing coefficients in a product of powers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 21 (rated M05, recommended): what is it asking?	Why a polynomial equation in the text is not an identity in every variable. Read the side conditions.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 31 (rated M20, recommended): what is it asking?	Evaluate a three-binomial sum by expanding one factor first. A standard move worth owning.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 30 (rated M24, recommended): what is it asking?	Find a slicker route to one of the text's worked sums.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 60 (rated M23, recommended): what is it asking?	Count combinations with repetition and write the answer as a binomial coefficient.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 64 (rated M20, recommended): what is it asking?	Show Stirling numbers of the second kind count set partitions.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 46 (rated M21, recommended): what is it asking?	Use Stirling's formula to approximate a large binomial coefficient.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2), exercise 63 (rated M30): what is it asking?	A hard sum identity with three indices that leans on everything in the section. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2): how many exercises, and how are they rated?	68 exercises, rated 00 to HM35.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2): what should you be comfortable with first?	<ul><li>1.2.6 Binomial Coefficients (part 1)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.6 (part 2): how should you work through it?	Go back over your part 1 summary first. For each worked example of a tricky sum, try to do it yourself before reading Knuth's solution. Expect to reread a few pages; that is normal.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.6 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.6 Binomial Coefficients (part 2)
TAOCP §1.2.7 Harmonic Numbers: what does it cover?	The harmonic numbers H_n = 1 + 1/2 + ... + 1/n, how they grow like ln n, and how to sum expressions involving them. They show up whenever you average over random positions.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7: why does it matter?	H_n is behind the average cost of quicksort, the expected number of times a running maximum changes, and the coupon collector problem. You will see it constantly in Vol 3.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
Harmonic numbers: what is it?	The n-th harmonic number is H(n) = 1 + 1/2 + 1/3 + ... + 1/n, which grows like the natural logarithm of n plus Euler's constant (about 0.5772).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
Harmonic numbers: Is H(n) the same as log n?	Not exactly, but close: H(n) is ln n plus Euler's constant plus a correction that shrinks like 1/(2n).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7: what traps should you watch for?	<ul><li>Confusing H_n with ln n exactly; the difference tends to Euler's constant, it does not vanish.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 2 (rated 13): what is it asking?	Adapt the text's halving argument to get an upper bound on the harmonic numbers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 4 (rated 10, recommended): what is it asking?	Decide which inequalities between H_n and ln n hold for every n.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 5 (rated 15): what is it asking?	Compute a large harmonic number to many places from the asymptotic formula.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 9 (rated M18, recommended): what is it asking?	Check an edge case of the section's main summation theorem.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 11 (rated M21, recommended): what is it asking?	Practice summation by parts on a sum involving H_k.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 12 (rated M10, recommended): what is it asking?	A precision question that turns out to be easy once you see how fast the terms vanish.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 15 (rated M23, recommended): what is it asking?	Find a closed form for the sum of the first n harmonic numbers squared.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7, exercise 19 (rated M30, recommended): what is it asking?	Find every n for which H_n is an integer, using a parity argument. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7: how many exercises, and how are they rated?	24 exercises, rated 01 to M33.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7: what should you be comfortable with first?	<ul><li>1.2.3 Sums and Products</li><li>1.2.2 Logarithms</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.7: how should you work through it?	Short section. Compute H_n for n up to 10 and compare to ln n + 0.577. Work through the summation by parts style manipulations with pencil.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.7 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.7 Harmonic Numbers
TAOCP §1.2.8 Fibonacci Numbers: what does it cover?	The Fibonacci sequence, its closed form in terms of the golden ratio, and a pile of identities. Knuth introduces generating functions here as the tool for deriving the closed form, a preview of 1.2.9.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8: why does it matter?	Fibonacci numbers show up in the worst case of Euclid's algorithm, Fibonacci heaps, AVL tree heights and Fibonacci hashing. It is also the cleanest first example of solving a recurrence.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8: what traps should you watch for?	<ul><li>Floating-point closed forms break for large n; use integers when you code it.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 2 (rated 20, recommended): what is it asking?	Estimate a far-out Fibonacci number from the closed form and logs.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 3 (rated 25): what is it asking?	Write a program printing the first thousand Fibonacci numbers exactly. You need your own bignum addition.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 4 (rated 14, recommended): what is it asking?	Find all n where F_n equals n.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 7 (rated 15, recommended): what is it asking?	Show a composite index gives a composite Fibonacci number, with one exception.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 13 (rated M22, recommended): what is it asking?	Solve Fibonacci-like recurrences with added constants by expressing them through F_n.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 22 (rated M20, recommended): what is it asking?	Show a binomial-weighted sum of Fibonacci numbers is again a Fibonacci number.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 34 (rated M24, recommended): what is it asking?	Prove every positive integer has a unique representation as a sum of non-adjacent Fibonacci numbers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8, exercise 36 (rated M32, recommended): what is it asking?	Fibonacci strings: words built like the sequence, and their structure. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8: how many exercises, and how are they rated?	42 exercises, rated 10 to M38.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8: what should you be comfortable with first?	<ul><li>1.2.1 Mathematical Induction</li><li>1.2.6 Binomial Coefficients</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.8: how should you work through it?	Follow the generating-function derivation of the closed form line by line on paper. Then write a quick program checking several identities numerically for n up to 50.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.8 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.8 Fibonacci Numbers
TAOCP §1.2.9 Generating Functions: what does it cover?	Treating a whole sequence as the coefficients of a power series, then manipulating the series (adding, shifting, multiplying, differentiating) to solve recurrences and evaluate sums.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9: why does it matter?	Generating functions are the single most powerful tool in algorithm analysis. Everything from counting binary trees to averaging hashing costs uses them.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
Generating function: what is it?	A generating function represents a sequence a0, a1, a2, ... as the coefficients of a power series a0 + a1 z + a2 z^2 + ..., so that operations on the series correspond to operations on the sequence.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
Generating function: Do I need calculus for generating functions?	Mostly algebra. Differentiation shows up for things like averages, but a first course in calculus is plenty.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, a common trap: “Worrying about convergence.” What's the catch?	Knuth mostly treats these as formal power series, so you can manipulate first and ask questions later.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9: what traps should you watch for?	<ul><li>Forgetting the convolution rule; it is the one you will use most.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 1 (rated M12): what is it asking?	Write down the generating function for a sum of two geometric sequences.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 2 (rated M13, recommended): what is it asking?	Prove the product rule for exponential generating functions.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 5 (rated M20): what is it asking?	Prove a generating-function expansion involving Stirling numbers by induction.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 8 (rated M23): what is it asking?	Find the generating function for the number of partitions of n.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 12 (rated M20, recommended): what is it asking?	Encode a doubly indexed sequence in a single generating function.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 10 (rated M25, recommended): what is it asking?	Get the generating function for the elementary symmetric functions and relate it to the complete ones.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 18 (rated M25, recommended): what is it asking?	Evaluate sums over increasing index tuples in closed form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9, exercise 15 (rated M28): what is it asking?	Find a closed form for a whole family of generating functions using a second variable. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9: how many exercises, and how are they rated?	26 exercises, rated M01 to M40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9: what should you be comfortable with first?	<ul><li>1.2.8 Fibonacci Numbers</li><li>Basic calculus (derivatives, geometric series)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.9: how should you work through it?	Make a table of the basic operations (shift, multiply by z, differentiate, convolution) and what each does to the coefficients. For each worked example, close the book and redo it. If it does not click, Concrete Mathematics chapter 7 and Wilf's free book generatingfunctionology are excellent companions.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.9 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.9 Generating Functions
TAOCP §1.2.10 Analysis of an Algorithm: what does it cover?	A complete worked analysis of a simple algorithm (finding the maximum of n elements): best case, worst case, average, and full probability distribution of how often the running maximum changes. It is the template for every analysis in the series.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10: why does it matter?	This is the method behind every &quot;average case O(n log n)&quot; claim. Seeing it done end to end on a small example teaches you what those claims actually mean.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, fill in the blank:<br>This is the method behind every &quot;average case <span class="cg-blank">&nbsp;</span>&quot; claim.	This is the method behind every &quot;average case <b>O(n log n)</b>&quot; claim.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::complexity	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, a common trap: “Skipping the variance.” What's the catch?	The mean alone hides how spread out the cost is.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, a common trap: “Confusing the number of comparisons with the number of updates.” What's the catch?	Knuth counts specific steps.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 1 (rated 10): what is it asking?	Interpret a boundary probability in terms of the max-finding algorithm.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 3 (rated M15): what is it asking?	Min, max, mean and standard deviation of the update count for a concrete n.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 5 (rated M13): what is it asking?	Read the mean and standard deviation off a pictured distribution.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 8 (rated M20, recommended): what is it asking?	Redo part of the analysis when values are drawn with repetition from a finite set.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 11 (rated M15, recommended): what is it asking?	See what shifting a distribution does to its cumulants.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 19 (rated M21): what is it asking?	Left-to-right maxima of a random permutation. The same quantity in another costume.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 20 (rated M22, recommended): what is it asking?	Use sortedness to cut the work of a max-of-differences computation. A real optimization.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10, exercise 7 (rated M27, recommended): what is it asking?	Redo the analysis of the max algorithm without assuming distinct values. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10: how many exercises, and how are they rated?	23 exercises, rated 10 to HM38.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10: what should you be comfortable with first?	<ul><li>1.2.7 Harmonic Numbers</li><li>1.2.9 Generating Functions</li><li>Basic probability: mean and variance</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.10: how should you work through it?	Write the algorithm in a real language, instrument it to count how often the max changes, and run it over many random permutations. Compare your measured mean to Knuth's formula. Then go through the probability generating function derivation with pencil.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.10 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.10 Analysis of an Algorithm
TAOCP §1.2.11 Asymptotic Representations: what does it cover?	Big-O notation done properly in 1.2.11.1, Euler's summation formula in 1.2.11.2, and in 1.2.11.3 a long worked example: the asymptotics of a function Q(n) that comes back in later analyses, using the formula and some integral estimates.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11: why does it matter?	Big-O as most people use it is sloppy. Knuth's version lets you say &quot;this is n lg n plus a smaller term&quot; with real meaning, which matters when you compare two algorithms with the same big-O.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, a common trap: “Treating O( ) as an equality in both directions.” What's the catch?	It is one-way.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11: what traps should you watch for?	<ul><li>Getting bogged down in the Euler-Maclaurin details on a first pass.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 2 of §1.2.11.1 (rated M10, recommended): what is it asking?	Find the fallacy in subtracting two O terms.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 3 of §1.2.11.1 (rated M15): what is it asking?	Multiply two asymptotic expressions and keep only what is justified.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 4 of §1.2.11.1 (rated M15, recommended): what is it asking?	Expand a simple expression asymptotically to a few terms.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 6 of §1.2.11.1 (rated M20, recommended): what is it asking?	Spot the bug in a sum of O(n) terms that proves a false bound. You will see this mistake in real code reviews.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 13 of §1.2.11.1 (rated M10, recommended): what is it asking?	Relate Omega and O precisely.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 9 of §1.2.11.2 (rated M25, recommended): what is it asking?	Approximate a central binomial coefficient two different ways and compare.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 16 of §1.2.11.3 (rated M24): what is it asking?	Prove an alternating-sum identity for the Q(n) function of 1.2.11.3.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11, exercise 6 of §1.2.11.2 (rated HM30, recommended): what is it asking?	Show Stirling's approximation holds for real arguments via Euler's summation formula. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11: how many exercises, and how are they rated?	42 exercises, rated HM01 to HM42.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11: what should you be comfortable with first?	<ul><li>1.2.10 Analysis of an Algorithm</li><li>Calculus: integrals and Taylor series</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.2.11: how should you work through it?	Read 1.2.11.1 (O-notation) carefully and do its exercises. Euler's summation formula and the later examples are heavy calculus; read for the ideas and follow one example fully. It is fine to leave the HM exercises for later.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.11 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.2.11 Asymptotic Representations
TAOCP §1.3.1 Description of MIX: what does it cover?	MIX, Knuth's imaginary 1960s-style computer: its words made of bytes and signs, registers, memory, comparison indicator, and the full instruction set. Every program in the original volumes is written for it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1: why does it matter?	Reading and writing assembly for a simple machine teaches what high-level code costs. Even though modern hardware is different, the habit of counting memory references and instruction cycles is timeless.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
MIX: what is it?	MIX is the imaginary computer Donald Knuth designed for The Art of Computer Programming, so that every algorithm in the books could be written, run and timed on one simple machine.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
MIX: Is MIX a real computer?	No. It was never built in hardware. It exists in Knuth's books and in emulators like GNU MDK and the one at cracked.guide/mix.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
MIX: Do I have to learn MIX to read TAOCP?	You can skim it, but you lose the exact running-time analysis, which is the point of the books. A few weeks of MIX in Volume 1 is enough to read every program after it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
MIX: What replaced MIX?	MMIX, a 64-bit RISC design described in Volume 1 Fascicle 1 (2005). Volume 4A and later use it; Volumes 1 to 3 have not yet been rewritten for it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, a common trap: “Assuming bytes are 8 bits.” What's the catch?	A MIX byte holds at least 64 values and programs must not depend on its exact size.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, a common trap: “Misreading field specs (L:R).” What's the catch?	Test them in the simulator.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1: what traps should you watch for?	<ul><li>Wondering whether to skip MIX for MMIX: Knuth is replacing MIX with MMIX (see the Vol 1 Fascicle 1 and his MMIX page), but the 3rd-edition text you are reading uses MIX, so learn MIX now.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 6 (rated 10, recommended): what is it asking?	Predict what several loads with field specs do. Field-spec drill.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 9 (rated 15, recommended): what is it asking?	List every instruction that can touch the overflow toggle.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 13 (rated 10, recommended): what is it asking?	Subtle behavior of overflow jumps that jump to themselves.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 16 (rated 20): what is it asking?	Clear 100 words of memory two ways: shortest program, then fastest. Try MOVE.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 18 (rated 22, recommended): what is it asking?	Hand-execute a tricky little program that touches nearly every register. The best MIX fluency check there is.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 19 (rated 14, recommended): what is it asking?	Time that same program in units of u.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 21 (rated 24, recommended): what is it asking?	Set rJ to an arbitrary value without changing memory. A puzzle about how jumps set rJ.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1, exercise 22 (rated 28, recommended): what is it asking?	Compute a 13th power with minimum memory, then with minimum time. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1: how many exercises, and how are they rated?	26 exercises, rated 00 to 32.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1: what should you be comfortable with first?	<ul><li>1.1 Algorithms</li><li>Some exposure to assembly or the TIS-100/EXAPUNKS games</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.1: how should you work through it?	Install a MIX simulator first (GNU MDK is the common choice). Keep the instruction summary chart open. For every instruction family, write a two-line program and run it to see the registers change. Field specifications like (0:5) and (1:3) confuse everyone at first; spend time on them.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.3.1 Description of MIX
TAOCP §1.3.2 The MIX Assembly Language: what does it cover?	MIXAL, the assembly language for MIX: symbols, local labels, pseudo-operations, and worked programs including finding a maximum and printing a table of primes. It also shows how Knuth annotates programs with execution counts.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2: why does it matter?	This is where you go from reading machine instructions to writing real programs. The execution-count annotations are how Knuth turns code into exact running-time formulas.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
MIXAL: what is it?	MIXAL (MIX Assembly Language) is the symbolic assembly language Knuth defines for writing programs for the MIX computer.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
MIXAL: Is MIXAL the same as MIX?	No. MIX is the machine; MIXAL is the assembly language you write MIX programs in. An assembler turns MIXAL into MIX words.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
MIXAL: Can I run MIXAL online?	Yes. cracked.guide/mix assembles and runs MIXAL in the browser, and grades a set of exercises from TAOCP §1.3 when you are signed in.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2: what traps should you watch for?	<ul><li>Local symbols like 2H, 2F and 2B trip people up; F means the next one forward, B the previous one backward.</li><li>Simulator syntax can differ slightly from the book; check your simulator's manual for column and format rules.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 2 (rated 10, recommended): what is it asking?	Why the self-jump at the end of the max subroutine is not an infinite loop.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 4 (rated 25, recommended): what is it asking?	Assemble the primes program by hand into numeric words. Takes less time than you fear and demystifies the assembler.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 8 (rated 24, recommended): what is it asking?	Decode a short mystery program by hand without running it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 9 (rated 25, recommended): what is it asking?	Validate an instruction word with a table-driven multiway branch instead of a chain of tests.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 10 (rated 31, recommended): what is it asking?	Find a saddle point in a matrix with two index registers. Graded on this site as the saddle exercise.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 14 (rated 31, recommended): what is it asking?	Print a table of Easter dates, with integer arithmetic and a sneaky negative remainder. Graded as easter.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 18 (rated 25): what is it asking?	Generate a Farey series with a two-term recurrence, no gcd needed. Graded as farey.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2, exercise 22 (rated 31): what is it asking?	Work out the Josephus elimination order with a table of links. Graded as josephus.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2: how many exercises, and how are they rated?	23 exercises, rated 00 to M47.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2: what should you be comfortable with first?	<ul><li>1.3.1 Description of MIX</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.2: how should you work through it?	Type in the example programs and run them in the simulator, not just read them. Then change something (print a different number of primes, find the minimum) and get it working. Add the frequency counts yourself and check them against the simulator's instruction counts.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.3.2 The MIX Assembly Language
TAOCP §1.3.3 Applications to Permutations: what does it cover?	Permutations written in cycle notation, how to multiply them (two algorithms and MIX programs), and how to invert a permutation in place in memory. It closes with counting: how many cycles a random permutation has, fixed points, and inclusion and exclusion. It mixes the math from 1.2 with the programming from 1.3.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3: why does it matter?	In-place permutation and cycle-following are real techniques: think in-place array rotation, transposing matrices, and shuffling. The analysis also introduces counting cycles in random permutations.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, a common trap: “Multiplying permutations in the wrong order.” What's the catch?	Knuth composes left to right; many textbooks do the opposite.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3: what traps should you watch for?	<ul><li>Forgetting to mark visited elements when following cycles in place.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 1 (rated 02): what is it asking?	Show that doubling mod 7 permutes 0 to 6 and write its cycles.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 4 (rated 10): what is it asking?	Multiply out a product of cycles into disjoint cycles by hand.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 5 (rated M10, recommended): what is it asking?	Count the ways to write one permutation in cycle form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 8 (rated 23, recommended): what is it asking?	Decide whether the right-to-left multiplication algorithm could run left to right.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 11 (rated 15): what is it asking?	Find the rule for inverting a permutation given in cycle form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 13 (rated M24, recommended): what is it asking?	Prove the second in-place inversion algorithm correct.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 34 (rated M25, recommended): what is it asking?	Swap two adjacent blocks of an array in place. The rotation trick behind many library routines.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3, exercise 12 (rated M27): what is it asking?	Transpose a non-square matrix in place by following cycles. The stretch, and genuinely useful.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3: how many exercises, and how are they rated?	36 exercises, rated 02 to HM42.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3: what should you be comfortable with first?	<ul><li>1.3.2 The MIX Assembly Language</li><li>1.2.5 Permutations and Factorials</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.3.3: how should you work through it?	Do several cycle-notation multiplications by hand until you can do them fast. Then implement in-place inversion of a permutation array in C or Python before reading the MIX version. Compare approaches.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.3.3 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.3.3 Applications to Permutations
TAOCP §1.4.1 Subroutines: what does it cover?	How to package code as a subroutine in MIX: linkage, passing parameters, returning, and the trade-offs between in-line code and calls. MIX has no stack or call instruction in the modern sense, so you see the mechanics explicitly.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1: why does it matter?	Calling conventions are still the glue of every compiled program. Seeing them built by hand makes stack frames, return addresses and ABIs make sense, and connects back to the call frames you built in clox.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, a common trap: “Self-modifying return jumps are normal in MIX.” What's the catch?	Do not let that surprise you; it is a product of the era.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, exercise 1 (rated 10): what is it asking?	Write out the interface description for one of the text's subroutines.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, exercise 2 (rated 10): what is it asking?	Replace a JSJ-based calling sequence with ordinary jumps.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, exercise 4 (rated 21, recommended): what is it asking?	Generalize the max subroutine to a strided range with extra parameters.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, exercise 5 (rated 21): what is it asking?	Invent subroutine linkage for a MIX without rJ.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, exercise 6 (rated 26, recommended): what is it asking?	Write a subroutine that mimics the MOVE instruction, with its parameters stored right after the call.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1, exercise 7 (rated 20, recommended): what is it asking?	Explain why self-modifying code fell out of favor.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1: how many exercises, and how are they rated?	7 exercises, rated 10 to 26.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1: what should you be comfortable with first?	<ul><li>1.3.2 The MIX Assembly Language</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.1: how should you work through it?	Write a MIX subroutine and call it from two places. Then compare the linkage mechanism to how clox pushes CallFrames.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.4.1 Subroutines
TAOCP §1.4.2 Coroutines: what does it cover?	Coroutines: routines that call each other as equals, each resuming where it left off. Knuth shows a pipeline example where one coroutine produces characters and another consumes and transforms them.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2: why does it matter?	Generators, async/await, Go's goroutines and Lua coroutines all descend from this idea. Seeing it in assembly makes the &quot;where does my state live&quot; question concrete.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, a common trap: “Thinking coroutines need threads.” What's the catch?	They do not; they are just saved resume points.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, exercise 2 (rated 20, recommended): what is it asking?	Predict what happens if the other coroutine runs first.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, exercise 3 (rated 20): what is it asking?	A true-or-false about the example's comparisons that rewards careful reading.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, exercise 4 (rated 20): what is it asking?	Show coroutine linkage on a real machine or language you know.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, exercise 5 (rated 15): what is it asking?	Make the coroutine switch preserve a register across jumps.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, exercise 6 (rated 22, recommended): what is it asking?	Extend coroutine linkage to three coroutines.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2, exercise 7 (rated 30, recommended): what is it asking?	Write the reverse translator from the text's example as a MIX program. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2: how many exercises, and how are they rated?	7 exercises, rated 10 to 30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2: what should you be comfortable with first?	<ul><li>1.4.1 Subroutines</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.2: how should you work through it?	Trace the example with two columns on paper, one per coroutine, marking where control jumps. Then rewrite the example with Python generators or JavaScript generators and see how much simpler it gets.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.4.2 Coroutines
TAOCP §1.4.3 Interpretive Routines: what does it cover?	Interpreters written in MIX, culminating in a MIX simulator written in MIX itself and a trace routine that watches a program run. It covers decoding, dispatch, and the cost of interpretation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3: why does it matter?	You built two interpreters with Crafting Interpreters. This section is the same idea at the machine level, and the trace routine is the ancestor of every debugger.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, a common trap: “Trying to understand every line of the simulator in one sitting.” What's the catch?	Go routine by routine.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 2 of §1.4.3.1 (rated 20): what is it asking?	Write the missing shift routine for the simulator.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 3 of §1.4.3.1 (rated 22, recommended): what is it asking?	Write the missing MOVE routine for the simulator.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 5 of §1.4.3.1 (rated 24, recommended): what is it asking?	Measure the slowdown of simulating two instructions against running them directly.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 8 of §1.4.3.1 (rated 20): what is it asking?	True or false about an index register in the simulator's main loop. Practice reading someone else's code closely.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 1 of §1.4.3.2 (rated 22): what is it asking?	Make the trace routine restore rJ when it leaves.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 4 of §1.4.3.2 (rated 25, recommended): what is it asking?	Reason about what happens when the trace routine traces itself.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 7 of §1.4.3.2 (rated 25, recommended): what is it asking?	Design a jump trace that records only control transfers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3, exercise 7 of §1.4.3.1 (rated 32, recommended): what is it asking?	Make simulated I/O take simulated time instead of finishing instantly. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3: how many exercises, and how are they rated?	15 exercises, rated 10 to 40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3: what should you be comfortable with first?	<ul><li>1.4.1 Subroutines</li><li>Crafting Interpreters (clox dispatch loop)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.3: how should you work through it?	Map each part of Knuth's simulator to the matching part of your clox run() loop: fetch, decode, dispatch, execute. Read the simulator code slowly; it is long. The trace routine section is worth reading closely for how it intercepts each instruction.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.3 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.4.3 Interpretive Routines
TAOCP §1.4.4 Input and Output: what does it cover?	How MIX overlaps computation with slow I/O using buffers, including double buffering and buffer swapping, and the bookkeeping needed to do that safely.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4: why does it matter?	Buffering is still how fast I/O works, from disk reads to network sockets to audio. The ring-buffer patterns here are the same ones you will see in kernel and driver code.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, a common trap: “Getting lost in tape and card-reader specifics.” What's the catch?	The ideas, not the devices, are the point.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 1 (rated 05): what is it asking?	Check whether reordering the moves and the busy wait breaks buffered input.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 3 (rated 22, recommended): what is it asking?	Write the buffer-swapping output routine, the mirror image of the input one.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 6 (rated 12): what is it asking?	Set up the input routine so it gets off to the right start. Initialization is where buffering code breaks.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 9 (rated 21, recommended): what is it asking?	Simulate a buffer timeline from a list of compute and I/O times.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 14 (rated 20, recommended): what is it asking?	What happens when a program grabs two buffers before releasing either.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 15 (rated 22, recommended): what is it asking?	Write a complete tape copy program with three buffers, as fast as possible.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 5 (rated M21, recommended): what is it asking?	Bound how much buffering can speed up a program that uses several devices.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4, exercise 18 (rated 30, recommended): what is it asking?	Rework the buffering algorithms for a MIX with interrupts. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4: how many exercises, and how are they rated?	19 exercises, rated 05 to 40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4: what should you be comfortable with first?	<ul><li>1.4.1 Subroutines</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.4: how should you work through it?	Draw the buffers as boxes and simulate a few steps of producer and consumer by hand. Do not get hung up on MIX device details.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.4 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.4.4 Input and Output
TAOCP §1.4.5 History and Bibliography: what does it cover?	A short history of subroutines, coroutines, interpreters and related ideas, with pointers to the original papers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.5 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::1.4.5 History and Bibliography
TAOCP §1.4.5: why does it matter?	Knowing where ideas came from helps you see that today's &quot;new&quot; patterns are often old. It is also a breather after a heavy chapter.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.5 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::1.4.5 History and Bibliography
TAOCP §1.4.5: what should you be comfortable with first?	<ul><li>1.4.1 to 1.4.4</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.5 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::1.4.5 History and Bibliography
TAOCP §1.4.5: how should you work through it?	Read it with a coffee. Then spend your remaining time on chapter 1 exercises you skipped.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.4.5 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::1.4.5 History and Bibliography
TAOCP §2.1 Introduction: what does it cover?	Chapter 2 opens by defining how Knuth represents data in memory: nodes made of fields, links (pointers), and the notation he uses for them. It walks through a small example with a pile of playing cards.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1: why does it matter?	This notation is used for the rest of the series. It also forces you to think about data as concrete memory layout, which is exactly what C taught you in clox.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1: what traps should you watch for?	<ul><li>Mixing up a link and the node it points to in Knuth's notation.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 1 (rated 04): what is it asking?	Follow links in the card-pile example to read off field values.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 2 (rated 10): what is it asking?	Work out when taking an address and then dereferencing gets you back where you started.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 3 (rated 11): what is it asking?	Pop the top card. The inverse of the text's push.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 4 (rated 18): what is it asking?	Insert a card at the bottom of the pile, empty pile included.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 5 (rated 21, recommended): what is it asking?	Remove the bottom card, which means walking to the node before it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 8 (rated 18): what is it asking?	Turn one of the text's card-pile algorithms into MIX.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1, exercise 9 (rated 23): what is it asking?	Print the pile from MIX, one card per line, with face-down cards marked.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1: how many exercises, and how are they rated?	9 exercises, rated 04 to 23.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1: what should you be comfortable with first?	<ul><li>1.3 MIX</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.1: how should you work through it?	Short and important. Learn the node and field notation until you can read it without thinking. Relate it to C structs and pointers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.1 Introduction
TAOCP §2.2.1 Stacks, Queues, and Deques: what does it cover?	The three classic linear structures defined by where you insert and delete. Knuth uses railway-switching pictures to explore which output orders a stack or deque can produce from a given input order.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1: why does it matter?	Stacks and queues are the backbone of parsers, schedulers and graph search. The question of which permutations a stack can produce is a classic interview-style puzzle with a beautiful answer.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1: what traps should you watch for?	<ul><li>Confusing an input-restricted deque with an output-restricted one.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 1 (rated 06): what is it asking?	Check what input- and output-restricted deques can each imitate.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 2 (rated 15, recommended): what is it asking?	Push railroad cars through a stack by hand and see which orders you can make.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 3 (rated 25): what is it asking?	Characterize the push and pop strings a stack can actually carry out.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 6 (rated 00): what is it asking?	What a queue can do to the order. A sanity check.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 7 (rated 25, recommended): what is it asking?	Find permutations that separate the two kinds of restricted deque.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 14 (rated 26, recommended): what is it asking?	Build an efficient queue out of two stacks. The interview classic, from the source.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1, exercise 5 (rated M28, recommended): what is it asking?	Prove the forbidden-pattern test for which permutations a stack can produce. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1: how many exercises, and how are they rated?	14 exercises, rated 00 to M48.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1: what should you be comfortable with first?	<ul><li>2.1 Introduction</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.1: how should you work through it?	Draw the railway diagrams and push cars through them by hand. Then write a quick program that lists all permutations of 1..4 a stack can produce and count them. Compare with the Catalan numbers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.2.1 Stacks, Queues, and Deques
TAOCP §2.2.2 Sequential Allocation: what does it cover?	Storing stacks and queues in contiguous memory, handling overflow, circular queues, and keeping several stacks in one shared region with a method for repacking memory when one stack runs out of room (Garwick's approach).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2: why does it matter?	Arrays beat linked structures for cache performance, so contiguous allocation and growth strategies are still very relevant. Think dynamic arrays, ring buffers and arena allocators.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2: what traps should you watch for?	<ul><li>The classic circular-queue bug: not being able to tell full from empty.</li><li>Off-by-one on the boundary when two stacks meet.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 1 (rated 15, recommended): what is it asking?	Count how many items the circular queue holds before it reports overflow.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 2 (rated 22, recommended): what is it asking?	Extend the circular queue to a full deque.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 6 (rated 10): what is it asking?	Trace a sequence of operations on two stacks sharing memory and spot overflow.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 7 (rated 12): what is it asking?	Can the repacking algorithm ever divide by zero.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 16 (rated 20): what is it asking?	Can two queues, or a queue and a stack, share memory the way two stacks do.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 19 (rated 16, recommended): what is it asking?	Rewrite the stack and queue formulas with 0-based indexing and see what gets simpler.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 8 (rated 26, recommended): what is it asking?	Adapt the multi-stack repacking to tables that are circular queues.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2, exercise 18 (rated M30, recommended): what is it asking?	Bound the total running time of the repacking scheme. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2: how many exercises, and how are they rated?	19 exercises, rated 10 to HM43.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2: what should you be comfortable with first?	<ul><li>2.2.1 Stacks, Queues, and Deques</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.2: how should you work through it?	Implement a circular queue with an explicit full and empty test. Then implement two stacks growing toward each other in one array. The multi-stack repacking algorithm is worth tracing by hand once; the analysis can be read lightly.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.2.2 Sequential Allocation
TAOCP §2.2.3 Linked Allocation: what does it cover?	Linked lists, the available-space (free) list, and how to implement stacks and queues with links. The highlight is topological sorting: putting items in an order consistent with a set of &quot;must come before&quot; relations.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3: why does it matter?	Topological sort runs your build system, package manager and task scheduler. Free lists are the simplest memory allocator and still used in game engines and kernels.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
Topological sort: what is it?	A topological sort arranges the items of a partial order (or the vertices of a directed acyclic graph) in a sequence where every item comes after all the items that must precede it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
Topological sort: Is the topological order unique?	Only when the relations force a single chain. Usually many orders are valid, and which one you get depends on how ties are broken.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3: what traps should you watch for?	<ul><li>Losing nodes when you forget to return them to the free list.</li><li>Topological sort with a cycle in the input: decide what your code should do.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 1 (rated 10, recommended): what is it asking?	Why the linked push never mentions overflow in the text's notation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 7 (rated 23): what is it asking?	Reverse a singly linked list in place. The classic.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 2 (rated 22): what is it asking?	Write a general MIX insertion subroutine with the book's calling conventions.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 11 (rated 24, recommended): what is it asking?	List every valid topological order for a small example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 17 (rated 21, recommended): what is it asking?	Run the topological sort by hand on the text's input.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 20 (rated 24, recommended): what is it asking?	Swap the queue inside topological sort for a stack and compare the results.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 29 (rated 21, recommended): what is it asking?	Return a whole list to the free list as fast as possible.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3, exercise 23 (rated 27, recommended): what is it asking?	Make topological sort print an actual cycle when it gets stuck. The stretch, and a feature every build tool needs.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3: how many exercises, and how are they rated?	30 exercises, rated 10 to M48.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3: what should you be comfortable with first?	<ul><li>2.2.2 Sequential Allocation</li><li>C pointers (clox)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.3: how should you work through it?	This is a long and very rewarding section. Implement the free-list allocator in C. Then implement Knuth's topological sort algorithm from the text, run it on a small dependency graph from a real project, and check the output order.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.3 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.2.3 Linked Allocation
TAOCP §2.2.4 Circular Lists: what does it cover?	Lists whose last node points back to the first, which makes some operations simpler. The main example is adding and multiplying polynomials stored as circular lists of terms.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4: why does it matter?	Circular lists are used in schedulers, LRU caches and buffer rings. The polynomial example is a great exercise in pointer surgery.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4: what traps should you watch for?	<ul><li>Infinite loops when traversing a circular list without a sentinel or stop condition.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 3 (rated 20, recommended): what is it asking?	Work out what concatenation does when both pointers are in the same circular list.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 5 (rated 21, recommended): what is it asking?	Reverse the links of a circular list.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 8 (rated 10, recommended): what is it asking?	Why the polynomial addition loop keeps a trailing pointer.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 9 (rated 23, recommended): what is it asking?	Check whether polynomial add and multiply survive aliased arguments. Aliasing bugs, early.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 13 (rated 20): what is it asking?	Write a MIX subroutine that returns a whole polynomial to the free list.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 17 (rated 22, recommended): what is it asking?	Argue why circular lists beat null-terminated ones for polynomials.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 15 (rated 24): what is it asking?	Write polynomial multiplication as a MIX subroutine.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4, exercise 18 (rated 25, recommended): what is it asking?	Traverse a list in both directions with only one link field per node. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4: how many exercises, and how are they rated?	18 exercises, rated 10 to M28.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4: what should you be comfortable with first?	<ul><li>2.2.3 Linked Allocation</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.4: how should you work through it?	Implement polynomial addition with circular linked lists in C, following the algorithm in the text. Test with polynomials that cancel terms.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.4 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.2.4 Circular Lists
TAOCP §2.2.5 Doubly Linked Lists: what does it cover?	Lists with links in both directions, making deletion and insertion anywhere cheap. Knuth illustrates them with a detailed discrete-event simulation of an elevator system.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5: why does it matter?	Doubly linked lists underpin LRU caches and editor buffers, and the elevator simulation is a crash course in discrete-event simulation, a technique still used for modeling systems.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, a common trap: “Updating only one of the two links on insert or delete.” What's the catch?	Write the four pointer updates down before coding them.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 1 (rated 21): what is it asking?	Spell out insertion and deletion at the left end of a doubly linked list.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 2 (rated 22, recommended): what is it asking?	Explain why a singly linked list cannot be an efficient general deque.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 3 (rated 22, recommended): what is it asking?	Design a button-pressing experiment that proves the elevator really keeps three separate call flags per floor.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 5 (rated 20): what is it asking?	Trace how one change to the arrival table changes the elevator's moves.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 8 (rated 21): what is it asking?	Write the elevator step the text left out, in MIX.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 11 (rated 21, recommended): what is it asking?	Simulate simultaneous updates of many variables cheaply when only a few change per step.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5, exercise 12 (rated 22, recommended): what is it asking?	Explain why the simulation uses doubly linked lists.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5: how many exercises, and how are they rated?	12 exercises, rated 20 to 40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5: what should you be comfortable with first?	<ul><li>2.2.4 Circular Lists</li><li>1.4.2 Coroutines</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.5: how should you work through it?	Implement a doubly linked list with a header node and test insert and delete at all positions. The elevator simulation is long: read it for structure, focus on how the event list works, and do not try to trace every MIX line.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.5 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.2.5 Doubly Linked Lists
TAOCP §2.2.6 Arrays and Orthogonal Lists: what does it cover?	Storing multidimensional arrays in memory, including triangular arrays, then sparse matrices stored as lists linked across both rows and columns, with a pivot step from matrix computation as the example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6: why does it matter?	Row-major versus column-major layout decides cache behavior in numeric code. Sparse matrix storage is how graph algorithms and scientific computing handle huge, mostly empty data.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, a common trap: “Index arithmetic errors with triangular arrays.” What's the catch?	Test on a 4x4 case.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 1 (rated 17): what is it asking?	Address formula for a two-dimensional array whose nodes are two words long.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 2 (rated 21, recommended): what is it asking?	Generalize the array address formula to arbitrary index bounds.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 4 (rated 22): what is it asking?	Derive the address formula for an upper triangular array.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 11 (rated 11): what is it asking?	Storage cost of a sparse matrix in the orthogonal list form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 12 (rated 20, recommended): what is it asking?	Track the values the pivot algorithm holds at one step.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 13 (rated 22, recommended): what is it asking?	Why the sparse matrix uses circular lists, and whether it has to.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 24 (rated 25, recommended): what is it asking?	Get zero-on-first-read array behavior without clearing memory. The sparse array trick.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6, exercise 15 (rated 29, recommended): what is it asking?	Write the sparse pivot algorithm in MIXAL with floating point. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6: how many exercises, and how are they rated?	24 exercises, rated 11 to 33.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6: what should you be comfortable with first?	<ul><li>2.2.5 Doubly Linked Lists</li><li>Basic matrices</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.2.6: how should you work through it?	Derive the address formula for row-major storage yourself. Then implement the orthogonal list representation for a tiny sparse matrix and check it by printing rows and columns.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
TAOCP §2.3.1 Traversing Binary Trees: what does it cover?	Binary trees, the three traversal orders (preorder, inorder, postorder), traversal with an explicit stack instead of recursion, and threaded trees where spare null links point to inorder successors.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1: why does it matter?	Tree traversal is everywhere: ASTs in your interpreters, DOM trees, file systems. Converting recursion to an explicit stack is a practical skill when recursion depth is a risk.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, a common trap: “Threads and real links look identical without the tag bit.” What's the catch?	Keep the tag.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1: what traps should you watch for?	<ul><li>Confusing the order in which you push left and right children.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 21 of §2.3 (rated M22): what is it asking?	From the 2.3 opener: count leaves from the numbers of nodes of each degree.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 2 (rated 11): what is it asking?	List a small tree's nodes in all three orders.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 4 (rated 20, recommended): what is it asking?	Look at a mirror-image traversal order and relate it to the standard ones.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 7 (rated 22): what is it asking?	Rebuild a binary tree from its preorder and inorder. The interview favorite, from the source.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 13 (rated 24): what is it asking?	Write a stack-based postorder traversal. The tricky one.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 17 (rated 22, recommended): what is it asking?	Find the preorder successor in a threaded tree.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 30 (rated 22, recommended): what is it asking?	Thread an unthreaded tree.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1, exercise 21 (rated 33, recommended): what is it asking?	Traverse in inorder with no stack by temporarily rewiring links. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1: how many exercises, and how are they rated?	37 exercises, rated 00 to HM41.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1: what should you be comfortable with first?	<ul><li>2.2.3 Linked Allocation</li><li>Recursion</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.1: how should you work through it?	Read the opening pages of 2.3 (Trees) first: the definitions, the drawing conventions, Dewey notation, forests and Lists. The curriculum has no separate week for them and 2.3.1 assumes them. Then implement inorder traversal with an explicit stack and confirm it matches the recursive version on random trees. Build a threaded tree and walk it without any stack. Compare to the AST visitors from jlox.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.3.1 Traversing Binary Trees
TAOCP §2.3.2 Binary Tree Representation of Trees: what does it cover?	Any general tree or forest can be stored as a binary tree using the &quot;first child, next sibling&quot; trick. Knuth applies it to symbolic differentiation of algebraic formulas stored as trees.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2: why does it matter?	The child-sibling representation is how many compilers and file systems store variable-arity trees. Symbolic differentiation is a mini compiler pass, so it should feel familiar after Crafting Interpreters.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, a common trap: “Forgetting that preorder of the forest equals preorder of the binary tree, but postorder of the forest corresponds to inorder of the binary tree.” What's the catch?	Check it on an example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 1 (rated 20, recommended): what is it asking?	Define the reverse mapping, from a binary tree back to a forest.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 2 (rated 20, recommended): what is it asking?	Relate Dewey numbers in a forest to those in its binary tree.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 4 (rated 19): what is it asking?	True or false on leaf positions in preorder and postorder.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 11 (rated 15): what is it asking?	Draw the trees the differentiator would store for a small formula.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 18 (rated 25, recommended): what is it asking?	Turn a parent table into a preorder doubly linked list efficiently.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 20 (rated M22, recommended): what is it asking?	Prove the ancestor test using preorder and postorder positions. A trick real tree queries use.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 13 (rated 26, recommended): what is it asking?	Write the tree copy subroutine in MIX for the differentiator.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2, exercise 22 (rated M26, recommended): what is it asking?	Tree embedding, a partial order on trees. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2: how many exercises, and how are they rated?	22 exercises, rated 15 to M40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2: what should you be comfortable with first?	<ul><li>2.3.1 Traversing Binary Trees</li><li>Basic derivatives</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.2: how should you work through it?	Convert a few small forests to binary trees by hand. Then implement a tiny symbolic differentiator over an expression tree in any language. It is a fun weekend project.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.3.2 Binary Tree Representation of Trees
TAOCP §2.3.3 Other Representations of Trees: what does it cover?	Alternative ways to store trees: sequential layouts in preorder or level order with tags or degrees, parent links only, and triply linked trees. It covers evaluating a function bottom-up over a tree, the algorithm for processing equivalence relations by keeping trees with parent pointers (the ancestor of union-find), and adding polynomials stored as trees.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3: why does it matter?	Union-find is a workhorse (Kruskal's algorithm, connected components, type inference). Compact tree encodings matter for serialization and succinct data structures.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3: what traps should you watch for?	<ul><li>Forgetting to find the roots before linking two trees.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 1 (rated 20, recommended): what is it asking?	Decide whether the left links can be rebuilt from a level-order layout with tags only.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 4 (rated 18): what is it asking?	Count the wasted null links and compare representations.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 6 (rated 24, recommended): what is it asking?	Fill in child and sibling links when only parent links exist.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 8 (rated 15): what is it asking?	Use the equivalence forest to answer whether two items are equivalent.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 9 (rated 20): what is it asking?	Trace the equivalence algorithm on the text's input.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 11 (rated 24, recommended): what is it asking?	Handle Fortran-style EQUIVALENCE declarations with the tree method.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 17 (rated 25, recommended): what is it asking?	Evaluate a top-down attribute over a tree stored sequentially.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3, exercise 10 (rated 28): what is it asking?	Fix the equivalence algorithm's quadratic worst case. The stretch: you will reinvent part of union-find.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3: how many exercises, and how are they rated?	19 exercises, rated 15 to 40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3: what should you be comfortable with first?	<ul><li>2.3.2 Binary Tree Representation of Trees</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.3: how should you work through it?	Implement the equivalence algorithm with parent pointers, then add path compression and union by size yourself and measure the speedup. The sequential representations are quick reads.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.3 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.3.3 Other Representations of Trees
TAOCP §2.3.4 Basic Mathematical Properties of Trees (part 1): what does it cover?	Part 1 covers the first three subsections: free trees (connected graphs without cycles) and spanning trees, including using Kirchhoff's law to count how often each part of a flowchart runs; oriented trees and directed graphs, including Euler circuits; and the infinity lemma about infinite trees with finite branching.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1): why does it matter?	This is the bridge between data-structure trees and graph theory. Spanning trees show up in networking, clustering and circuit design.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1): what traps should you watch for?	<ul><li>Mixing up free trees (no root) and oriented trees (with a root and direction).</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 2 of §2.3.4.1 (rated M20): what is it asking?	Show any path can be trimmed down to a simple path.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 10 of §2.3.4.1 (rated 16): what is it asking?	Connect n terminals with as few wires as possible, and see why a spanning tree is the answer.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 6 of §2.3.4.1 (rated M27, recommended): what is it asking?	Pick a spanning tree out of an edge list efficiently, or report there is none.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 4 of §2.3.4.2 (rated M20, recommended): what is it asking?	Show a directed graph can be topologically sorted exactly when it has no oriented cycles.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 7 of §2.3.4.2 (rated M22, recommended): what is it asking?	Decide whether a condition in the definition of an oriented tree can be dropped.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 10 of §2.3.4.2 (rated 22): what is it asking?	Re-root a tree stored as a parent table.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 3 of §2.3.4.3 (rated M23, recommended): what is it asking?	Quadrant tiling versus plane tiling. An infinity lemma workout.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1), exercise 12 of §2.3.4.1 (rated 29, recommended): what is it asking?	Turn a minimum spanning tree method into an implementable algorithm with real data structures. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1): how many exercises, and how are they rated?	49 exercises, rated M10 to HM40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1): what should you be comfortable with first?	<ul><li>2.3.1 to 2.3.3</li><li>1.2.1 Mathematical Induction</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 (part 1): how should you work through it?	Draw lots of small graphs. Prove to yourself that a tree on n vertices has n - 1 edges. Read 2.3.4.1 to 2.3.4.3 carefully; the infinity lemma is short but subtle.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 1)
TAOCP §2.3.4 Basic Mathematical Properties of Trees (part 2): what does it cover?	Part 2 covers counting trees (binary trees, oriented and free trees, labeled trees), path length and its role in measuring tree cost, Huffman's method for building optimal weighted trees, and the section's history, which comes with a few exercises on polygon dissections.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2): why does it matter?	Counting trees gives you Catalan numbers, which pop up everywhere. Huffman coding is used inside gzip, PNG and JPEG.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), a common trap: “Confusing internal and external path length.” What's the catch?	Write out both for a small tree.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 8 of §2.3.4.4 (rated 20): what is it asking?	Draw all free trees on six vertices and mark their centroids.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 13 of §2.3.4.4 (rated 15): what is it asking?	Decode an oriented tree from its canonical sequence.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 16 of §2.3.4.4 (rated 25): what is it asking?	Convert that canonical sequence to parent links efficiently.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 22 of §2.3.4.4 (rated M20): what is it asking?	Count the labeled free trees on n vertices.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 2 of §2.3.4.5 (rated 17): what is it asking?	Build a minimum weighted path length tree by hand with Huffman's method.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 13 of §2.3.4.5 (rated 22): what is it asking?	Implement Huffman's method on sorted weights with fewer than 2m comparisons.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 1 of §2.3.4.6 (rated 21, recommended): what is it asking?	Match binary trees with triangulations of a polygon.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2), exercise 11 of §2.3.4.4 (rated M28, recommended): what is it asking?	Count t-ary trees by generalizing the binary tree count. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2): how many exercises, and how are they rated?	54 exercises, rated 10 to HM40.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2): what should you be comfortable with first?	<ul><li>2.3.4 part 1</li><li>1.2.9 Generating Functions</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.4 (part 2): how should you work through it?	Derive the count of binary trees with n nodes using a generating function before reading Knuth's derivation. Implement Huffman coding with a priority queue and compress a text file.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.4 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.3.4 Basic Mathematical Properties of Trees (part 2)
TAOCP §2.3.5 Lists and Garbage Collection: what does it cover?	General lists that can share sublists and even contain themselves, reference counting, and garbage collection by marking reachable nodes. It includes the famous trick of marking without an auxiliary stack by temporarily reversing links (Schorr-Waite).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5: why does it matter?	You wrote a mark-sweep collector for clox in chapter 26 of Crafting Interpreters. This section shows the same problem with tight memory, and link reversal is a classic example of clever pointer manipulation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, a common trap: “Reference counting cannot reclaim cycles.” What's the catch?	Knuth explains why; make sure you can too.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5: what traps should you watch for?	<ul><li>In link reversal, forgetting to restore a link on the way back up.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 1 (rated M21, recommended): what is it asking?	Describe List structures as directed graphs.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 6 (rated 00): what is it asking?	Where the cost term proportional to total memory comes from in garbage collection.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 5 (rated 25): what is it asking?	Combine a small fixed stack with link reversal for marking. Close to what real collectors do.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 7 (rated 24): what is it asking?	Marking without a stack when nodes have fewer spare fields.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 8 (rated 27, recommended): what is it asking?	Link-reversal marking for nodes of variable size.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 9 (rated 28, recommended): what is it asking?	Compact live nodes to one end of memory and fix up the links.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 10 (rated 28, recommended): what is it asking?	Copy a List structure that shares and even contains itself.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5, exercise 12 (rated 30): what is it asking?	Make garbage collection safe for real-time use. The stretch: incremental collection before it had a name.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5: how many exercises, and how are they rated?	12 exercises, rated 00 to M30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5: what should you be comfortable with first?	<ul><li>2.3.1 Traversing Binary Trees</li><li>Crafting Interpreters ch 26 (Garbage Collection)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.3.5: how should you work through it?	Compare Knuth's marking algorithms to your clox gray stack. Trace the link-reversal marking algorithm on a small graph on paper; it is tricky and worth drawing every step.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.3.5 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.3.5 Lists and Garbage Collection
TAOCP §2.4 Multilinked Structures: what does it cover?	Nodes that belong to several lists at once, illustrated by how a compiler for a COBOL-like language stores nested data declarations and implements a &quot;move corresponding fields&quot; operation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4: why does it matter?	Symbol tables, ORMs and many in-memory databases use multilinked nodes. It is also a peek at real compiler engineering from the 1960s.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, a common trap: “Getting lost in COBOL semantics.” What's the catch?	Focus on the data structure.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 1 (rated 00): what is it asking?	Which traversal order the level-numbered declarations follow.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 7 (rated 15): what is it asking?	Work out what one move-corresponding statement does on the text's data.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 8 (rated 10): what is it asking?	When moving corresponding fields is the same as a plain move.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 3 (rated 22): what is it asking?	Handle arbitrary level-number sequences in the table builder.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 4 (rated 26, recommended): what is it asking?	Make the table builder reject one class of malformed declarations.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 11 (rated 23, recommended): what is it asking?	Find extra links or strategy changes that speed up the lookups.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 13 (rated 24, recommended): what is it asking?	Rewrite the table builder for a compact sequential format.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4, exercise 14 (rated 28, recommended): what is it asking?	Rewrite the corresponding-fields search for that format. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4: how many exercises, and how are they rated?	15 exercises, rated 00 to 28.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4: what should you be comfortable with first?	<ul><li>2.3 Trees</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.4: how should you work through it?	Read the problem statement carefully and sketch the data layout yourself before reading Knuth's design. The details of COBOL are not important; the structure design is.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.4 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.4 Multilinked Structures
TAOCP §2.5 Dynamic Storage Allocation: what does it cover?	How malloc-style allocators work: first-fit versus best-fit, splitting and merging free blocks, boundary tags for fast coalescing, the buddy system, and simulation results on fragmentation, including Knuth's fifty-percent rule about how many free blocks to expect.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5: why does it matter?	Every malloc, every arena and every slab allocator uses these ideas. Understanding fragmentation helps you debug memory blowups in long-running services.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, a common trap: “Alignment.” What's the catch?	Real allocators must return aligned addresses; Knuth's model ignores this.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, a common trap: “Assuming best-fit always beats first-fit.” What's the catch?	The simulations in the text say otherwise.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5: what traps should you watch for?	<ul><li>Forgetting to merge with both neighbors on free.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 7 (rated 10): what is it asking?	Construct a case where best-fit beats first-fit.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 5 (rated 18, recommended): what is it asking?	Judge a proposed threshold for splitting blocks in first-fit.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 6 (rated 23, recommended): what is it asking?	Next fit: start each search where the last one stopped.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 12 (rated 20, recommended): what is it asking?	Combine boundary tags, the split threshold and next fit in one allocator.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 23 (rated 05): what is it asking?	Compute buddy addresses by flipping one bit.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 26 (rated 21, recommended): what is it asking?	Make the buddy system work when memory is not a power of two.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 36 (rated 20, recommended): what is it asking?	Prove a seating strategy never fails at a lunch counter. A fragmentation puzzle in disguise.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5, exercise 33 (rated 28, recommended): what is it asking?	Garbage collection with compaction for variable-size nodes. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5: how many exercises, and how are they rated?	44 exercises, rated 00 to HM50.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5: what should you be comfortable with first?	<ul><li>2.2.3 Linked Allocation</li><li>C malloc/free (clox)</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.5: how should you work through it?	Implement a tiny first-fit allocator with boundary tags over a static byte array in C, then a buddy allocator. Write a test that does random allocate/free and checks no block overlaps.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.5 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.5 Dynamic Storage Allocation
TAOCP §2.6 History and Bibliography: what does it cover?	The history of lists, trees and storage allocation, with references to the original work.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.6 cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::2.6 History and Bibliography
TAOCP §2.6: why does it matter?	A quick look at how these structures were invented, and a breather before the Vol 1 review.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.6 cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::2.6 History and Bibliography
TAOCP §2.6: what should you be comfortable with first?	<ul><li>Chapter 2</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.6 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::2.6 History and Bibliography
TAOCP §2.6: how should you work through it?	Read it in one sitting.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.6 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::2.6 History and Bibliography
TAOCP Vol 1 review: what does it cover?	A review week for all of Volume 1: the mathematical preliminaries, MIX, and information structures.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::about	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review: why does it matter?	Volume 2 leans on the math from 1.2 hard. Patching gaps now saves pain later.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::why	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, a common trap: “Skipping review because you are behind.” What's the catch?	Review is where the material sticks.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::trap	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 34 of §1.2.4 (rated M21, recommended): what is it asking?	When the floor of a log equals the log of a floor. Mixes floors and logs.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 62 of §1.2.6 (rated M23, recommended): what is it asking?	A sum of three binomials with a short proof once you see the trick. Tests the toolbox.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 25 of §1.2.9 (rated M23, recommended): what is it asking?	Evaluate a binomial sum by recasting it with coefficient extraction.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 36 of §1.3.3 (rated 27): what is it asking?	Write a MIX subroutine for rotating three blocks of an array and time it. Programming review.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 10 of §2.2.4 (rated 20, recommended): what is it asking?	Adapt polynomial add and multiply to one variable with much bigger exponents. Data layout review.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 37 of §2.3.1 (rated 24, recommended): what is it asking?	Store a binary tree in fewer words by dropping one link. Representation review.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 22 of §2.5 (rated 21, recommended): what is it asking?	Explain why you cannot just carve an odd-sized request out of a buddy block and free the leftovers. Allocator review.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review, exercise 25 of §2.5 (rated 22, recommended): what is it asking?	Criticize a plausible shortcut in the buddy system.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review: how many exercises, and how are they rated?	932 exercises, rated 00 to HM50.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review: what should you be comfortable with first?	<ul><li>All of Vol 1</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 1::Vol 1 review
TAOCP: Vol 1 review: how should you work through it?	Make a one-page summary per chapter: key identities from 1.2, key MIX idioms, and key structures from chapter 2. Re-attempt two exercises you gave up on. Check the Vol 1 errata for anything you got confused by.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::vol_1_review cracked.guide::kind::approach	cracked.guide::TAOCP Vol 1::Vol 1 review
