Minimum Mean Cycle Algorithms

The same group on the Doxygen site.

group Minimum Mean Cycle Algorithms

Algorithms for finding minimum mean cycles.

This group contains the algorithms for finding minimum mean cycles [1], [25].

The minimum mean cycle problem is to find a directed cycle of minimum mean length (cost) in a digraph. The mean length of a cycle is the average length of its arcs, i.e. the ratio between the total length of the cycle and the number of arcs on it.

This problem has an important connection to conservative length functions, too. A length function on the arcs of a digraph is called conservative if and only if there is no directed cycle of negative total length. For an arbitrary length function, the negative of the minimum cycle mean is the smallest \(\epsilon\) value so that increasing the arc lengths uniformly by \(\epsilon\) results in a conservative length function.

LEMON contains three algorithms for solving the minimum mean cycle problem:

  • KarpMmc Karp’s original algorithm [25].

  • HartmannOrlinMmc Hartmann-Orlin’s algorithm, which is an improved version of Karp’s algorithm [22].

  • HowardMmc Howard’s policy iteration algorithm [10], [11].

In practice, the Howard algorithm turned out to be by far the most efficient one, though the best known theoretical bound on its running time is exponential. Both Karp and Hartmann-Orlin algorithms run in time O(nm) and use space O(n2+m).

Classes

Class

Description

HartmannOrlinMmc

Implementation of the Hartmann-Orlin algorithm for finding a minimum mean cycle.

HowardMmc

Implementation of Howard’s algorithm for finding a minimum mean cycle.

KarpMmc

Implementation of Karp’s algorithm for finding a minimum mean cycle.

Other classes of its headers

Class

Description

HartmannOrlinMmcDefaultTraits

Default traits class of HartmannOrlinMmc class.

HowardMmcDefaultTraits

Default traits class of HowardMmc class.

KarpMmcDefaultTraits

Default traits class of KarpMmc class.