Week 113 of 145 ยท TAOCP Vol 3: Sorting and Searching

TAOCP 6.3 Digital Searching

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 a trie and compare its memory and speed with a hash set.
  • Trace insertion into a digital search tree bit by bit.
  • Explain how Patricia skips one-way branches using bit positions.

Week 113 ยท Self-check

Three quick questions

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

  1. A trie stores the words to, tea, ten and inn, one node per distinct prefix. How many nodes does it have, counting the root?
  2. A digital search tree branches on bits from the left. You insert 1011, 0010, 1110, 1001. Where does 1001 go?
  3. What does Patricia store in each node to avoid chains of one-way branches?

Nothing is saved while signed out.

Discussion

0 posts

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