#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 3::5.1.4 Tableaux and Involutions
#columns:Front	Back	Tags
TAOCP §5.1.4 Tableaux and Involutions: what does it cover?	Young tableaux, a correspondence between permutations and pairs of tableaux (Robinson-Schensted), the hook length formula for counting tableaux, and involutions (permutations that are their own inverse).	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::about
TAOCP §5.1.4: why does it matter?	The correspondence gives a slick way to find the longest increasing subsequence, a common interview and diff-algorithm topic. It is also one of the most beautiful bijections in combinatorics.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::why
TAOCP §5.1.4, a common trap: “Bumping into the wrong row during insertion.” What's the catch?	Trace carefully with pencil.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::trap
TAOCP §5.1.4, exercise 1 (rated 16): what is it asking?	Run the tableau correspondence forward and backward on a small example. Essential before anything else here.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 8 (rated M18): what is it asking?	The classic result that a long enough sequence must contain a long monotone subsequence. Follows quickly from 7.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 7 (rated M20): what is it asking?	Show that the tableau's shape gives the longest increasing and decreasing subsequences. The practical heart of the section.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 3 (rated M24, recommended): what is it asking?	An alternative table-based way to carry out the correspondence. Easier to implement than the bumping description.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 20 (rated M24, recommended): what is it asking?	Count increasing labelings of a tree with a hook-length style product. A gentle cousin of the hook formula.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 42 (rated 30, recommended): what is it asking?	Sort genes with reversal flips and show one example needs five. An applied puzzle from genome comparison.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 5 (rated M22, recommended): what is it asking?	Show that reversing a permutation transposes its tableau. Uses the result of exercise 4.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4, exercise 4 (rated M30, recommended): what is it asking?	Characterize which adjacent swaps leave the tableau unchanged. The stretch, and it unlocks exercise 5.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercise
TAOCP §5.1.4: how many exercises, and how are they rated?	44 exercises, rated M08 to HM43.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::exercises
TAOCP §5.1.4: what should you be comfortable with first?	<ul><li>5.1.1 Inversions</li></ul>	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::prereqs
TAOCP §5.1.4: how should you work through it?	Implement the insertion procedure that builds the tableau from a permutation, and check that the length of the first row equals the longest increasing subsequence length. Verify the hook length formula on small shapes.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.4 cracked.guide::kind::approach
