Flows in Networks

Solve with simplex method

  1. Start with Zero flow
  2. choose appropriate path from s to t increase flow along the edges in the path, as much as possible

Untitled

Example

Untitled

edge마다의 capacity가 주어져 있다.

Untitled

유효한 아무 path나 골라서 추가한다. residual graph에서 정방향의 c를 감소, 역방향의 c를 증가시킨다.

Untitled

Untitled

Untitled

Untitled

더이상의 s→t path가 존재하지 않는다. 알고리즘 종료 (Ford-Fulkerson alg.)