lowest-common-ancestor Questions
11
Imagine a directed acyclic graph as follows, where:
"A" is the root (there is always exactly one root)
each node knows its parent(s)
the node names are arbitrary - nothing can be inferred from th...
Latton asked 13/2, 2013 at 23:14
2
Solved
I am trying to implement LCA for unrooted tree. I have given a tree (a connected undirected graph without cycles) and a sequence of queries about LCA for some root and two vertices. Every particula...
Tesch asked 18/8, 2014 at 20:54
1
© 2022 - 2024 — McMap. All rights reserved.