Graphs (traversals)
Depth-first Search
Graphs (traversals & bipartite) - DFS
In-class activity
At the board, each group will:
Draw a graph that has with n in [6,8] vertices and m in [10,12] edges.
Rotate clockwise so you are looking at a different group's graph.
Draw the adjacency list representation
Rotate clockwise.
Perform a DFS from vertex C or 3 (depending on labels), informally from what you did in Data Structures.
Rotate clockwise.
Perform a DFS by walking through the pseudocode and diagramming memory.
Mini-lesson on trees.
Rotate clockwise
Draw the tree and dash non-tree edges.
Logistics
New pods!
Status flags
Each team has a status flag that you can use to help me focus where to go:
green: working, no questions
yellow: have a question, but not blocked from doing work
red: have a question, blocked from doing work
blue: done, just hanging out
Articulation practice
Remember: this is an opportunity to practice clear, concise and precise communication while working through the material!
Throughout the course, each of you must volunteer at least once to serve as the facilitator, who will:
Make sure everyone has a chance for their voice to be heard. For example, saying:
“X, we haven’t heard from you in a while. Do you have thoughts on this problem or is there another one you’d like to shift to?”Keep track of time to cover as much of each problem as possible
Post a clearly articulated report with a summary and/or questions to the corresponding Ed Discussion category
Please be sure to also post your pod # and other team members, as in “Report for Pod 2 (Audrey St. John, Mary Lyon, …)”
If you’d prefer to use a doc, post the link or turn it into an image to attach
If you have work from the board, you can take a photo and post it
Additional practice: Worksheet + solutions on moodle
![](https://www.google.com/images/icons/product/drive-32.png)