Author | Message |
---|---|
G190852562
Posts: 162
|
Posted 12:33 Dec 08, 2014 |
1. Consider the following graph, List the node labels in the order they would be visited when performing depth first search starting from node 1. Assume that neighbors of a node are visited in numerically order. (Note, unless you are using the current version of the wiki page, the order will not be consistent with the code on the wiki.) (Image: http://csns.calstatela.edu/download?fileId=4792589) 1-2-3-4-5-6-7-8-9-10-11-12 3. For the following graph, what's the distance between a and i by using depth-first search to find a path from a to i ? (the distance means how many edges on the finding path) Assume that neighbors of a node are visited in alphabetically ascending order. (Image: http://csns.calstatela.edu/download?fileId=4792594) 6 |