Week 78 of 145 · TAOCP Vol 2: Seminumerical Algorithms

TAOCP 4.3.1 The Classical Algorithms

1 task, 3 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

  • Implement multiple-precision addition, subtraction and multiplication on digit arrays.
  • Explain why normalizing the divisor makes the quotient estimate nearly right.
  • Trace long division with Algorithm D on a small example.

Week 78 · Self-check

Three quick questions

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

  1. After normalizing so the divisor's leading digit is at least ⌊b/2⌋, how far off can the trial quotient digit q̂ be?
  2. On a binary machine, how is the divisor usually normalized before long division?
  3. You multiply a 3-digit number by a 4-digit number in base b. At most how many digits can the product have?

Nothing is saved while signed out.

Discussion

0 posts

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