Chapter 31 Flashcards
1
Q
Can we solve mazes using depth first algorithm
A
Yes
2
Q
What is DFS timestamp structure
A
Using depth first structure with time logs with the help of global counter.
3
Q
What we called to multiple trees
A
Forest
4
Q
What is back edge in directed graph
A
(u, v) where v is ancestor of u in the tree
5
Q
What is forward edge in directed graph
A
(u, v) where v is descendant of u in the tree
6
Q
What is cross edge in directed graph
A
(u, v) where u and v both are nor ancestor neither descendant of each other