Skip to main content

Binary Tree Variants

Binary Tree–Based Data Structures

TypeDescriptionKey CharacteristicTypical Use CaseAccess PatternMemory BehaviorNotes
Binary TreeEach node has ≤ 2 childrenHierarchical structureExpression treesTraversal-basedPointer-basedNo ordering
Binary Search TreeOrdered binary treeLeft < Root < RightSearching, sortingLogarithmic (avg)Pointer-basedCan become skewed
Self-balancing BSTAuto-balanced BSTHeight controlDatabases, indexesLogarithmicPointer-basedCategory, not specific
AVL TreeStrictly balanced BSTHeight difference ≤ 1Read-heavy systemsLogarithmicPointer-basedFrequent rotations
Red-Black TreeLoosely balanced BSTColor-based rulesLanguage runtimesLogarithmicPointer-basedFewer rotations
AA TreeSimplified red-black treeLevel-based balancingOrdered mapsLogarithmicPointer-basedEasier implementation
Scapegoat TreeRebuild-on-imbalanceNo rotationsAmortized searchPointer-basedRebuilds subtrees
Splay TreeSelf-adjusting BSTRecently used near rootCachesAmortized logPointer-basedNo explicit balance
TreapBST + heapRandomized priorityRandomized setsExpected logPointer-basedProbabilistic
Zip TreeRandomized BSTRank-based balancingOrdered mapsExpected logPointer-basedSimpler treap
WAVL TreeWeak AVL variantRelaxed balancingDatabasesLogarithmicPointer-basedFewer rebalances
Weight-balanced TreeBalanced by subtree weightWeight constraintsOrdered collectionsLogarithmicPointer-basedRebalancing cost
Order Statistic TreeAugmented BSTRank queriesRankingsLogarithmicPointer-basedStores subtree sizes
Cartesian TreeHeap-ordered treeSequence-basedRMQ problemsTraversal-basedPointer-basedBuilt from array
Randomized BSTRandom insertion orderExpected balanceSets/mapsExpected logPointer-basedProbabilistic
Left-child Right-siblingBinary encoding of treesMulti-child supportGeneral treesTraversal-basedPointer-basedTree representation
Threaded Binary TreeUses null pointersFaster traversalIn-order traversalTraversal-basedPointer-basedNo recursion
T-treeBalanced BST for memoryCache optimizedIn-memory DBsLogarithmicPointer-basedAVL hybrid
Tango TreeBST + preferred pathsDynamic optimalityTheoretical researchLogarithmicPointer-basedComplex
Top TreeDynamic tree structurePath queriesDynamic graphsLogarithmicPointer-basedAdvanced use
PagodaHeap-like BSTPriority searchExperimentalLogarithmicPointer-basedRarely used
RopeTree of stringsFast concat/splitText editorsLogarithmicTree-basedString structure
Conc-tree ListTree-based listFast concatenationFunctional listsIndexedTree-basedPersistent structure