Package com.jgalgo.alg.tree
package com.jgalgo.alg.tree
Algorithms specifically for tree graphs, such as LCA or TPM.
-
ClassDescriptionDynamic algorithm for Lowest Common Ancestor (LCA) queries.A tree vertex in an
LowestCommonAncestorDynamic
data structure.Gabow linear dynamic LCA data structure with 32bit word operations.Gabow linear dynamic LCA data structure with 64bit word operations.Gabow implementation for dynamic LCA data structure with \(O(\log^2 n)\) amortized time foraddLeaf()
operation.An algorithm for computing the lowest common ancestor (LCA) of two vertices in a tree, offline.Queries container forLowestCommonAncestorOffline
computations forIntGraph
.Result of aLowestCommonAncestorOffline
computation forIntGraph
.Queries container forLowestCommonAncestorOffline
computations.Result of aLowestCommonAncestorOffline
computation.Abstract class for offline LCA computation.Offline LCA algorithm based on Union-Find data structure.Static Lowest Common Ancestor (LCA) algorithm.Data structure result created from a static LCA pre-processing.Data structure result created from a static LCA pre-processing forIntGraph
.Abstract class for static LCA data structures.Static LCA implementation using RMQ.Tree Path Maxima (TPM) algorithm.Queries container forTreePathMaxima
computations forIntGraph
.A result object forTreePathMaxima
algorithm forIntGraph
.Queries container forTreePathMaxima
computations.A result object forTreePathMaxima
algorithm.Abstract class for TPM computations.Hagerup's Tree Path Maxima (TPM) linear time algorithm.Static methods class for tree graphs.