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