Week 61 of 145 ยท TAOCP Vol 1: Fundamental Algorithms

TAOCP 2.4 Multilinked Structures

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 one node can belong to several linked lists at once.
  • Trace how level-numbered declarations become a table with parent and sibling links.
  • Use MOVE CORRESPONDING rules to decide which fields get copied.

Week 61 ยท Self-check

Three quick questions

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

  1. In the declarations 1 A, 2 B, 3 C, 2 D, what is D's parent?
  2. Record A has fields X, Y, Z and record B has Y, Z, W, all elementary. What does MOVE CORRESPONDING A TO B copy?
  3. Why does each Data Table entry in Knuth's COBOL example carry several links?

Nothing is saved while signed out.

Discussion

0 posts

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