Wikiwand AI

Interleave lower bound

From Wikipedia, the free encyclopedia

In the theory of optimal binary search trees, the interleave lower bound is a lower bound on the number of operations required by a Binary Search Tree (BST) to execute a given sequence of accesses.

Several variants of this lower bound have been proven.[1][2][3] This article is based on a variation of the first Wilber's bound.[4] This lower bound is used in the design and analysis of Tango tree.[4] Furthermore, this lower bound can be rephrased and proven geometrically, Geometry of binary search trees.[5]

The bound is based on a fixed perfect BST , called the lower bound tree, over the keys . For example, for , can be represented by the following parenthesis structure:

[([1] 2 [3]) 4 ([5] 6 [7])]

For each node in , define:

  • to be the set of nodes in the left sub-tree of , including .
  • to be the set of nodes in the right sub-tree of .

Consider the following access sequence: . For a fixed node , and for each access , define the label of with respect to as:

  • "L" - if is in .
  • "R" - if is in ;
  • Null - otherwise.

The label of is the concatenation of the labels from all the accesses. For example, if the sequence of accesses is: then the label of the root is: "RRL", the label of 6 is: "RL", and the label of 2 is: "R".

For every node , define the amount of interleaving through y as the number of alternations between L and R in the label of . In the above example, the interleaving through and is and the interleaving through all other nodes is .

The interleave bound, , is the sum of the interleaving through all the nodes of the tree. The interleave bound of the above sequence is .

The Lower Bound Statement and its Proof

See also

References

Related Articles

Timelines

Top Qs

Fact Checks