

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CMSC 132 Quiz 2 Worksheet
The next quiz of the course will be on Wednesday, April 19 during your lab (discussion) session. The following list provides more information about the quiz:
The following exercises cover the material to be included in this quiz. Solutions to these exercises will not be provided, but you are welcome to discuss your solutions with TAs and instructors during office hours.
Exercises
Using the following graph answers the questions that follow. For BFS and DFS pick vertices to process using alphabetical order.
For each of the following exercises, specify the nodes visited after performing the appropriate traversal. When several node choices are available, use alphabetical order to choose a node to process.
a. Run DFS with A as the start vertex. b. Run BFS with D as the start vertex.
for each node in the graph after you completing the algorithm.
each node in the graph, after four nodes have been added to the set of processed nodes (set S in the lecture slides).