Week 73 of 145 ยท TAOCP Vol 2: Seminumerical Algorithms

TAOCP 3.5 and 3.6

3 tasks, 8 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 what k-distributed and infinitely distributed sequences mean.
  • Recognize why each weaker definition of randomness falls short.
  • Use Knuth's summary advice to judge your language's default generator.

Week 73 ยท Self-check

Three quick questions

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

  1. Consider the endless binary sequence 0, 1, 0, 1, 0, 1, ... Which is true?
  2. To turn an LCG value X in [0, m) into an integer from 0 to k โˆ’ 1, what does Knuth's summary recommend?
  3. In the algorithmic view of randomness that 3.5 touches on, when does a long finite string count as random?

Nothing is saved while signed out.

Discussion

0 posts

Stuck on week 73, 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