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