Graph Theory37 sections · 1633 units
Open in Course

Quiz: Grid Graph Traversal

Knowledge check

Check Your Understanding

You traverse a 44-connected grid (up, down, left, right) using DFS. Each cell is a vertex and each shared boundary is an edge. For an n×mn \times m grid, approximately how many edges exist?

  1. A.About 2nm2nm
  2. B.n×mn \times m
  3. C.4nm4nm
  4. D.n+mn + m
Start the roadmap to answer the quizzes and solve the challenges