Week 66 of 145 · TAOCP Vol 2: Seminumerical Algorithms

TAOCP 3.2.2 Other Methods

2 tasks, 5 steps. Open a task's steps to see exactly what to do; each guide has the detail.

Sign up or sign in to tick these off and give this week a due date.

By the end of this week you can

  • Explain how additive lagged-Fibonacci generators work and why they are fast.
  • Implement a combiner that shuffles one generator's output using another.
  • Compare quadratic, additive and combined generators by their main trade-offs.

Week 66 · Self-check

Three quick questions

Ungraded, and it never holds anything up. Pick an answer to see why.

  1. Toy additive generator X(n) = (X(n−1) + X(n−2)) mod 10 starts 3, 7. What are the next three values?
  2. Why do practical additive generators use far-apart lags such as 24 and 55 instead of the plain Fibonacci recurrence?
  3. In MacLaren-Marsaglia shuffling, one generator fills a table V. What is the second generator used for?

Nothing is saved while signed out.

Watch along

Free talks and lectures that go with this week, on the speakers' own channels. Optional.

Discussion

0 posts

Stuck on week 66, or finished early? Say what you tried and what happened. Hints over answers: full solutions go in a spoiler.

No posts yet. Ask a question or share a tip.

Sign in to postAnyone can read. Posting needs an account with a confirmed email.

Spot a mistake? Report it