Skip to content

Commit

Permalink
Add facts about tournaments
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Nov 23, 2023
1 parent e6227dc commit f5a0444
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nactl.typ
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
#include_snippet("Cut-Vertices", "snippets/cut_vertices.hpp")
#include_snippet("SCC", "snippets/scc.hpp")

== Tournaments

1. The SCC graph is a path.
2. There is a hamiltonian path which can be found by inserting each new node into the path with binary search.
3. You can reconstruct the SCC graph from its indegree (or, by translation, outdegree) sequence: Pick vertices in increasing-indegree order. While the indegree of the set is too small, keep picking. Otherwise, start a new set.

= Flows

#include_snippet("Ford Fulkerson", "snippets/ford_fulkerson.hpp")
Expand Down

0 comments on commit f5a0444

Please sign in to comment.