The splay operation [00U1]

Let’s see how \mathsf {Splay} actually works. We find the element x in the tree and then keep moving it up the tree until it reaches the root, according to the following three rules. In general we will use p to denote the parent of x and g to denote its grandparent. There are three general rules we apply depending on where x is in the tree.

Context

★ Splay trees [00TY]

Backlinks

Splay runtime proof [00U6]