#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 1::1.2.3 Sums and Products
#columns:Front	Back	Tags
TAOCP §1.2.3 Sums and Products: what does it cover?	Sigma and Pi notation, and the rules for manipulating sums: distributive, change of variable, interchanging order of summation, and handling sums over relations instead of just ranges. Knuth also introduces the bracket notation for conditions (later called Iverson brackets).	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::about
TAOCP §1.2.3: why does it matter?	Analyzing loops means analyzing sums. Being able to swap the order of a double sum or reindex cleanly is the core skill behind every running-time derivation you will meet in Vol 3.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::why
TAOCP §1.2.3, a common trap: “Swapping a double sum with dependent limits incorrectly.” What's the catch?	Draw the region.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::trap
TAOCP §1.2.3: what traps should you watch for?	<ul><li>Changing a variable but forgetting to change the bounds.</li><li>If you find this section rough, Concrete Mathematics (Graham, Knuth, Patashnik) chapter 2 covers the same ground more gently.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::traps
TAOCP §1.2.3, exercise 3 (rated 13, recommended): what is it asking?	Explain why two sums that look like the same substitution come out different. Change of variable only works when the map is one-to-one.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 9 (rated 05, recommended): what is it asking?	Check an edge case of the geometric-series derivation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 17 (rated M00, recommended): what is it asking?	What a sum of 1s over a set counts. Thirty seconds, but it is the bracket idea in its simplest form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 25 (rated 15, recommended): what is it asking?	Find the bug in a slick-looking double-sum derivation. Reused index names are the classic sum bug.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 22 (rated 20, recommended): what is it asking?	Restate the sum manipulation rules for products.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 15 (rated M22, recommended): what is it asking?	Get a closed form for a sum of k times a power by manipulating the sum, not by guessing.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 20 (rated 25, recommended): what is it asking?	Turn a cute numeric pattern into a general formula and prove it with sum manipulation.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3, exercise 29 (rated M30, recommended): what is it asking?	Express a triple sum over ordered indices through power sums. The stretch, and a preview of symmetric functions in 1.2.9.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercise
TAOCP §1.2.3: how many exercises, and how are they rated?	47 exercises, rated M00 to M30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::exercises
TAOCP §1.2.3: what should you be comfortable with first?	<ul><li>1.2.1 Mathematical Induction</li><li>Arithmetic and geometric series</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::prereqs
TAOCP §1.2.3: how should you work through it?	Do not read this like prose. For every manipulation rule, write a tiny concrete example with numbers (say n = 4) and check both sides agree. Pay special attention to interchanging the order of summation with dependent bounds; draw the grid of (i, j) pairs to see it. The exercises come in two sets; the second is about determinants and is optional.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.3 cracked.guide::kind::approach
