splaytre
A splay tree is a self-adjusting binary search tree with the property that whenever a node is accessed, it is brought to the root of the tree through a series of rotations. This operation is called splaying. The goal of splaying is to improve the performance of subsequent accesses to the same or nearby nodes by placing them closer to the root.
Splay trees maintain the binary search tree property: for any given node, all keys in its left
While splay trees do not offer guaranteed logarithmic time complexity for every operation in the worst case,
Splaying a node to the root effectively makes it the most accessible element. This property can be