{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

flowdecomposition - 15.082 and 6.855J Flow Decomposition...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
15.082 and 6.855J Flow Decomposition
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 begin Initialize while y ≠ ∅ do begin Select(s, y) Search(s, y) if a cycle C is found begin let = Capacity(C, y) Add Flow( , C) to cycle flows Subtract Flow( , C) from y. end if a path P is found begin let = Capacity(P, y) Add Flow( , P) to path flows Subtract Flow( , P) from y. end end then do then do
Image of page 2
3 The initial flow 1 2 4 5 3 6 2 3 4 7 3 4 4 8 5 9 2 0 0 0 0 A supply node A demand node A balanced node The flow x -2
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 Find a Path or Cycle 1 2 4 5 3 6 2 3 4 7 3 4 4 8 5 9 2 -2 0 0 1 Carry out a depth first search until a cycle C or a path P is found Determine the capacity The capacity is 2.
Image of page 4
5 Update the decomposition 1 2 4 5 3 6 3 3 4 4 5 2 -2 0 0 Add the cycle flow to the decomposition 1 update the current flow cycle flows path flows 2 units around 1-2-4-5-3-1 2 5 6 7 0
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Find the next path or cycle 1 2 4 5 3 6 3 3 4 4 5 2 -2 0 0 Start at a supply node and find the next cycle or path 1 cycle flows path flows 2 units around 1-2-4-5-3-1 2 5 6 7
Image of page 6
7
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern