Skip to content

Latest commit

 

History

History

15-special-dfs

Unit 15: Specialized DFS

This unit covers some extensions to DFS and the problems they solve:

  • Opened/closed node states
  • Edge types (tree, back, cross)
  • Cycle check
  • Node timestamps and visibility (dfs_num and dfs_low)
  • Bridges
  • Articulation points

Tarjan's SCC algorithm was left out for the time being because it is more complex and difficult to remember than Kosaraju's.

Prerequisites

Practice problems

Basic

  • UVa 315 - Network (articulation points)
  • UVa 796 - Critical Links (bridges, assume N <= 10000, input tricky, don't hesitate to ask for help!)

Variants