#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 2::3.3.3 Theoretical Tests
#columns:Front	Back	Tags
TAOCP §3.3.3 Theoretical Tests: what does it cover?	Instead of running a generator, analyze it mathematically: for example, compute the serial correlation of an LCG exactly from its parameters. This brings in some heavy number theory, including Dedekind sums.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::about
TAOCP §3.3.3: why does it matter?	Honestly, this is one of the more specialized sections for a working programmer. The takeaway is that you can sometimes prove a generator is bad without running it.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::why
TAOCP §3.3.3, a common trap: “Burning out here.” What's the catch?	It is fine to skim.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::trap
TAOCP §3.3.3, exercise 1 (rated M10): what is it asking?	Write x mod y with the sawtooth function. Warms up the notation.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 2 (rated M20): what is it asking?	Prove the replicative law for the sawtooth function.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 4 (rated M19, recommended): what is it asking?	How large the key quantity of the serial-correlation theorem can be for a given potency.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 14 (rated M20, recommended): what is it asking?	Explain an observed high serial correlation from the generator's parameters. Theory predicting a real failure.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 17 (rated M22): what is it asking?	Evaluate generalized Dedekind sums with integer-only arithmetic. An algorithm worth coding.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 22 (rated M22, recommended): what is it asking?	Real-number version of the up-down probability theorem. Shows where the answer comes from without number theory.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 19 (rated M23, recommended): what is it asking?	Analyze the serial test over the full period with generalized Dedekind sums.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3, exercise 24 (rated M29): what is it asking?	Probability of a descending run of length t in the real-number model. The stretch.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercise
TAOCP §3.3.3: how many exercises, and how are they rated?	28 exercises, rated M10 to M40.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::exercises
TAOCP §3.3.3: what should you be comfortable with first?	<ul><li>3.3.2 Empirical Tests</li><li>1.2.4 Number theory</li></ul>	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::prereqs
TAOCP §3.3.3: how should you work through it?	Read for the main results and the intuition. It is fine to skim the Dedekind sum derivations. Spend the time you save on finishing 3.3.2 implementations.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.3.3 cracked.guide::kind::approach
