MODULE 14 · ADVANCED

Graph Algorithms: BFS, DFS, Topological Sort & Network Routing ProjectJava & Data Structures · Module 14

Master graph representations and algorithms: Adjacency Lists, BFS Shortest Path, DFS Cycle Detection, Kahn's Topological Sort, Dijkstra's algorithm, and build a network routing project.

4 lessons16 min readingTrees, Heaps, Graph Algorithms & Dynamic Programming1 project
Free, self-paced, and open to everyone. No account needed.
WHAT THIS MODULE COVERS

Graph Algorithms: BFS, DFS, Topological Sort & Network Routing Project

Master graph representations and algorithms: Adjacency Lists, BFS Shortest Path, DFS Cycle Detection, Kahn's Topological Sort, Dijkstra's algorithm, and build a network routing project.

BEFORE YOU START

Tree traversals and queue/stack data structures

WHAT YOU’LL BE ABLE TO DO

Deep mastery of adjacency representations, BFS/DFS, Kahn's topological sort, Dijkstra's shortest path, and Kruskal's MST.

THE LESSON SEQUENCE

Read in order, or jump to what you need.

Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.

  1. 14.01
    Graph Architectures: Adjacency Lists vs Matrices & BFS/DFS Traversals

    Deconstruct graph data structures. Contrast space complexity of Adjacency Lists vs Adjacency Matrices, and implement BFS and DFS traversals with cycle detection.

    4 min
  2. 14.02
    Topological Sort (Kahn's) & Dijkstra's Shortest Path Algorithm

    Master advanced graph algorithms. Implement Kahn's BFS Topological Sort for task scheduling, and Dijkstra's algorithm with PriorityQueue for weighted shortest paths.

    4 min
  3. 14.03
    Disjoint Set Union (DSU) with Path Compression and Kruskal's Minimum Spanning Tree

    Master Disjoint Set Union (Union-Find) with path compression and union-by-rank, applying it to cycle detection and Kruskal's Minimum Spanning Tree algorithm.

    4 min
  4. 14.04
    Guided Project 4: High-Performance Network Packet Routing SimulatorProject

    Build an industrial network packet routing engine. Model router vertices, calculate lowest-latency paths via Dijkstra, and re-route around link failures dynamically.

    4 min
MODULE SELF-CHECK

Ready to move on?

Deliver Project 4: Distributed Network Routing & Topology Engine.

Open the module self-check