On the Markov Chain for the Move-to-Root Rule for Binary Search Trees

The move-to-root (MTR) heuristic is a self-organizing rule that attempts to keep a binary search tree in near-optimal form. It is a tree analogue of the move-to-front (MTF) scheme for self-organizing lists. Both heuristics can be modeled as Markov chains. We show that the MTR chain can be derived by lumping the MTF chain and give exact formulas for the transition probabilities and stationary distribution for MTR. We also derive the eigenvalues and their multiplicities for MTR. 1. Introduction and summary. There has been much interest in recent years in self-organizing search methods. Hester and Hirschberg (1985) survey the field. Hendricks (1989) is a good introduction with numerous applications and open problems. Although most research in this area has been devoted to sequential search techniques for linear lists, a growing body of work addresses heuristics for other data structures. In particular, the binary search tree is a very common and important structure that exploits the ordering of records to achieve faster search time. Records are stored at the nodes of a tree in such a way that a traversal of the tree produces the records in their linear order. A binary tree is a finite tree with at most two "children" for each node and in which each child is distinguished as either a left or right child. By defining an empty binary tree as a binary tree with no nodes, we can give a useful recursive definition: a binary tree either is empty or is a node with left and right subtrees, each of which is a binary tree.

[1]  Hosam M. Mahmoud,et al.  Evolution of random search trees , 1991, Wiley-Interscience series in discrete mathematics and optimization.

[2]  Robert E. Tarjan,et al.  Self-adjusting binary search trees , 1985, JACM.

[3]  James Allen Fill,et al.  An exact formula for the move-to-front rule for self-organizing lists , 1996 .

[4]  J. Ian Munro,et al.  Self-organizing binary search trees , 1976, 17th Annual Symposium on Foundations of Computer Science (sfcs 1976).

[5]  James R. Bitner,et al.  Heuristics That Dynamically Organize Data Structures , 1979, SIAM J. Comput..

[6]  John G. Kemeny,et al.  Finite Markov chains , 1960 .

[7]  Anthony E. Trojanowski Ranking and Listing Algorithms for k-ary Trees , 1978, SIAM J. Comput..

[8]  W. J. Hendricks The stationary distribution of an interesting Markov chain , 1972, Journal of Applied Probability.

[9]  James Allen Fill,et al.  Rates of Convergence for the Move-to-Root Markov Chain for Binary Search Trees , 1995 .

[10]  N. Sloane A Handbook Of Integer Sequences , 1973 .

[11]  Daniel S. Hirschberg,et al.  Self-organizing linear search , 1985, CSUR.

[12]  N. Sloane,et al.  Some Doubly Exponential Sequences , 1973, The Fibonacci Quarterly.

[13]  R. Phatarfod On the matrix occurring in a linear search problem , 1991, Journal of Applied Probability.

[14]  Terrence L. Fine,et al.  Extrapolation When Very Little is Known about the Source , 1970, Inf. Control..

[15]  Frank Ruskey,et al.  Generating Binary Trees Lexicographically , 1977, SIAM J. Comput..