Question: Depth - first search for finding Strongly Connected Components. Consider the directed graph below. DO a DFS of this graph, when you have a choice
Depthfirst search for finding Strongly Connected Components. Consider the directed graph below. DO a DFS of this graph, when you have a choice of multiple unvisited nodes to visit next, go to the nearest one. If two nodes are equally distance, break ties alphabetically. points per box minus the three that Ive already filled
Part A: Find the discovery and finish times of the nodes.
Solution:
Node
A
B
C
D
E
F
G
Discovery Time
Finishing Time
Part B: Classify the edges as T tree F forward B back or C cross edges
Solution:
Edge
AB
AC
AD
BD
BE
CA
CF
DB
DC
DE
DF
DG
EG
FD
GE
Type
Part C: In the table below, show the stack that you generate using Kosarajus algorithm. Note that the top of the stack is on the left.
Stack
Top
Bottom
Node
Part D: Heres the graph GG with the edge directions reversed Show the discovery times and finish times of the nodes when you do a heuristic DFS
Solution:
Node
A
B
C
D
E
F
G
Discovery Time
Finishing Time
Part E: List the SCCsYou may not need all the lines.
Solution:
SCCs:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
