#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 2::3.2.2 Other Methods
#columns:Front	Back	Tags
TAOCP §3.2.2 Other Methods: what does it cover?	Generators beyond the basic LCG: quadratic and higher-order congruences, additive (lagged Fibonacci) generators, combining generators, and shuffling the output of one generator using another to break up patterns.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::about
TAOCP §3.2.2: why does it matter?	Modern generators like xorshift, PCG and Mersenne Twister descend from these ideas. Knowing the families helps you judge a library's choice.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::why
TAOCP §3.2.2, a common trap: “Thinking combining two weak generators always gives a strong one.” What's the catch?	Sometimes it does, sometimes it does not.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::trap
TAOCP §3.2.2, exercise 1 (rated 12, recommended): what is it asking?	Why generating fractions directly with a floating-point recurrence is a bad idea.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 2 (rated M20, recommended): what is it asking?	Show that the plain Fibonacci generator never produces one of the six relative orderings of three consecutive values. A crisp proof of non-randomness.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 3 (rated 23): what is it asking?	Run the shuffling algorithms on tiny generators by hand to see what they actually do.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 5 (rated 20, recommended): what is it asking?	Use one generator to shuffle itself and compare with Algorithm B.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 13 (rated M20): what is it asking?	Adding two generators with coprime periods multiplies the periods. Quick and useful.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 23 (rated 20, recommended): what is it asking?	Weigh the subtractive lagged Fibonacci variant against the additive one.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 33 (rated M23, recommended): what is it asking?	Jump ahead in a lagged Fibonacci sequence with a polynomial trick. The idea behind seeding parallel streams.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2, exercise 12 (rated M28, recommended): what is it asking?	Find the longest period possible for a second-order recurrence mod a power of two. The stretch.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercise
TAOCP §3.2.2: how many exercises, and how are they rated?	37 exercises, rated 00 to M40.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::exercises
TAOCP §3.2.2: what should you be comfortable with first?	<ul><li>3.2.1 The Linear Congruential Method</li></ul>	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::prereqs
TAOCP §3.2.2: how should you work through it?	Implement an additive lagged-Fibonacci generator and a shuffling combiner. Do not try to absorb every proof; aim to know what each family is and its main trade-off.	cracked.guide cracked.guide::phase::taocp-2 cracked.guide::section::3.2.2 cracked.guide::kind::approach
