Design and Analysis of Algorithms

CSE 421, Autumn 2009, University of Washington

Archive for the ‘Slides’ Category

Class exercise solution recap

Posted by James Lee on November 9, 2009

In class today, the exercise was to prove that the flow out of s equals to the flow into t in any valid flow network. Someone cleverly proposed the following solution.

First, let A be the set of all nodes except s and t. Then by the flow conversation constraint, we have

\displaystyle \sum_{v \in A} \sum_{e \textrm{ out of } v} f(e) = \sum_{v \in A} \sum_{e \textrm{ into } v} f(e).

But notice that for every edge e which does not have s or t as an endpoint, f(e) appears on both sides (since it goes into one node and comes out of one node). Canceling off all these terms, on the left hand side we are left with the flow into t, and on the right hand side, the flow out of s, proving that the two are equal.

In the next class (on Friday), we’ll see a generalization of this lemma, which will be the basis of our algorithms for computing minimum s-t cuts.

Posted in Reading, Slides | Leave a Comment »

DFS in-class exercise

Posted by James Lee on October 10, 2009

Here are today’s slides.  They contain one possible O(n+m) solution to the network reliability problem.

Posted in Announcements, Slides | Leave a Comment »

Prelim. slides & reading assignment

Posted by James Lee on September 30, 2009

I’ve just posted some preliminary slides.   This gives you some idea of what we’ll be covering, but the slides may change/shift significantly as we progress through the course.

The first reading assignment is Chapters 1 and 2 of the KT book.  Try to read over these before Monday.

Posted in Announcements, Reading, Slides | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.