06 / 16

Explain the difference between a Linked List and an Unrolled Linked List.

Linked List vs Unrolled Linked List

javascript
  1. 1

    Unrolled lists reduce the number of node objects and pointers.

  2. 2

    Multiple values per node improve spatial locality.

  3. 3

    Insertion may require shifting elements within a block.

  4. 4

    Nodes can split or rebalance when blocks become too full or sparse.

  5. 5

    They are useful when memory locality matters but a fully contiguous array is not ideal.

Difficulty: 4/10

Follow-up Questions

  • How does block size affect performance?
  • Where are unrolled linked lists useful?