PHASE 09

๐Ÿ•ธ๏ธ Graphs

Maps, friendships and course prerequisites are graphs. Represent them, explore them with BFS and DFS, count islands, find shortest paths and order tasks with dependencies.

โฑ๏ธ ~2 hours of lessons ๐Ÿ“š 3 lessons โœ๏ธ 6 exercises Hard
โ–ถ Start this phase

๐ŸŽฏ In this phase you willโ€ฆ

  • Represent graphs with adjacency lists
  • Traverse with BFS and DFS
  • Find shortest paths in unweighted and weighted graphs
  • Order tasks with topological sort

๐Ÿ“บ Lessons in this playlist

๐Ÿ“ Phase test

Concept questions, pseudocode writing, tracing and debugging โ€” check youโ€™re ready for the next phase.

๐Ÿ’ก Concept check
What does a visited set prevent in graph traversal?