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