Class LowestCommonAncestorStaticAbstract

java.lang.Object
com.jgalgo.alg.tree.LowestCommonAncestorStaticAbstract
All Implemented Interfaces:
LowestCommonAncestorStatic
Direct Known Subclasses:
LowestCommonAncestorStaticRmq

public abstract class LowestCommonAncestorStaticAbstract extends Object implements LowestCommonAncestorStatic
Abstract class for static LCA data structures.

The class implements the interface by solving the problem on the index graph and then maps the results back to the original graph. The implementation for index graphs is abstract and left to the subclasses.

Author:
Barak Ugav