Part IV · Adaptive algorithms · NotesBibliographic notes
These notes say where each algorithm of this part comes from, which of its known properties the book formalizes, and which it does not.
Move-to-root
Move-to-root (Chapter 23) is the rule of Allen and Munro (1978). They showed that under independent random requests its expected cost is within a constant factor of the optimal static tree for the request probabilities. Chalermsook et al. (2016) showed that it is optimal in the key-independent setting of Iacono (2005).
Splay trees
Splay trees (Chapter 24) are due to Sleator and Tarjan (1985), after a preliminary version at STOC 1983. The access lemma and its consequences in Section 24.2, and the bounds for insertions, deletions, splits and joins in Section 24.3, are theirs. The sequential access theorem is due to Tarjan (1985). Elmasry (2004) gave a simpler proof with a better constant, and Kakimura and Terai (2026) show that the amortized cost per access is at most and that some initial trees need almost ; the book’s proof uses their potential function. The dynamic finger theorem is due to Cole et al. (2000) and Cole (2000).
Several conjectures about splaying remain open. The traversal conjecture of Sleator and Tarjan (1985) says that splaying the keys of any tree in the preorder of , starting from any initial tree on the same keys, costs . It is proved when the initial tree is the one whose preorder is accessed (Chaudhuri and Höft 1993), and for preorders and postorders inserted by splaying into an empty tree (Levy and Tarjan 2019c). The deque conjecture, stated by Tarjan (1985), says that deque operations cost . Tarjan proved it for output-restricted deques; Sundar (1992) proved the bound , and Pettie (2008) the bound . Lucas (1992) related splaying to the union-find problem and proved a special case of the split conjecture, on the cost of splitting a splay tree into single nodes. Pettie (2010) applies forbidden 0-1 matrices to these questions.
Several works isolate why splaying works. Subramanian (1996) and Chalermsook et al. (2015c) give general conditions under which a restructuring rule satisfies the access lemma. Georgakopoulos (2004) shows that splay trees are competitive with dynamic balanced trees. Levy and Tarjan (2019b) and Levy and Tarjan (2019a) show that splaying is dynamically optimal if and only if it is approximately monotone, that is, if removing requests from a sequence never increases its cost by more than a constant factor. Albers and Karpinski (2002) study randomized splaying.
Chmel et al. (2026) proved that splay trees are -competitive. This is the first competitive ratio for splaying; it is a 2026 preprint and is not formalized.
The splay analysis has been formalized before, in Isabelle, by Nipkow and Brinkop (2019), and the amortized analysis of splay trees and related structures has been automated (Leutgeb et al. 2021).
GreedyASS
The offline greedy algorithm, Greedy Future, was proposed by Lucas (1988) and again by Munro (2000), who both conjectured that it is dynamically optimal. Demaine et al. (2009) found its online form in the geometric view and the simulation that turns it into an online BST (Chapter 25). Fox (2011) proved an access lemma for it, which gives the working-set bound and static optimality; Goyal and Gupta (2011) showed that it is -competitive. The finger bounds of Section 25.3 to Section 25.6 are those of Iacono and Langerman (2016).
Many further properties are known and not formalized. GreedyASS serves deque sequences in nearly linear time (Chalermsook et al. 2015a), pattern-avoiding sequences in nearly linear time (Chalermsook et al. 2015b; Chalermsook et al. 2023b; Chalermsook et al. 2024b), and decomposable sequences within the bound of Goyal and Gupta (2019). Chalermsook et al. (2023b) also settle the postorder traversal conjecture for GreedyASS, and Pareek (2024) studies GreedyASS from other initial trees. On the side of lower bounds, Greedy Future is not better than 2-competitive, and its additive gap to the optimum can be (Sadeh and Kaplan 2023).
Guo et al. (2026) proved that GreedyASS is -competitive, the first competitive ratio for it. Like the splay result above, it is a 2026 preprint.
The geometric view also connects BSTs to heaps: Kozma and Saranurak (2020) map heap algorithms to BST algorithms on a dual sequence, and obtain the smooth heap as the counterpart of Greedy.
Tango trees and other -competitive trees
Tango trees (Chapter 26) are due to Demaine et al. (2007), first presented at FOCS 2004. The variant with linear startup in Section 26.3 is the one the combination needs.
Several later trees reach the same ratio with other properties. Multi-splay trees (Wang et al. 2006) also keep amortized cost per access. Chain-splay trees (Georgakopoulos 2008) use splaying on the paths of a Tango-like decomposition. Zipper trees (Bose et al. 2010) and Poketrees (Kujala and Elomaa 2006) add worst-case cost per access. Al-Adhami and Chheda (2024) implement Tango trees and compare them experimentally with splay and multi-splay trees. Jiang et al. (2024) show that, among the algorithms whose cost is charged to Wilber’s interleave bound, Tango trees are optimal.
The same ideas apply to other search structures: skip lists and B-trees (Bose et al. 2008; Demaine et al. 2021), and search trees on trees, where the BST is replaced by a decomposition of a tree; there, Bose et al. (2023) give an -competitive algorithm in the spirit of Tango, and Berendsohn and Kozma (2022) generalize splaying.
Static structures
The dynamic program for the optimal lazy-finger tree (Chapter 27) is Theorem 8 of Bose et al. (2016), and the multiple-tree structure (Chapter 28) is their Theorem 9. The classical dynamic program for the optimal root-finger tree is that of Knuth (1971).
Combining and deamortizing
The combination of Chapter 29 is from Demaine et al. (2013). Their application combines splay trees, multi-splay trees (Wang et al. 2006) and layered working-set trees (Bose et al. 2012b), so that one BST has the bounds of all three; that application is not formalized. The deamortization of Chapter 30 is from Bose et al. (2012a). Earlier trees with both good amortized and good worst-case bounds were built one at a time: zipper trees and Poketrees for the ratio, and layered working-set trees for the working-set bound in the worst case. The deamortization gives such a version of every online BST algorithm.
Chapter 31 formalizes Theorem 4.3 of Iacono and Langerman (2016), which applies both transformations to GreedyASS and Tango trees.
Other algorithms
PopTrees (Iacono and Pareek 2026) are BB[α] trees that, on search sequences of length , are within a constant factor of the best offline BST that maintains the BB[α] invariant, for any constant α: dynamic optimality within a restricted class of trees. It is a 2026 preprint. Blum et al. (2003) showed that, if computation between requests is free and only searches are charged, an online BST can be dynamically search-optimal.