Greedy BST on Permutation Initial Tree
Abstract
The Greedy binary search tree (BST) algorithm, like the Splay tree, is a prominent candidate for the \emph{dynamic optimality conjecture}. While Greedy satisfies many desirable properties of BST, its cost and analysis to execute a search sequence is known to depend heavily on the choice of the \emph{initial tree} configuration. Most prior analyses assume a flat (empty) initial tree, under which several tight bounds are established. In this work, we introduce the notion of a \emph{permutation initial tree}, a specific class of non-flat initial tree and prove that for any permutation search sequence , there exists a permutation initial tree such that the cost of Greedy on is same as its cost on the flat initial tree. As an application of our result, we show that the \emph{preorder traversal conjecture} holds for Greedy when the initial tree is a permutation initial tree. While it was previously known that Greedy achieves an cost on preorder sequences for flat initial tree (Chalermsook et al., FOCS 2015), our result demonstrates that the same linear bound holds when the initial tree is a permutation initial tree. This result also matches the bound for Splay tree on preorder sequence when the initial tree aligns with the traversal order (Chaudhuri and H\"oft, SIGACT 1993).
Cite
@article{arxiv.2407.03666,
title = {Greedy BST on Permutation Initial Tree},
author = {Akash Pareek},
journal= {arXiv preprint arXiv:2407.03666},
year = {2025}
}
Comments
10 pages, 5 figures