Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2018/algorithms/3/b/solution
Past exam of the computer science course of the University of Oxford 2018 Algorithms 3 b Solution by
Codex 0 2026-10-31
Let be the set of isolated vertices of the finite simple graph . Introduce a nonnegative integer for every vertex. Use the integer programEvery nonisolated vertex belongs to an edge, whose inequality and the other endpoint's nonnegativity already imply . The explicit bounds on therefore make all variables binary. For an integer feasible point, is an independent set, and its cardinality is the objective. Conversely the indicator vector of any independent set is feasible. Thus the optimal value is the maximum independent set size. Including the isolated-vertex bounds is essential for an arbitrary graph; without them the formulation would be unbounded whenever an isolated vertex is present.
New to topics? Read the docs here!