Skip to content

Add Tarjan's SCC algorithm with iterative DFS#21

Merged
pratzl merged 2 commits intomainfrom
tarjan
Apr 10, 2026
Merged

Add Tarjan's SCC algorithm with iterative DFS#21
pratzl merged 2 commits intomainfrom
tarjan

Conversation

@pratzl
Copy link
Copy Markdown
Collaborator

@pratzl pratzl commented Apr 10, 2026

  • tarjan_scc.hpp: single-pass O(V+E) using low-link values, no transpose needed
  • 17 test cases: empty/single/cycle/DAG/complex/self-loops/weighted/disconnected
  • Includes agreement test with existing Kosaraju implementation

pratzl added 2 commits April 10, 2026 15:28
- tarjan_scc.hpp: single-pass O(V+E) using low-link values, no transpose needed
- 17 test cases: empty/single/cycle/DAG/complex/self-loops/weighted/disconnected
- Includes agreement test with existing Kosaraju implementation
- README.md: algorithm count 13->14, added Tarjan SCC to feature lists
- implementation_matrix.md: count 13->14, added tarjan_scc.hpp row
- algorithms.md: added Tarjan to Components category and alphabetical tables
- algorithm-complexity.md: added Tarjan row and header file listing
- connected_components.md: added Tarjan to overview, When to Use, See Also
- tarjan_scc.md: new dedicated algorithm doc page
- CHANGELOG.md: added Tarjan SCC entry to Unreleased section
@pratzl pratzl merged commit bb478fc into main Apr 10, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant