|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Karger-Stein randomized min-cut algorithm (alias for Karger.H fast method). More...
#include <Karger.H>Go to the source code of this file.
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Typedefs | |
| template<class GT , class SA = Dft_Show_Arc<GT>> | |
| using | Aleph::Karger_Stein_Min_Cut = Karger_Min_Cut< GT, SA > |
| Alias for Karger_Min_Cut (use fast() method for Karger-Stein) | |
Karger-Stein randomized min-cut algorithm (alias for Karger.H fast method).
This header provides the Karger-Stein algorithm as an alias to the fast() method in Karger_Min_Cut. The implementation is in Karger.H.
The Karger-Stein algorithm improves upon the basic Karger algorithm by observing that most of the randomness is "wasted" when the graph is large. The probability of contracting a min-cut edge increases as the graph shrinks, so the algorithm:
Use Karger_Min_Cut<GT>::fast() method from Karger.H:
Definition in file Karger_Stein.H.