Question

(c) Simulate breadth first search on the graph shown in Fig HW2Q1c. You can assume that the starting vertex is 1, and the neighbors of a vertex are examined in increasing numerical order (i.e. if there is a choice between two or more neighbors, we pick the smaller one). You have to show: both the order in which the vertices are visited and the breadth first search tree. No explanations necessary.

(d) On the same graph, i.e. the graph in Fig HW2Q1c, simulate depth first search . You can assume that the starting vertex is 1, and the neighbors of a vertex are examined in increasing numerical order (i.e. if there is a choice between two or more neighbors, we pick the smaller one). You have to show: both the order in which the vertices are visited and the depth first search tree. No explanations necessary.

(e) What is the topological order (no explanations necessary) on the graph shown in Fig HW2Q1e, if we use the method discussed in class and in section 9.4.1 of Brassard and Bratley (i.e. the algorithm which adds a print statement at the end of the DFS procedure and then reverses a list at the end) assuming that the starting vertex is 1, and the neighbors of a vertex are examined in increasing numerical order. Please note that I am asking specifically what will be the topological order produced by this algorithm i.e. it is not enough just to show another topological order.

(f) Trace the execution of Kruskal’s algorithm on the graph shown in Fig HW2Q1f. Show the connected components each time a new edge is added.C 0 The Mechanistic Cor file:///C/Users/Christopher/Desktop/CLASSES/ALGORTH IM%20DESIGN/hw2figures.pdf : Apps Joe Rogan Experienc ★ Macys-Shop Fashic 世 C60 Antiaging oil O Anthology film #2 tc Other bookmarks CSCI G632- Algorithus18 Spring HW 2 Figures Fig HW2le Fig HW2Q1f Fig HW2qQ3(i) and Fig HW2Q3(ii) 구 3014 5 Activate Windows Go to Settings to activate Windows. Fig HW2Q4 6:04 PM Desktop ^ d»)脈 의 2/20/2018 Type here to search

0 0
Add a comment Improve this question Transcribed image text
Answer #1

>>ケナー, Ventex Surve Gueqe : → XXXXX (FIFO order.) (visited Vertex order.), → (dy. Debth Fist Searich CDFS:- Verte 나 (LIFO OelVi tǐted s et Sef verttx マ ㄐ ven 15 13 3 given bh. 13 15 3 Next , same hoceM →! oelg ht 1 マ1316| 6, 8 o 13 IS one ofCDseog o rn us e 3 マ l o 3 MSTう 2+3+6+6+10 月

Add a comment
Know the answer?
Add Answer to:
(c) Simulate breadth first search on the graph shown in Fig HW2Q1c. You can assume that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT