# Grids, graphs and BFS

Robotics foundations · Lecture 10 of 12 · 20 min

Source: https://shakaut.com/learn/grids-graphs-bfs

## What this covers

- A map as a graph
- Breadth-first search step by step
- Why BFS finds the shortest path on a grid

---

20 minutes · slides

**Speaker notes.** This is the outline for "Grids, graphs and BFS". The full deck is still being written, so these slides cover what it will include.

## In this lecture

- A map as a graph
- Breadth-first search step by step
- Why BFS finds the shortest path on a grid

**Speaker notes.** Three things we cover: A map as a graph; Breadth-first search step by step; Why BFS finds the shortest path on a grid.

## Try it yourself

- This lecture comes with a sim
- Open the Playground to play with it
- Change one thing at a time and watch what happens

> Find it in the Playground

**Speaker notes.** There is a sim for this topic in the Playground. Change one setting at a time, so you can see what each one does.

## Coming next

- A* pathfinding
- Cost so far plus a guess
- Admissible heuristics

> Lecture 11 · 22 min

**Speaker notes.** Next time: A* pathfinding.

---

Free to teach from. A credit back to shakaut.com/learn is appreciated.
