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

TAOCP 2.2.6 Arrays and Orthogonal Lists

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

  • Compute row-major addresses for rectangular and triangular arrays.
  • Explain orthogonal lists that link sparse matrix entries by row and column.
  • Recognize when sparse list storage beats a dense array.

Week 54 ยท Self-check

Three quick questions

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

  1. A[J, K] has rows 0 to 3 and columns 0 to 4, one word each, stored row by row from 1000. Where is A[2, 3]?
  2. A lower triangular array stores row j as A[j, 0] to A[j, j], rows in order from offset 0. What is the offset of A[3, 1]?
  3. In Knuth's orthogonal list form of a sparse matrix, each nonzero entry's node is on:

Nothing is saved while signed out.

Discussion

0 posts

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