|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Comprehensive educational example for Karger's min-cut algorithm. More...
Go to the source code of this file.
Functions | |
| int | main () |
Comprehensive educational example for Karger's min-cut algorithm.
A minimum cut of a graph is a partition of vertices into two non-empty sets such that the number of edges crossing between the sets is minimized.
Randomized algorithm that repeatedly contracts random edges until only two "super-nodes" remain. The edges between them form a cut.
g++ -std=c++20 -I.. -o karger_example karger_example.cc -lgsl -lgslcblas ./karger_example
Definition in file karger_example.cc.
| int main | ( | ) |
Definition at line 40 of file karger_example.cc.
References Aleph::maps().