Skip to content

6851-2021/tango-trees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Splay Trees and Tango Trees in C++

6.851 spring 2021 final project by Parker J. Rule (@pjrule) and Christian Altamirano (@bdiehs).

We implement splay trees (Sleator and Tarjan 1985) and multi-splay trees (Wang, Derryberry, and Sleator 2006). The latter implementation does not yet support insert and delete operations, only search. We also provide a half-finished implementation of tango trees (Demaine et al. 2005). Notes on what's left to be done to complete the tango tree implementation are in the writeup directory.

Building and running

To build and run the testing/benchmarking code, simply run make and execute ./main.

Reusing

We implement our trees in headers. The SplayTree class in src/splay.hpp and the MultiSplayTree class in src/multisplay.hpp implement the common BST interface in src/bst.hpp. The half-finished implementation of tango trees in src/rb.hpp also implements this interface.

About

Multi-Splay and Tango trees in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •