October 4, 2023

Wednesday of Week 7

Topics of the day

| Reading | Online | Questions | Assignments | Photos |

Suggested readings

Online references

Questions and exercises

  1. Draw a graph that is not also a tree. What is it that makes it not a tree? (Or, what property of a graph makes that graph a tree?)
  2. Draw a tree (with a clearly labelled root) and at least six nodes in at least three levels. Give an order the nodes might be visited in a depth-first search, and an order the nodes might be visited in a breadth-first search.
  3. Consider the graph in the image to the right. Give three different orders for visiting the nodes that correspond to possible depth-first searches, and three different orders that correspond to possible breadth-first searches.

Assignments

Today

Upcoming

Board photos