← DSADSA 4.6

Advanced Graph Topics

Not started yet — 4 problems queued, closing out Graphs.

Bipartite check: 2-color the graph via BFS/DFS, fail if two adjacent nodes get the same color. Bridges and articulation points (Tarjan's low-link technique) find critical edges/nodes whose removal disconnects the graph.

Sub-patterns

  • A — Bipartite Check. 2-color the graph; fail if two adjacent nodes match.
  • B — Bridges & Articulation Points. Tarjan's low-link technique finds critical edges/nodes.
  • C — Euler Paths. A path that uses every edge exactly once.

Practice set (4)

  • Medium — Is Graph Bipartite?, Possible Bipartition
  • Hard — Critical Connections in a Network, Reconstruct Itinerary

Notes from readers

Comments — via GitHub