Class LowestCommonAncestorOfflineAbstract

java.lang.Object
com.jgalgo.alg.tree.LowestCommonAncestorOfflineAbstract
All Implemented Interfaces:
LowestCommonAncestorOffline
Direct Known Subclasses:
LowestCommonAncestorOfflineUnionFind

public abstract class LowestCommonAncestorOfflineAbstract extends Object implements LowestCommonAncestorOffline
Abstract class for offline LCA computation.

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