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

TAOCP 2.2.5 Doubly Linked 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

  • Implement insertion and deletion anywhere in a doubly linked list.
  • Explain how a list head removes special cases at the ends.
  • Recognize how the elevator simulation keeps waiting actions in time order.

Week 53 ยท Self-check

Three quick questions

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

  1. To insert P to the right of X, which assignment, done first, would lose X's old right neighbor?
  2. With a list head, what is special about deleting the first real node?
  3. How is the elevator simulation's list of scheduled actions kept?

Nothing is saved while signed out.

Discussion

0 posts

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