SLIDE 16 2/22/15 ¡ 16 ¡
Calculate water flow on each edge
A B C D E F G H 1 1 1 2 1 3 3 Node A has sent 1 gallon of water to every other node. Water flows only on S.P .– splits evenly on multiple S.P .
2/3 gal. 1/3 gal. 2/3 gal. 1/3 gal. 7/6
gal. 5/3 gal. 13/6 gal. 23/6 gal. 1 gal. Why 7/6 gal. from D to E?
- Ans. E consumes 1 gallon and
passes 2/3 + 2/3 = 4/3 gallons below it. So, E needs a supply
- f 1 + 4/3 = 7/3 gallons, which
is split evenly into two S.P . from A to E.
We are not done yet! For each edge, we need to sum up the water flow from each BFS.
Karate club (Zachary, 1977)