Implement the Ford-Fulkerson algorithm for computing the maximum flow in a network graph
This project was successfully completed by ajafari for $50 USD in a day.Get free quotes for a project like this
Browse Related Skills
Other things people do on Freelancer
Project Budget$30 - $250 USD
Completed In1 day
In this programming question we will implement the Ford-Fulkerson algorithm for computing the maximum flow in a network graph. The pseudo-code for the algorithm is given on slide 11. You are responsible for the computation of an augmenting path in the residual graph, AND to update the residual graph based on a given augmenting path. Some details on design choices you have to be aware of:
1. The residual graph consists of a directed graph with a "residual" value on each edge. This residual is the maximum amout of flow that can be pushed through the edge (i.e. for a forward edge, residual = capacity - flow, and for a backward edge residual = flow).
2. For every edge, we keep a pointer to the opposite edge, which you will find useful in updating the residual graph.
Last but not least, you are also responsible for testing your code. Please provide a sensible additional input network graph and make sure your algorithm works on it. It should have 7-10. The package online has two networks: the small "Heisenberg network" that we've seen in the first lecture on network flow, and the bipartite matching reduction.
[url removed, login to view]~gcoman/comp251/HW6Javadoc/
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online