Skip to content

Splay Tree Ladder

This ladder is for the moment when you explicitly want the self-adjusting BST route and the direct bridge into link-cut tree.

Who This Is For

Use this ladder if:

  • you want one hand-coded ordered set with rotate / splay / parent
  • PBDS feels too black-box for the machinery you want to learn
  • link-cut tree looks close, but auxiliary splay trees still feel mysterious

Warm-Up

  • explain why amortized O(log n) is the right guarantee here
  • say the difference between:
  • PBDS order statistics
  • treap split/merge
  • splay self-adjustment
  • link-cut auxiliary splay trees

Core

  • read Splay Tree
  • focus on rotate, splay, subtree sizes, and duplicates via cnt
  • trust the first route as one ordered multiset, not a full sequence or dynamic-tree lane

Flagship Rep

This is the exact first benchmark where the structure itself is the problem.

Compare Practice

Exit Criteria

You are ready to leave this lane when:

  • you can explain zig, zig-zig, and zig-zag
  • you can maintain subtree size and duplicates safely
  • you can say clearly why PBDS or treap is still often simpler
  • you can reopen Link-Cut Tree without treating splay as magic

Main Routes Back