Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Discrete Mathematics / Further counting, graphs and algorithms

Graph Search and Shortest Paths

Breadth-first search, depth-first search and Dijkstra’s algorithm: how a map application finds your route.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1Two ways to explore
  2. ?Check yourself

By the end you can

  • Trace BFS and DFS on a graph
  • Run Dijkstra’s algorithm on a small weighted graph
  • Explain why BFS finds fewest-edge paths

Helps to know: Graph Theory

Check yourself

  1. Q1
    Which search finds the path with the fewest edges in an unweighted graph?