#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 3::5.1.2 Permutations of a Multiset
#columns:Front	Back	Tags
TAOCP §5.1.2 Permutations of a Multiset: what does it cover?	Permutations where elements can repeat, and an algebraic product on them (the intercalation product) that lets Knuth prove facts about factoring permutations into cycles in a unified way.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::about
TAOCP §5.1.2: why does it matter?	Sorting with duplicate keys is the normal case in practice. This section is fairly abstract, though; the practical payoff is mostly the mental model.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::why
TAOCP §5.1.2, a common trap: “Trying to rush through the abstract algebra.” What's the catch?	It only clicks with examples.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::trap
TAOCP §5.1.2, exercise 2 (rated 10): what is it asking?	Compute an intercalation product with the factors swapped. Shows directly that the product does not commute.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2, exercise 6 (rated M15): what is it asking?	Count two-letter strings by how often a b sits right before an a. A warm-up in counting multiset permutations.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2, exercise 8 (rated 20, recommended): what is it asking?	List every way to split the running example into two factors. Hand practice with the product's definition.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2, exercise 15 (rated M25, recommended): what is it asking?	Decide when a multiset permutation is a single cycle by looking at a small directed graph.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2, exercise 17 (rated M24): what is it asking?	Mean and spread of the inversion count for a random multiset permutation. Uses the generating function from 16, so read that statement first.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2, exercise 11 (rated M26, recommended): what is it asking?	Show that counting prime factorizations is the same as counting topological sorts. Links this section to Vol 1's 2.2.3.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2, exercise 10 (rated M30, recommended): what is it asking?	True or false: an ordering on the primes can make factorization unique. The stretch; the answer is subtle.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercise
TAOCP §5.1.2: how many exercises, and how are they rated?	24 exercises, rated M05 to M35.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::exercises
TAOCP §5.1.2: 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.2 cracked.guide::kind::prereqs
TAOCP §5.1.2: how should you work through it?	Read the definitions with lots of small examples. The intercalation product is unusual; work several products by hand before reading the theorems. Accept a slower pace here.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.1.2 cracked.guide::kind::approach
