[Return to Solutions Page]

COMP-360 Assignment #3 Solutions

Each question is out of 4, for a total of 16 marks overall. For questions about the assignment or about the marking scheme, please contact Theresa at theresa (dot) deering (at) mail.mcgill.ca. View the questions here.

I apologize for the scribbles over the final grade on the front of most of the assignments. For some reason I thought that it was out of 20 instead of 16 so I had to go back and change them.

  1. A number of people had problems with the definition of a cut. The size of a cut is determined by the CAPACITY of the edges from A to B, not the flow.

    Also keep in mind that the Ford-Fulkerson algorithm adds only one simple s-t path per iteration of the algorithm. You cannot add more than one path at a time and it still be the algorithm described in the textbook.

  2. The main problem with this question was distinguishing between FLOW and CAPACITY. Most people used the idea of the fraction 1/k and then tried to use the Integrality Theorem, but they said that the 1/k was the capacity. There are 2 problems with this statement: If the edge capacity is a fraction then the integrality theorem no longer holds (must have integer capacities to guarantee an integer flow), and the max flow given by the Ford-Fulkerson algorithm will be 0 (the Ford Fulkerson only produces integer solutions and no integer flow other than 0 can flow over an edge of capactiy 1/k).

  3. This question seemed well-understood. Some people forgot to specify how many paths they needed to binary search or how they got the paths or how they knew that there were going to be exactly k paths in the max flow after the Ford-Fulkerson algorithm.

    For solution, see here.

  4. Most people did not understand the definition of test set. The pairs in the test set can, and in some cases must, have repeated laptops and access points. The definition of test set only talks about the RANGE not whether or not the laptops are actually connected to a particular access point. This caused problems in both part a and part b.

    A lot of people associated max flow directly with whether or not there could be a test set of size k. This only works in the special case when the max flow is n (i.e. a perfect matching).

    For solution, see here.

[Return to Solutions Page]