Placements roadmap

Graphs

Grids, networks and dependencies: BFS and DFS first, then shortest paths and spanning trees. 2 topics, about 12 hours.

  1. BFS, DFS and topological sort

    About 7 h.

    • Choose BFS or DFS for a problem and code both on an adjacency list or a grid
    • Detect a cycle and order tasks with topological sort

    Visualisers: Graph traversal, Strongly connected components

  2. Shortest paths and spanning trees

    About 5 h.

    • Run Dijkstra with a heap and say why it fails with negative edges
    • Build a minimum spanning tree with Kruskal's or Prim's

    Visualisers: Shortest paths, Minimum spanning tree