Homework 4: Due Nov 12

October 29th, 2008

More flows ! PDF, LaTeX.

20 Responses to “Homework 4: Due Nov 12”

  1. Adam Says:

    A couple of small clarifications on problem 1a (I hate to be pedantic, but I think they make a difference :-):

    1) Is an edge critical if *some* decrease in its capacity (say decreasing it to 0) would decrease the max flow, or if *any* decrease in its capacity would decrease the max flow?

    2) Is the if in the definition an iff?

    3) It looks like we only need to give an efficient algorithm that finds *a* critical edge (not necessarily all of them). Is that right?

    Thanks.

  2. admin Says:

    1. An edge is critical if you can decrease its flow by 1 unit and decrease the max flow. how’s that ?

    2. Not iff (that would imply that there’s only one critical edge in a graph). Just if

    3. Correct. Find *some* critical edge.

  3. Dafang Says:

    I don’t quite understand what the question 2(b) is asking for.

    Does it mean that: 2(a) indicates the vertex cover of a biparti-graph is a P problem, while the vertex cover of general graphs is an NP problem, and therefore P~=NP ?

  4. admin Says:

    I think the question is quite clear. it’s possible that you’re confused because you think it’s harder than it is :)

  5. Mike Says:

    Problem 4.4 (7.17 from K&T) says the algorithm should figure out which nodes had been deleted in O(k log n) pings. What is n? I’m guessing n = |V| but that is never stated in the problem.

  6. admin Says:

    Yes. n = |V|

  7. Dafang Says:

    In question (5), what does m and n stand for? I guess they’re the number of vertices and edges, but just to make it clear

  8. admin Says:

    m = #edges, n = #vertices.

  9. Dafang Says:

    In question (4), is the structure of the graph G supposed to be unknown? Otherwise, one can just run the Fulkson algorithm to find the min cut, and hence identify all reachable nodes.

    In other words, the problem can be stated as: given a graph without knowing its structure (i.e., V is known but E is unknown), give an algorithm to identify all nodes in the s-side of its min-st-cut? Am I correct?

  10. admin Says:

    Well the structure of G is known at first. But then edges get sabotaged, and you need to find which ones.

  11. Dafang Says:

    Another clarification needed for question 1(b). Is the current flow a max-flow or an arbitrary flow? If it’s a max-flow, should the updated flow still be a max-flow in the new graph( in which one edge changed the capacity)?

  12. admin Says:

    the current flow is a max flow, and yes you have to update the *max* flow.

  13. No One Says:

    For problem 4, can we assume the availability of augmenting paths in the original network that resulted in a flow of value k ?

  14. admin Says:

    This goes back to my comment to Dafang: imagine that the original structure is known to you, and so you *do* have augmenting paths. the problem now is that something is wrong with the picture of the network, and you have to troubleshoot

  15. Dafang Says:

    In question 5, when we say “augment a graph M with an augmenting path P’, does it mean that the updated graph is M’ = M \delta P, and |M’| = |M|+1? This is inferred from the information given by the mid-exam.

  16. admin Says:

    Well I mean, run one step of FF using this path P. So yes, it means what you say, but that can be inferred independently of the midterm (I don’t want you all scrambling off to look at it :))

  17. Mark H Says:

    On problem 1a, what is considered an efficient algorithm?

  18. admin Says:

    When I say efficient, it’s shorthand for “do the best you can and the closer you get to what I know to be the correct answer, the more points you get”

  19. Mark H Says:

    On question 4.2a, do we need to find the actual set of vertices, or can we just find the number of items in the set?

  20. admin Says:

    both

Leave a Reply