Skip to content

Maximum flow

networks

Level 3 of 3

Also called Edmonds-Karp algorithm and Ford-Fulkerson method.

fresh numbers

The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from maximum flow's own run on the numbers shown.

choose one

question 1

How much reaches G on this map, sent from A?

4332223A0BCEFG0
the answer, and why

the answer is D

A, B, C, G sends 2, A, B, F, G sends 2, and A, E, F, G sends 1, so 5.

if you chose another

  • That is A's limits added. The roads into G allow only 5.
  • That is the first way alone.
  • That is A to B and E to F, a cut of 6, 4 + 2. The roads into G make a narrower cut, 5.

new numbers

question 2

How many looks does the run make on this line of 5 places, every limit 1?

1111A0BCDG0
the answer, and why

the answer is A

The first search makes 4 looks and the way fills every road. The second search makes 1 look along the full first road, so 5.

if you chose another

  • That is the first search alone.
  • That is a fan of 5, not a line.
  • That is the ways sent along, not the looks.

new numbers

question 3

On which map does the run make the most looks? A>B 1 means a road from A to B with a limit of 1, and the last two letters are the source and the sink.

the answer, and why

the answer is A

Its searches make 3, 4, 5 and 5 looks, 17 in all. The others make 4, 8 and 1.

31122ABEF
The answer's map, from A to F.

if you chose another

  • That makes 4 looks.
  • That makes 8 looks.
  • Its one look finds A to B, and B leads nowhere.

new numbers