Ahuja-Orlin: Difference between revisions

From Algowiki
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:
# If all upper bounds are integral, <math>f</math> is integral as well.
# If all upper bounds are integral, <math>f</math> is integral as well.
# There is a [[Basic flow definitions#Valid distance labeling|valid distance labeling]] <math>d</math> with respect to <math>f</math>.
# There is a [[Basic flow definitions#Valid distance labeling|valid distance labeling]] <math>d</math> with respect to <math>f</math>.
# Each node <,ath>v\in V\setminus\{t\}</math> has a '''current arc'', which is either void or one of the outgoing arcs of <math>v</math>.
# Each node <math>v\in V\setminus\{t\}</math> has a '''current arc''', which is either void or one of the outgoing arcs of <math>v</math>.
# There is a '''current flow-augmenting path''' with respect to <math>f</math>. This path starts wit <math>s</math> and ends at an arbitrary node of <math>G</math>. Each arc on this path is the curren tarc of its tail.
# There is a '''current flow-augmenting path''' with respect to <math>f</math>. This path starts wit <math>s</math> and ends at an arbitrary node of <math>G</math>. Each arc on this path is the curren tarc of its tail.



Revision as of 09:47, 13 October 2014

General Information

Algorithmic problem: Max-Flow Problems

Type of algorithm: loop

Abstract View

Invariant: After [math]\displaystyle{ i \ge 0 }[/math] iterations:

  1. The flow [math]\displaystyle{ f }[/math] is a fleasible flow.
  2. If all upper bounds are integral, [math]\displaystyle{ f }[/math] is integral as well.
  3. There is a valid distance labeling [math]\displaystyle{ d }[/math] with respect to [math]\displaystyle{ f }[/math].
  4. Each node [math]\displaystyle{ v\in V\setminus\{t\} }[/math] has a current arc, which is either void or one of the outgoing arcs of [math]\displaystyle{ v }[/math].
  5. There is a current flow-augmenting path with respect to [math]\displaystyle{ f }[/math]. This path starts wit [math]\displaystyle{ s }[/math] and ends at an arbitrary node of [math]\displaystyle{ G }[/math]. Each arc on this path is the curren tarc of its tail.

Variant: If no arc is appended to tha path in the current iteration, the distance label of some node (the endnode of the path , in fact) is increased.

Break condition: [math]\displaystyle{ d(s)\geq n }[/math].

Induction basis

Induction step

Complexity

Remark

This algorithm may be seen as a "lazy" variant on Edmonds-Karp. In fact, the most expensive step there is the computation of a flow-augmenting [math]\displaystyle{ (s,t) }[/math]-path. This task amounts to computing the true distance from every node to [math]\displaystyle{ t }[/math]. A valid distance labeling may be seen as "lazily evaluated" true distances.