Chapter 31 Flashcards

1
Q

Can we solve mazes using depth first algorithm

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is DFS timestamp structure

A

Using depth first structure with time logs with the help of global counter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What we called to multiple trees

A

Forest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is back edge in directed graph

A

(u, v) where v is ancestor of u in the tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is forward edge in directed graph

A

(u, v) where v is descendant of u in the tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly