|
ScapeGoatTree
|
Scapegoat Tree implementation. More...
#include <string>#include <cmath>#include "vector.hpp"#include "stack.hpp"#include "Node.hpp"#include "scapegoat_tree.tpp"Go to the source code of this file.
Classes | |
| struct | Command< T > |
| class | ScapeGoatTree< T > |
| class | ScapeGoatTree< T >::iterator |
Enumerations | |
| enum class | OpType { Insert , Delete , BatchStart , BatchEnd } |
Scapegoat Tree implementation.
... DoxyFile
ScapeGoat Tree Implementation
A self-balancing BST that maintains balance through periodic rebuilding.
Key Properties:
Time Complexity:
Space Complexity: O(n) for tree + O(n) temporary array during rebuild Represents the type of operation performed on the tree for undo/redo purposes.
| Enumerator | |
|---|---|
| Insert | |
| Delete | |
| BatchStart | |
| BatchEnd | |