Skip to content

Skiplist Hot Sheet

Use this page when the real lesson is one probabilistically balanced ordered dictionary with forward-pointer towers.

Do Not Use When

Choose By Signal

  • probabilistic ordered dictionary with expected balancing -> Skiplist
  • one dynamic ordered set with rank / k-th -> PBDS
  • self-hosted split/merge route -> Treap
  • high-fanout external-memory-flavored breadth -> B-Tree

Core Invariants

  • every level is sorted
  • higher levels are subsequences of lower levels
  • each node appears on all levels below its height
  • update[] stores the last predecessor on every level during one search path

Main Traps

  • confusing expected complexity with deterministic guarantees
  • corrupting update[] and then splicing the tower at the wrong position
  • using skip lists in contest code just because they look simpler than balanced trees
  • forgetting that this lane is breadth-first, not the repo's first retrieval choice

Exact Starter Route

Reopen Paths