Problem 1 Look up the examples in the glpk directory and find the programs for the Diet problem from section 2.1 and the Flow problem from section 2.2 in the textbook. Run the programs on the data from the textbook.
Problem 2 Write a glpk program for the ice-cream problem for ice cream all year round in section2.3 and run it on the data there.
Problem 3 Write glpk code for fitting a line, section 2.4 in the textbook and run it on the data given there.
Problem 4 Write glpk code for separating points section 2.5 and run it on the data in the figure given there.
Problem 1 Implement the LP for maximum weight matching [MG 3.2] in glpk. Run the example data on page 32 and check that the LP optimum is the same as the integer optimum by running the integer prog. option in glpk. Is the running time different?
Problem 2 Implement the LP for minimum vertex cover [MG 3.3] in glpk. Run it on some example graphs to check if the LP optimum is the same as the integer optimum, and if not, what is their ratio? Is there any pattern about the values in the optimal solution? Run the program on the cycle on 10 vertices - what is the optimal integer and LP solution? Run the rounding algorithm in [MG 3.3] and compare the ratio of the resulting solution to the optimum. What improvements can you suggest?
Problem 3 Same as Problem 2 but for the independent set problem from [MG 3.4].
Problem 4 Modify the proof for the case of the maximum weight matching when the bipratite graph need not have the two subsets of the same size, as described at the end of sec. 3.2 on p. 36-37 in [MG].)
Following guidelines should be strictly followed for the weekly programming exercises.
Contents of a submission: