Dynamic forest · preferred-path decomposition · access(v) re-splays the root-to-v path
| Operation | Time | Note |
|---|---|---|
| access(v) | O(log n) | core; everything routes through it |
| link(u,v) | O(log n) | makeRoot + set path-parent |
| cut(u,v) | O(log n) | access + splice |
| findRoot(v) | O(log n) | access + walk-left |
| makeRoot(v) | O(log n) | access + lazy reverse |
| path aggregate | O(log n) | read splay-root field |
| space | O(n) | O(1) fields per node |