Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
167 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
42 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Theoretical insights and an experimental comparison of tango trees and multi-splay trees (2405.18825v1)

Published 29 May 2024 in cs.DS

Abstract: The tango tree is the first proven $O(\lg \lg n)$-competitive binary search tree (BST). We present the first ever experimental implementation of tango trees and compare the running time of the tango tree with the multi-splay tree and the splay tree on a variety of families of access sequences. We construct access sequences that are intended to test specific properties of BSTs. The results of the other experiments demonstrate the optimality of the splay tree and multi-splay tree on these accesses, while simultaneously demonstrating the tango trees inability to achieve optimality. We prove that the running time of tango trees on the sequential access is $\Theta(n \lg \lg n)$, which provides insight into why the $\Theta(\lg \lg n)$ slow down exists on many access sequences. Motivated by experimental results, we conduct a deeper analysis of the working set access on multi-splay trees, leading to new insights about multi-splay tree behavior. Finally, all of the experiments also reveal insights about large constants and lower order terms in the multi-splay tree, which make it less practical than the splay tree, even though its proven competitive bound is tighter.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (12)
  1. An algorithm for organization of information. In Doklady Akademii Nauk, volume 146, pages 263–266. Russian Academy of Sciences, 1962.
  2. tango, January 2024. URL: https://github.com/adhami3310/tango.
  3. Multi-splay trees and tango trees. 2021. URL: https://github.com/6851-2021/tango-trees/.
  4. Dynamic optimality—almost. SIAM Journal on Computing, 37(1):240–251, 2007.
  5. Properties of multi-splay trees. Available upon request: jonderry@ cs. cmu. edu, 2009. URL: https://www.cs.cmu.edu/~jonderry/mst_properties.pdf.
  6. A dichromatic framework for balanced trees. In 19th Annual Symposium on Foundations of Computer Science (sfcs 1978), pages 8–21. IEEE, 1978.
  7. A foundation for proving splay is dynamically optimal. arXiv preprint arXiv:1907.06310, 2019.
  8. Self-adjusting binary search trees. Journal of the ACM (JACM), 32(3):652–686, 1985.
  9. Robert Endre Tarjan. Data structures and network algorithms. SIAM, 1983.
  10. Robert Endre Tarjan. Sequential access in splay trees takes linear time. Combinatorica, 5(4):367–378, 1985.
  11. O (log log n)-competitive dynamic binary search trees. In SODA, volume 6, pages 374–383, 2006.
  12. Robert Wilber. Lower bounds for accessing binary search trees with rotations. SIAM journal on Computing, 18(1):56–67, 1989.

Summary

We haven't generated a summary for this paper yet.

X Twitter Logo Streamline Icon: https://streamlinehq.com