Package com.jgalgo.example
Class LowestCommonAncestorExample
- java.lang.Object
-
- com.jgalgo.example.LowestCommonAncestorExample
-
public class LowestCommonAncestorExample extends Object
This example demonstrates how to use the lowest common ancestor algorithm.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
dynamicLCAExample()
This example demonstrates how to use the dynamic lowest common ancestor algorithm.static void
main(String[] args)
static void
staticLCAExample()
This example demonstrates how to use the static lowest common ancestor algorithm.
-
-
-
Method Detail
-
staticLCAExample
public static void staticLCAExample()
This example demonstrates how to use the static lowest common ancestor algorithm.
-
dynamicLCAExample
public static void dynamicLCAExample()
This example demonstrates how to use the dynamic lowest common ancestor algorithm.
-
main
public static void main(String[] args)
-
-