Back to the 2024 paper

Module 5: Advanced Topics

20247m

Write short notes on the following:
(i) Approximation algorithms.
(ii) Why are they important in the context of NP-hard optimization problems?
(iii) Describe how approximation algorithms can be applied to the Vertex Cover problem.

Worked SolutionAI Assisted

Approximation Algorithms — Importance & Vertex Cover Application

(i) Approximation Algorithms

Polytime algorithms that produce feasible solution with proven distance from optimum. For minimization minimization: ALG≤ρ⋅OPTALG ≤ ρ·OPT; for maximization OPT≤ρ⋅ALGOPT ≤ ρ·ALG; ρ≥1ρ≥1 approximation ratio (performance guarantee). Contrasts with heuristics (no guarantee).

Examples: Metric TSP 2-approx (MST doubling), Christofides 1.5, Set Cover ln⁡n\ln n, Knapsack FPTAS.

(ii) Importance for NP-Hard Optimization

  • Exact polytime impossible unless P=NPP=NP → need alternative for large instances.
  • Provides usable solution with confidence bound; helps decide tradeoff speed vs quality.
  • Underpins theoretical classification: APX, PTAS, FPTAS hierarchy shows which problems approximable arbitrarily well.
  • Guides practice: if problem hard to approximate (e.g., Clique within n1−εn^{1-ε} hard), don't waste effort seeking good approx; use heuristic/exponential exact for moderate nn.

Without approximation, only brute O(2n)O(2^n) exact feasible for tiny nn; approximation scales to thousands.

(iii) Applied to Vertex Cover

Minimum Vertex Cover: min vertices covering all edges — NP-hard (reduction from 3-SAT).

2-Approximation (as in Q84/Q97):

C=∅; E' =E
while E'≠∅: pick any (u,v)∈E'; C∪={u,v}; remove all edges incident to u or v

Matching MM picked disjoint → OPT≥∣M∣OPT ≥|M| (need one per edge) → ∣C∣=2∣M∣≤2OPT|C|=2|M| ≤2 OPT → ratio2.

Example: Path a−b−c−da-b-c-d. Pick (a,b)(a,b) → C=a,bC={a,b}, remove edges ab,bcab,bc → remaining c−dc-d → pick (c,d)(c,d) → C=a,b,c,dC={a,b,c,d} size4 vs OPT2 (b,cb,c) → ratio2 tight for path? star gives ratio2 worst.

Hardness: Assuming Unique Games, no polytime (2−ε)(2-ε) approx for vertex cover — so this simple 2-approx is essentially best possible.

Thus approximation bridges intractability and practical need.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.