|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Minimum mean cycle in directed graphs (Karp algorithm). More...
#include <cmath>#include <cstddef>#include <limits>#include <type_traits>#include <utility>#include <ah-errors.H>#include <shortest_path_common.H>#include <htlist.H>#include <tpl_array.H>#include <tpl_dynMapTree.H>Go to the source code of this file.
Classes | |
| struct | Aleph::Min_Mean_Cycle_Result< GT, Cost_Type > |
| Result of minimum mean cycle computation. More... | |
| struct | Aleph::Min_Mean_Cycle_Value_Result |
| Lightweight minimum-mean-cycle value result. More... | |
| struct | Aleph::min_mean_cycle_detail::Incoming_Arc< GT, Cost_Type > |
| class | Aleph::Karp_Minimum_Mean_Cycle< GT, Distance, SA > |
| Functor wrapper for Karp minimum mean cycle. More... | |
| class | Aleph::Karp_Minimum_Mean_Cycle_Value< GT, Distance, SA > |
| Functor wrapper for value-only minimum mean cycle. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::min_mean_cycle_detail |
Minimum mean cycle in directed graphs (Karp algorithm).
This header provides a dedicated API to compute the minimum cycle mean in a directed weighted graph using Karp's dynamic programming algorithm.
Given a directed graph \(G=(V,E)\) with arc costs \(w(e)\), find the cycle \(C\) minimizing the average weight:
\[ \mu^* = \min_C \frac{w(C)}{|C|} \]
List_Digraph, Array_Graph, ...)SA) and custom distance accessorsDefinition in file Min_Mean_Cycle.H.