Ford-Fulkerson in MATLAB

One page of code will be more than enough. After testing it, email your program (not output, just the program) to me in text-only format. This is a strictly optional assignment - you can earn 40 extra marks towards your total. If you decide to do it, please hand it in by Thursday 4/22.

Instructions

Implement the Ford-Fulkerson algorithm as outlined in the textbook and in the course (ie read the description and the example once more!).

Conditions, Restrictions

If you type 'MATLAB Ford-Fulkerson' into Google, you get a number of implementations. Therefore we have to have some restrictions. I will accept anything that meets the specifications on input format and performs the correct algorithm, ie I will test it on a few more examples. Don't be put off by the apparently bigger task of writing two functions - both are actually very short. You can put them into one file ff.m.

Look up the MATLAB help pages! And revise the description of the algorithm and the examples that we did in class. If nothing helps, ask/email me.