#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck column:4
#columns:Front	Back	Tags	Deck
TAOCP Vol 4B: Combinatorial Algorithms, Part 2: what is the phase about?	The final stretch: probability tools for analyzing search, backtracking, dancing links for exact cover problems (sudoku, polyominoes and much more), and a deep dive into SAT solving, the technology behind modern verification and constraint solving. You end the path implementing ideas that are still at the research frontier.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::About this phase
TAOCP Vol 4B: what should you be able to do by the end?	<ul><li>Write fast backtracking searches and estimate their running time before you run them.</li><li>Implement dancing links and use exact cover to model real puzzles and scheduling problems.</li><li>Encode problems as SAT and understand how modern CDCL solvers work.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::kind::outcomes	cracked.guide::TAOCP Vol 4B::About this phase
TAOCP Vol 4B: what do you need before you start?	<ul><li>Vol 4A, especially 7.1.1 and 7.2.1.</li><li>Probability basics (the volume opens with a week reviewing them).</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::kind::need	cracked.guide::TAOCP Vol 4B::About this phase
TAOCP Vol 4B: how do you get the book?	Vol 4B (2022) is about $64 new from InformIT; used copies are not much cheaper yet. The paperback Fascicles 5 and 6 cover earlier drafts of the same material. 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-4b cracked.guide::kind::book	cracked.guide::TAOCP Vol 4B::About this phase
TAOCP Vol 4B: tips for getting through it?	<ul><li>Watch a couple of Knuth's annual Christmas lectures on dancing links; they are free on YouTube.</li><li>Install a real SAT solver early and play with encodings.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::kind::tips	cracked.guide::TAOCP Vol 4B::About this phase
TAOCP Mathematical Preliminaries Redux: what does it cover?	An unnumbered probability tutorial that opens the volume (cited as MPR). It reviews probability spaces, k-wise independence and conditional probability, then makes conditional expectation E(X|Y) precise as a random variable. Next come inequalities: Markov, Chebyshev, Jensen, the first and second moment principles, Ross's conditional expectation inequality and the FKG inequality. Then martingales (Pólya's urn, optional stopping, Kolmogorov's maximal inequality, the Hoeffding-Azuma tail bound), Doob martingales and the method of bounded differences, applied to a hashing example. It ends with 'almost sure' versus 'quite sure' (superpolynomially unlikely to fail) statements.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux: why does it matter?	Tail bounds are how you reason about randomized algorithms, load balancing and hashing guarantees. This is advanced but very useful math.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, a common trap: “Reading E(X|Y) as a number.” What's the catch?	In MPR it is a random variable, a function of Y; that is what makes E X = E(E(X|Y)) work.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, a common trap: “Treating pairwise independence as full independence.” What's the catch?	Exercise 6 builds a counterexample.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux: what traps should you watch for?	<ul><li>Applying an inequality whose conditions (independence, bounded differences) do not hold.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::traps	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 13 (rated 15): what is it asking?	Decide whether 'B makes A likelier, and C makes B likelier' means C makes A likelier. It doesn't always, and that surprises people.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 17 (rated 15, recommended): what is it asking?	A conditional probability in the playing-card example. A warm-up for the notation.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 6 (rated M22, recommended): what is it asking?	Build random bit vectors that are pairwise independent but not 3-wise independent.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 22 (rated M20, recommended): what is it asking?	Derive the union bound from the indicator-variable identity for expectations.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 35 (rated M22, recommended): what is it asking?	Two true-or-false identities about nested conditional expectations. Tests whether you understand E(X|Y) as a random variable.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 48 (rated M20, recommended): what is it asking?	Show that the second moment principle gives a one-sided bound slightly better than Chebyshev's.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 54 (rated M22, recommended): what is it asking?	Bound the probability that a random graph has a triangle, using the first and second moment principles.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux, exercise 66 (rated M22, recommended): what is it asking?	Classify every martingale whose nth value is always plus or minus n.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux: how many exercises, and how are they rated?	147 exercises, rated 10 to HM34.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux: what should you be comfortable with first?	<ul><li>1.2 Mathematical Preliminaries</li><li>Probability: expectation, variance</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP: Mathematical Preliminaries Redux: how should you work through it?	Make a one-page sheet of each inequality with a tiny example. Simulate one in code (e.g. flips of a coin) and compare the actual tail to the bound.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
TAOCP §7.2.2 Backtrack Programming (part 1): what does it cover?	Part 1 covers the first two-thirds of 7.2.2 (pages 30 to 45). It starts with the basic backtrack scheme (Algorithm B) on the n queens problem, then Walker's bitwise version (Algorithm W), Langford pairs with a linked list of unused values (Algorithm L), and word rectangles built column by column with a trie. After that comes a long case study: searching for commafree codes with dynamic ordering of choices, sequential (array-based) lists with cheap deletion and undeletion, and a general memory-stamping scheme for doing and undoing changes (Algorithm C).	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): why does it matter?	Backtracking solves constraint problems from sudoku to scheduling to regex matching. It is also a constant source of LeetCode problems.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): what is Algorithm B about?	The basic backtrack scheme.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): what is Algorithm W about?	Walker's bitwise version.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): what is Algorithm L about?	Langford pairs with a linked list of unused values.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): what is Algorithm C about?	A general memory-stamping scheme for doing and undoing changes.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), a common trap: “Choosing a bad order of variables.” What's the catch?	The commafree search shows how much dynamic ordering (most constrained choice first) helps.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), a common trap: “Assuming linked lists are always the right undo structure.” What's the catch?	The text's sequential lists, with swap-to-delete, are often faster.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): what traps should you watch for?	<ul><li>Forgetting to undo state on the way back.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 5 (rated 20, recommended): what is it asking?	Rewrite Algorithm B as a recursive procedure, and think about why the book prefers the iterative form.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 10 (rated 22, recommended): what is it asking?	Adapt Walker's method to n queens with n-bit masks. The classic fast queens counter.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 20 (rated 21, recommended): what is it asking?	Add a forcing rule to the Langford pair search, so values that must go in now are placed at once.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 25 (rated 25, recommended): what is it asking?	Use orthogonal lists to find all words with a given letter in a given position, and speed up the word rectangle search with them.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 35 (rated 22, recommended): what is it asking?	Design an incremental test that accepts a new four-letter word only if the code stays commafree.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 40 (rated 15, recommended): what is it asking?	Think about why these sequential list structures were left out of the Vol 1 section on sequential allocation.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 44 (rated 25, recommended): what is it asking?	Write out the low-level candidate selection step of the commafree search, using the reversible store routine.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1), exercise 37 (rated M30, recommended): what is it asking?	The stretch: understand and prove Eastman's construction of a maximum commafree code for odd block lengths.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): how many exercises, and how are they rated?	48 exercises, rated 10 to HM42.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): what should you be comfortable with first?	<ul><li>7.2.1 Generating Basic Combinatorial Patterns</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 (part 1): how should you work through it?	Implement n queens twice: once as Algorithm B with plain arrays, and once with Walker's bitmask trick. Count solutions up to n = 14 or so. Then do Langford pairs with Algorithm L. Read the commafree case study slowly; the doing/undoing scheme is the idea you will reuse all through 7.2.2.1 and 7.2.2.2.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 1)
TAOCP §7.2.2 Backtrack Programming (part 2): what does it cover?	Part 2 covers the rest of 7.2.2 (pages 46 to 54). It shows how to estimate the running time of a backtrack program before running it, by following random paths down the tree (Algorithm E), and why the estimate is unbiased. An optional starred part uses the same idea to estimate the number of solutions, with king paths on a chessboard as the example. Then 'factoring the problem' splits a search into independent pieces, using the Instant Insanity cube puzzle. The section ends with historical notes.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2): why does it matter?	Estimating search cost is a superpower: you can tell in seconds whether a search will take a minute or a million years.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2): what is Algorithm E about?	Following random paths down the tree.<div class="cg-dim cg-ctx">It shows how to estimate the running time of a backtrack program before running it, by following random paths down the tree (Algorithm E), and why the estimate is unbiased.</div>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), a common trap: “Trusting a single random estimate.” What's the catch?	The variance is huge; average many probes.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), a common trap: “Thinking the estimator is biased because single runs are wildly off.” What's the catch?	It is unbiased; it just has high variance.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 49 (rated 20): what is it asking?	Trace how the random bits in the figure produced each choice in a sample probe.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 60 (rated 20, recommended): what is it asking?	Try weighting king moves to bias the random walk, and see whether the estimates get better.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 62 (rated 22, recommended): what is it asking?	Estimate how often four randomly colored cubes give an Instant Insanity puzzle with exactly one solution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 66 (rated 23, recommended): what is it asking?	Show that a rotating-disks puzzle factors into small independent pieces you can solve by hand.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 52 (rated HM25, recommended): what is it asking?	Connect Algorithm E on a simple decreasing-sequence tree to a coin-flipping process.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 56 (rated M25, recommended): what is it asking?	Figure out how to estimate the running time of the commafree search, which does not fit the plain Algorithm E mold.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 75 (rated 30, recommended): what is it asking?	Design a backtrack generator for all connected vertex subsets of a graph that contain a given vertex.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2), exercise 53 (rated M30, recommended): what is it asking?	The stretch: extend Algorithm B to report the minimum, maximum, mean and variance of the Monte Carlo estimates.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2): how many exercises, and how are they rated?	31 exercises, rated M15 to 41.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2): what should you be comfortable with first?	<ul><li>7.2.2 part 1</li><li>Mathematical Preliminaries Redux</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2 (part 2): how should you work through it?	Implement Algorithm E for your n queens program from part 1. Compare the averages of many random probes with the true node counts, and look at how widely single estimates vary. Then solve Instant Insanity by hand using the factoring idea.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2 Backtrack Programming (part 2)
TAOCP §7.2.2.1 Dancing Links (part 1): what does it cover?	Part 1 covers pages 65 to 78 of 7.2.2.1. Deleting a node from a doubly linked list and later restoring it from its own stale links is the 'dance'. With it, Algorithm X backtracks over exact cover problems (items and options), using the minimum-remaining-values heuristic to pick an item. The text then adds secondary items (covered at most once), progress reports for long runs, and a long sudoku study: the exact cover model, naked and hidden singles, and variants like jigsaw sudoku.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1): why does it matter?	Dancing links is one of Knuth's most famous techniques. Exact cover models sudoku, polyomino tiling and many scheduling problems.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
Dancing links: what is it?	Dancing links is a technique for backtracking in which nodes are removed from doubly linked lists and later restored from their own stale pointers, used by Knuth's Algorithm X to solve exact cover problems.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
Dancing links: Who invented dancing links?	The link-removal trick predates Knuth (he credits Hitotumatu and Noshita, 1979), but Knuth named it &quot;dancing links&quot;, popularized it in a 2000 paper and built Algorithm X around it.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
Dancing links: Is DLX the fastest sudoku solver?	It solves any sudoku in a blink and is easy to get right, but hand-tuned constraint solvers can be faster. Its strength is that one program handles every exact cover puzzle.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
Exact cover: what is it?	An exact cover problem gives a set of items and a collection of options, each a subset of the items, and asks for options that together contain every item exactly once.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
Exact cover: Is exact cover NP-complete?	Yes, it is one of Karp's classic NP-complete problems. Good heuristics still solve real puzzle instances quickly.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), a common trap: “Restoring links in the wrong order on backtrack.” What's the catch?	It must be the exact reverse of removal.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), a common trap: “Making the queens' diagonals primary items.” What's the catch?	They must be secondary, since not every diagonal gets a queen.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), a common trap: “Skipping the MRV heuristic.” What's the catch?	Without it Algorithm X can be orders of magnitude slower.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 9 (rated 18): what is it asking?	Implement the minimum-remaining-values choice of item. You will use it in every later algorithm.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 11 (rated 19, recommended): what is it asking?	Run Algorithm X by hand on Table 1 and record the memory contents. The best way to see the dance.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 12 (rated 21, recommended): what is it asking?	Print the option that a given node belongs to. A small, useful debugging routine.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 14 (rated 20, recommended): what is it asking?	Model the ménage seating problem as exact cover and count solutions.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 19 (rated 21, recommended): what is it asking?	Change Algorithm X to work with no primary items at all, with a sensible definition of a solution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 22 (rated 28, recommended): what is it asking?	Use pairwise encoding to cut n queens solutions by symmetry, case by case.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 40 (rated 21, recommended): what is it asking?	Count exact cover solutions with bitwise vectors instead of links. A totally different approach.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1), exercise 67 (rated 22, recommended): what is it asking?	Find the hidden extra constraints in hypersudoku and use them to solve puzzles.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1): how many exercises, and how are they rated?	77 exercises, rated M04 to 47.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 (part 1): what should you be comfortable with first?	<ul><li>2.2.5 Doubly Linked Lists</li><li>7.2.2 Backtrack Programming</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 1)
TAOCP §7.2.2.1 Dancing Links (part 2): what does it cover?	Part 2 covers the first stretch of pages 79 to 97 of 7.2.2.1: packing polyominoes and polycubes (the pentominoes, the Soma cube), and 'factoring' an exact cover problem into independent parts, which can prove a packing impossible without searching it. Everything here runs on plain Algorithm X from part 1; the rest of those pages (color controls and multiplicities) is part 3.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2): why does it matter?	Packing puzzles are where exact cover earns its keep: one modeling tool turns a shape and a set of pieces into options, and the solver from part 1 does the rest. Factoring shows how a little math can replace an enormous search.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2), a common trap: “Double-counting symmetric solutions in polyomino packing.” What's the catch?	Restrict one piece's placements to break symmetry.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2), exercise 266 (rated 25, recommended): what is it asking?	Sketch a tool that turns a shape plus a set of pieces into exact cover options. You need it for every packing puzzle.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2), exercise 268 (rated 21, recommended): what is it asking?	Find all pentomino packings of a 5 by 12 box with Algorithm X, and deal with symmetry.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2), exercise 326 (rated M25, recommended): what is it asking?	Prove by factoring that a certain Soma cube wall cannot be built.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2), exercise 378 (rated M30, recommended): what is it asking?	The stretch: prove that any set of rectangle shapes has a finite subset that builds all the others by concatenation (read 377 first).	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2): what should you be comfortable with first?	<ul><li>7.2.2.1 part 1</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 (part 2): how should you work through it?	Write a small tool that turns a board shape and a set of pieces (with their rotations and reflections) into exact cover options, and feed it to your Algorithm X from part 1. Solve the 6 by 10 pentomino problem and check the known count of 2339 (not counting reflections). Then read the factoring argument for the Soma cube slowly; it is short and it is the idea of the week.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 2)
TAOCP §7.2.2.1 Dancing Links (part 3): what does it cover?	Part 3 covers the rest of pages 79 to 97 of 7.2.2.1. It adds color controls: secondary items may be shared by several options if they all give the same color (XCC, Algorithm C), which handles word puzzles, MacMahon tiles and general constraint satisfaction. Then it introduces multiplicity: primary items covered between a lower and upper number of times (MCC), implemented by Algorithm M with a new dance step that tweaks lists instead of removing items.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3): why does it matter?	These extensions make dancing links a general-purpose constraint solver rather than a sudoku trick.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3), a common trap: “Expecting colors to be free.” What's the catch?	A colored item is hidden, not covered, so it can still need purification work on every branch.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3), exercise 80 (rated 19): what is it asking?	Run Algorithm C by hand on the small colored example until it finds a solution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3), exercise 101 (rated 25, recommended): what is it asking?	Formulate the zebra puzzle as an exact cover problem with colors.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3), exercise 117 (rated 24, recommended): what is it asking?	Encode graph coloring as exact cover with secondary items per edge, then improve it using cliques.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3), exercise 169 (rated 22, recommended): what is it asking?	Find all t-element independent sets of a graph as a multiplicity problem.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3): what should you be comfortable with first?	<ul><li>7.2.2.1 part 2</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 (part 3): how should you work through it?	Add colors to your solver (Algorithm C): purify instead of cover when an option gives a secondary item a color. Model a word square or the zebra puzzle as XCC and solve it. Read Algorithm M for the ideas; implementing it is optional.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 3)
TAOCP §7.2.2.1 Dancing Links (part 4): what does it cover?	Part 4 covers pages 98 to 123 of 7.2.2.1, mostly starred material. It analyzes Algorithm X's running time (strict exact cover, the extreme problem with Bell-like counts, matching problems), explains why choosing the item to branch on matters (maintaining focus), uses bipairs for local equivalence and symmetry breaking, and preprocesses options to remove useless ones (Algorithm P). Then it finds minimum-cost solutions with cost cutoffs (Algorithms X$ and C$), builds a ZDD of all solutions at once (Algorithm Z), and closes with a summary and historical notes.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4): why does it matter?	This is where you see how far one data structure trick can go, and how modeling a problem well matters more than raw speed.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4): what is Algorithm P about?	Preprocesses options to remove useless ones.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4): what is Algorithm Z about?	Builds a ZDD of all solutions at once.<div class="cg-dim cg-ctx">Then it finds minimum-cost solutions with cost cutoffs (Algorithms X$ and C$), builds a ZDD of all solutions at once (Algorithm Z), and closes with a summary and historical notes.</div>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), a common trap: “Reading every starred section line by line.” What's the catch?	Get the main results, then move on.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), a common trap: “Using negative or fractional option costs with Algorithm X$.” What's the catch?	Costs must be nonnegative integers, so scale and round first.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 184 (rated M22, recommended): what is it asking?	Decide whether a strict exact cover problem with n items can have exactly t solutions, for any t.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 195 (rated M22, recommended): what is it asking?	Estimate how many updates Algorithm X makes when listing the perfect matchings of the text's example graph.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 218 (rated 20, recommended): what is it asking?	Explain one detail of the forcing rule in option preprocessing.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 229 (rated 25, recommended): what is it asking?	Find the lexicographically smallest and largest Langford pairings for n = 16 with the min-cost machinery.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 253 (rated 21, recommended): what is it asking?	Extend Algorithm Z to report the number of solutions as well as the ZDD.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 390 (rated 21, recommended): what is it asking?	Show two different exact cover encodings of futoshiki: one with pairwise ordering, one with colors.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 399 (rated 22, recommended): what is it asking?	Encode kenken for Algorithm C.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4), exercise 200 (rated HM25, recommended): what is it asking?	The stretch: decide 3D matching with polynomial algebra instead of backtracking (Björklund's method).	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4): how many exercises, and how are they rated?	150 exercises, rated 10 to HM46.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4): what should you be comfortable with first?	<ul><li>7.2.2.1 part 3</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.1 (part 4): how should you work through it?	Skim the starred analysis sections for the main results. Spend real time on minimum-cost solutions and on Algorithm Z, since both change what the solver can answer. If you have a working solver, add a cost bound to it and solve one of the text's min-cost queens examples.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.1 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2.1 Dancing Links (part 4)
TAOCP §7.2.2.2 Satisfiability (part 1): what does it cover?	Part 1 covers pages 185 to 210 of 7.2.2.2: what SAT is (clauses, literals, 3SAT), then a tour of example applications encoded as clauses. Examples include van der Waerden numbers, exact cover and Langford pairs, graph coloring (McGregor's map) with cardinality constraints (Sinz and Bailleux-Boufkhad encodings), factoring via multiplication circuits and Tseytin encoding, circuit fault testing, learning a Boolean function, sorting networks, Conway's Life, mutual exclusion protocols and bounded model checking, and digital tomography.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1): why does it matter?	Modern SAT solvers are astonishingly good, and knowing how to encode a problem as SAT lets you solve things that look impossible: package dependency resolution, hardware verification, scheduling.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), a common trap: “Naive encodings of 'at most one' or 'at most r' constraints blow up quadratically.” What's the catch?	Learn the Sinz and Bailleux-Boufkhad encodings.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), a common trap: “Forgetting symmetry.” What's the catch?	Many example problems have obvious symmetries that multiply the search.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 2 (rated 20): what is it asking?	A word puzzle about planet Pincus. Turn the statements into clauses and see what follows.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 8 (rated 20, recommended): what is it asking?	Define clauses for van der Waerden numbers with more than two colors.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 10 (rated 21, recommended): what is it asking?	Turn any clause set into an equivalent monotone one with a simple fixed shape.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 26 (rated 22): what is it asking?	Prove that Sinz's sequential-counter clauses really enforce 'at most r'.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 28 (rated 20, recommended): what is it asking?	Specialize the cardinality encoding to 'at least one', and see that it turns long clauses into 3SAT.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 65 (rated 28, recommended): what is it asking?	Encode Life's transition rule as clauses, with and without auxiliary variables.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 94 (rated 21, recommended): what is it asking?	Write the clauses that prove a property is invariant, given that no short counterexample exists.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1), exercise 109 (rated 20, recommended): what is it asking?	Find the lexicographically smallest solution by calling a SAT solver repeatedly.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1): how many exercises, and how are they rated?	118 exercises, rated 01 to M46.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1): what should you be comfortable with first?	<ul><li>7.1.1 Boolean Basics</li><li>7.2.2 Backtrack Programming</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 (part 1): how should you work through it?	Install a real solver (MiniSat or CaDiCaL) or Knuth's SAT13. Write DIMACS generators for two or three of the examples, such as waerden(3,3;n), a graph coloring and a small Life search, and solve them. Focus on the encoding tricks, especially the cardinality constraints.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 1)
TAOCP §7.2.2.2 Satisfiability (part 2): what does it cover?	Part 2 covers pages 211 to 244 of 7.2.2.2. It starts with backtracking solvers: Algorithm A (counting literal occurrences), Algorithm B (watched literals), Algorithm D (watched literals plus a cyclic order of variables), then Algorithm L, a lookahead solver with binary implication tables, heuristic scores, autarkies and double lookahead (Algorithms X and Y as subroutines). Next is a mostly mathematical study of random clauses and the satisfiability threshold (random 2SAT, random 3SAT near 4.27 clauses per variable). It ends with resolution proofs: the Davis-Putnam elimination, treelike and regular resolution, the pigeonhole lower bounds and Tseytin's graph parity clauses.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2): why does it matter?	Watched literals are one of the key engineering ideas that made SAT solvers fast. Implementing them teaches serious data structure design.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), a common trap: “Generalizing from random 3SAT.” What's the catch?	Structured industrial instances behave very differently.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2): what traps should you watch for?	<ul><li>Bugs in watched-literal updates when a clause becomes unit or conflicting.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 119 (rated 18): what is it asking?	Find which literal shrinks a small van der Waerden formula the most when set true.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 122 (rated 21, recommended): what is it asking?	Change Algorithm A to find all satisfying assignments.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 132 (rated 22, recommended): what is it asking?	Look for 2SAT inputs that make Algorithm D take exponential time, even though 2SAT is easy.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 135 (rated 16, recommended): what is it asking?	Use the binary implication tables to find the literals that imply a given one.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 163 (rated M25, recommended): what is it asking?	Prove a better-than-2^n bound for a simple recursive 3SAT procedure that uses autarkies.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 188 (rated HM25, recommended): what is it asking?	Work out the satisfiability threshold for random 1SAT, the easiest case.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 219 (rated M20, recommended): what is it asking?	Define resolution for arbitrary pairs of clauses so it is still sound.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2), exercise 237 (rated 28, recommended): what is it asking?	Show that extended resolution refutes the pigeonhole clauses in polynomial time.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2): how many exercises, and how are they rated?	130 exercises, rated 05 to HM49.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2): what should you be comfortable with first?	<ul><li>7.2.2.2 part 1</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 (part 2): how should you work through it?	Write a small DPLL solver with watched literals (Algorithm B or D) in C. Measure it on random 3SAT instances near the 4.27 ratio and on waerden problems. Read Algorithm L to see what lookahead buys, and the resolution part for why some problems need exponential time with any such solver.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 2)
TAOCP §7.2.2.2 Satisfiability (part 3): what does it cover?	Part 3 covers pages 244 to 274 of 7.2.2.2. It starts with conflict-driven clause learning: a simple learning solver (Algorithm I), then the full CDCL Algorithm C with a trail, watched literals, conflict analysis that learns a clause and backjumps, variable activity scores, certificates of unsatisfiability, purging learned clauses and restarts. Then come Monte Carlo methods: Papadimitriou's random walk for 2SAT and 3SAT (Algorithm P), WalkSAT (Algorithm W), and Las Vegas restarts with the 'reluctant doubling' sequence. It ends with the Lovász Local Lemma, including Shearer's exact bound, traces and the Moser-Tardos resampling Algorithm M.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3): why does it matter?	CDCL is why SAT went from theory to industrial tool. It is a beautiful example of an algorithm learning from its own failures.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
CDCL (conflict-driven clause learning): what is it?	Conflict-driven clause learning is the algorithm behind modern SAT solvers: when a partial assignment leads to a contradiction, the solver analyzes why, adds a new clause that rules the cause out, and jumps back.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
CDCL (conflict-driven clause learning): Who invented CDCL?	Clause learning came from the GRASP solver (Marques-Silva and Sakallah, 1996); Chaff (2001) added watched literals and activity-based decisions that made it fast.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
WalkSAT: what is it?	WalkSAT is a randomized local search algorithm for satisfiability that repeatedly picks an unsatisfied clause and flips one of its variables, mixing greedy and random choices.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
WalkSAT: What does the noise parameter do?	It is the probability of a random flip instead of a greedy one. Too low and the search gets stuck; too high and it wanders aimlessly.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::definition	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3): what is Algorithm I about?	A simple learning solver.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3): what is Algorithm P about?	Papadimitriou's random walk for 2SAT and 3SAT.<div class="cg-dim cg-ctx">Then come Monte Carlo methods: Papadimitriou's random walk for 2SAT and 3SAT (Algorithm P), WalkSAT (Algorithm W), and Las Vegas restarts with the 'reluctant doubling' sequence.</div>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::algorithm	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), a common trap: “Expecting local search (Algorithms P and W) to prove unsatisfiability.” What's the catch?	They can't; they only find solutions.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), a common trap: “Restarting on a fixed schedule.” What's the catch?	The reluctant doubling sequence is near optimal when you don't know the run-time distribution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3): what traps should you watch for?	<ul><li>Getting the implication graph wrong when analyzing conflicts.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::traps	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 254 (rated 16): what is it asking?	Work out the first clause a CDCL solver learns on a tiny binary example.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 253 (rated 18, recommended): what is it asking?	Continue the text's conflict example by one decision and find the next learned clauses.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 255 (rated 20, recommended): what is it asking?	Build a small ternary formula that makes CDCL learn a chosen clause.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 257 (rated 30, recommended): what is it asking?	Implement Sörensson's recursive test for redundant literals, which shortens learned clauses.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 271 (rated 25, recommended): what is it asking?	Drop a learned clause right away when the next one subsumes it.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 300 (rated 25, recommended): what is it asking?	Run 64 random walks of Algorithm P at once with bitwise operations.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 313 (rated 22, recommended): what is it asking?	Show that WalkSAT's free flips reduce unsatisfied clauses but can move away from a solution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3), exercise 351 (rated 25, recommended): what is it asking?	Apply the Local Lemma to SAT with variables biased individually.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 (part 3): how many exercises, and how are they rated?	108 exercises, rated 10 to HM46.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 3)
TAOCP §7.2.2.2 Satisfiability (part 4): what does it cover?	Part 4 covers pages 274 to 316 of 7.2.2.2. It starts with message passing (belief and survey propagation, Algorithm S), then preprocessing clauses before solving (variable elimination with erp rules, subsumption, blocked clauses, inprocessing). Next it covers encoding constraints into clauses (order, log and direct encodings, at-most-one, scheduling), clauses that are 'forcing' under unit propagation, symmetry breaking, and satisfiability-preserving maps (endomorphisms, the mutilated chessboard). It ends with one hundred benchmark problems run through all the solvers, parameter tuning, parallelism and history.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4): why does it matter?	Local search solves huge satisfiable instances fast, and preprocessing is a big part of real-world solver performance.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), a common trap: “Thinking the encoding is a detail.” What's the catch?	The same problem can be easy or hopeless depending on how it is written as clauses.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), a common trap: “Adding symmetry-breaking clauses that break more than the symmetry.” What's the catch?	Exercise 496 shows how that goes wrong.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), a common trap: “Forgetting erp rules after eliminating variables.” What's the catch?	Without them you cannot rebuild a full solution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::trap	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 401 (rated 16): what is it asking?	Simple arithmetic on a unary (order) encoding. A warm-up for the encoding exercises.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 357 (rated M20, recommended): what is it asking?	Express survey-propagation quantities for one variable in terms of its three-part field.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 367 (rated 20, recommended): what is it asking?	Justify the erp rule that lets you rebuild an eliminated variable's value.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 399 (rated 23, recommended): what is it asking?	Compare two ways of encoding a binary constraint between multivalued variables.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 408 (rated 25, recommended): what is it asking?	Encode open shop scheduling as SAT and find optimal makespans.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 431 (rated 20, recommended): what is it asking?	Build efficient clauses that force a comparison of two sums under unit propagation.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 496 (rated M20, recommended): what is it asking?	Find the flaw in a plausible but wrong symmetry-breaking argument for the pigeonhole clauses.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4), exercise 515 (rated 23, recommended): what is it asking?	Write clauses that let a puzzle designer impose shape rules on a hard sudoku.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4): how many exercises, and how are they rated?	170 exercises, rated M10 to M49.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4): what should you be comfortable with first?	<ul><li>7.2.2.2 part 3</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP §7.2.2.2 (part 4): how should you work through it?	Read preprocessing and encoding closely; they make the biggest difference in practice. For the 100 test cases, read the discussion and look at the tables without studying every row. As a project, re-encode one earlier problem two ways (order versus direct encoding) and time a real solver on both.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::7.2.2.2 cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
TAOCP Vol 4B review: what does it cover?	The final review week: Volume 4B and the whole path. Vol 4B is MPR plus 7.2.2 backtracking, 7.2.2.1 dancing links and 7.2.2.2 satisfiability.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::about	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review: why does it matter?	You made it. This is the week to look back at 125 weeks of work and decide what to go deeper on.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::why	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise MPR-61 (rated M28, recommended): what is it asking?	Prove the FKG inequality for random sets with a log-supermodular distribution.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise MPR-128 (rated HM26, recommended): what is it asking?	Analyze a randomized protocol where processors that can't communicate compete for a shared resource.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise 45 of §7.2.2 (rated 28, recommended): what is it asking?	Finish the low-level update step of the commafree search, including the poison list.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise 71 of §7.2.2 (rated M29, recommended): what is it asking?	Maximize the correct answers in a self-referential questionnaire, after first pinning down what that means.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise 156 of §7.2.2.1 (rated 30, recommended): what is it asking?	Solve the partridge puzzle both with a bitwise backtracker and with a general MCC solver, and compare.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise 254 of §7.2.2.1 (rated 28, recommended): what is it asking?	Design the subproblem signature that lets Algorithm Z share ZDD nodes, including colored items.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise 143 of §7.2.2.2 (rated 30, recommended): what is it asking?	Extend the lookahead solver from ternary clauses to clauses of any length.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review, exercise 282 of §7.2.2.2 (rated M33, recommended): what is it asking?	Build a linear-size certificate of unsatisfiability for the flower snark clauses.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercise	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review: how many exercises, and how are they rated?	1202 exercises, rated 01 to HM49.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::exercises	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review: what should you be comfortable with first?	<ul><li>Everything</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::prereqs	cracked.guide::TAOCP Vol 4B::Vol 4B review
TAOCP: Vol 4B review: how should you work through it?	Write a short retrospective: what stuck, what did not, and which volume you would reread. Check Knuth's TAOCP page for the newest pre-fascicles of Vol 4C if you want more.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::vol_4b_review cracked.guide::kind::approach	cracked.guide::TAOCP Vol 4B::Vol 4B review
