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
LowestCommonAncestorDynamicdata 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 forLowestCommonAncestorOfflinecomputations forIntGraph.Result of aLowestCommonAncestorOfflinecomputation forIntGraph.Queries container forLowestCommonAncestorOfflinecomputations.Result of aLowestCommonAncestorOfflinecomputation.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 forTreePathMaximacomputations forIntGraph.A result object forTreePathMaximaalgorithm forIntGraph.Queries container forTreePathMaximacomputations.A result object forTreePathMaximaalgorithm.Abstract class for TPM computations.Hagerup's Tree Path Maxima (TPM) linear time algorithm.Static methods class for tree graphs.