#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 4A::7 Combinatorial Searching intro (part 1)
#columns:Front	Back	Tags
TAOCP §7 Combinatorial Searching intro (part 1): what does it cover?	Part 1 covers the first 17 pages of chapter 7: Langford pairs, orthogonal latin squares and the Tompkins approach of splitting a search into phases, a warning about puzzles versus real problems, the Stanford GraphBase list of 5757 five-letter English words, and then the start of the graph primer: graphs built from words, paths and cycles, and coloring (with the theorem that a graph is bipartite exactly when it has no odd cycle).	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::about
TAOCP §7 (part 1): why does it matter?	Combinatorial search is behind schedulers, compilers' register allocators, puzzle solvers and test generators. This intro sets the mindset for the last 26 weeks.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::why
TAOCP §7 (part 1), a common trap: “Being intimidated by the size of Vol 4A.” What's the catch?	You are reading selected sections, not all 900 pages.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::trap
TAOCP §7 (part 1), a common trap: “Treating exercises rated 48 or 50 as homework.” What's the catch?	Those mark research problems (15 asks for three mutually orthogonal 10 x 10 latin squares, still open); read them and move on.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::trap
TAOCP §7 (part 1), exercise 2 (rated 20): what is it asking?	Find exactly which n admit a Langford arrangement. A parity argument does all the work; worth writing out before you code a search.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 5 (rated HM22, recommended): what is it asking?	Use a probability estimate to guess how fast the number of Langford pairings grows. A classic back-of-envelope sanity check for search sizes.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 12 (rated M21, recommended): what is it asking?	Show the addition table mod n has an orthogonal mate exactly when n is odd. Short, and it explains why Euler got stuck on even orders.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 22 (rated M22, recommended): what is it asking?	Connect orthogonal arrays with geometric nets, and decide whether the link runs both ways.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 26 (rated 25, recommended): what is it asking?	Write a sensible English sentence using only five-letter words. Fun, and it gets you poking around the SGB word list.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 30 (rated 20, recommended): what is it asking?	Search the word list for words whose letters are in alphabetical order. A first warm-up for filtering the data set with code.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 54 (rated 21, recommended): what is it asking?	Build graphs and a digraph from US postal codes and find their components and strong components. Ties the new vocabulary to Section 2.3.4.2.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1), exercise 6 (rated M28, recommended): what is it asking?	Count Langford pairings with an algebraic sum you can evaluate in exponential but small time, then speed it up with symmetries. The stretch, and a taste of counting without generating.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercise
TAOCP §7 (part 1): how many exercises, and how are they rated?	145 exercises, rated M00 to 50.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::exercises
TAOCP §7 (part 1): what should you be comfortable with first?	<ul><li>Vol 1 to 3</li><li>Basic graph vocabulary</li></ul>	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::prereqs
TAOCP §7 (part 1): how should you work through it?	Read slowly and play with the puzzles. Write a brute-force Langford pair finder for small n before reading Knuth's smarter ideas. Vol 4 uses MMIX (Knuth's 64-bit RISC machine) instead of MIX where it shows machine code, and much of it is written in plain algorithm steps. You will want MMIX basics (from Vol 1 Fascicle 1 or the MMIX page) for 7.1.3 especially.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7 cracked.guide::kind::approach
