Graph Theory37 sections · 1633 units
Open in CourseQuiz: Labyrinth Pattern
Knowledge check
Check Your Understanding
Labyrinth: Find shortest path in a grid from 'A' to 'B', avoiding walls. How do you model this as a graph problem?
- A.Only 'A' and 'B' are nodes, find direct path
- B.Walls are nodes, empty cells are edges
- C.Each row is a node
- D.Each cell is a node, edges connect adjacent non-wall cells