Hi, having a class like the following
class node
{
int nodeID;
list<node> listOfChildren;
list<node> listOfParents;
}
what is the smartest/fastest way to find the nearest common parent given
any 2 nodes?
i thought about using Djikstra alg. any other possibilities?
thanks a lot
class node
{
int nodeID;
list<node> listOfChildren;
list<node> listOfParents;
}
what is the smartest/fastest way to find the nearest common parent given
any 2 nodes?
i thought about using Djikstra alg. any other possibilities?
thanks a lot
Comment