程序代写案例-CSC263

欢迎使用51辅导,51作业君孵化低价透明的学长辅导平台,服务保持优质,平均费用压低50%以上! 51fudao.top
CSC263 Worksheet: Week 9 Depth First Search Winter 2022
1. Run DFS(G) on the directed graph G shown here. Assume that adjacency list and sub lists are all ord
ered in
increasing alphabetical order. Annotate on each vertex its parent as well as discovery and finish times. And
draw the resulting DFS trees.
A B
D E
CF
2. Now run DFS(G) on the following undirected graph. Produce two possible versions of the adjacenty lists and
note the di↵erence in the resulting DFS trees.
a
k
r
u
qs
pn


欢迎咨询51作业君
51作业君

Email:51zuoyejun

@gmail.com

添加客服微信: Fudaojun0228