ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
SplayTree.h

The splay tree of Sleator and Tarjan, beyond the book. More...

Files

file  ADS/tree/SplayTree.h
 The splay tree of Sleator and Tarjan, beyond the book: a binary search tree with no balance information, where each access moves the node accessed to the root by rotations in pairs (zig-zig and zig-zag), which roughly halve the depth of the nodes on its path; any sequence of \( m \) operations on \( n \) keys takes \( O( ( m + n ) \log n ) \) time, i.e., \( O( \log n ) \) amortized each, and the keys accessed often stay near the root (the static optimality and the working set theorems).

Classes

class  ADS::SplayTree< K, V >
 a DICTIONARY on a splay tree More...

Detailed description

The splay tree of Sleator and Tarjan, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of trees.