#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 4B::7.2.2.2 Satisfiability (part 4)
#columns:Front	Back	Tags
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
