Approximation Algorithms | Algorithm Interview | Skill-Lync Resources
Hard Algorithms Greedy Algorithms

What are approximation algorithms and approximation ratios?

Answer

Approximation algorithms find near-optimal solutions to NP-hard problems in polynomial time with guaranteed quality. Approximation ratio r means solution is within factor r of optimal. Examples: Vertex Cover has 2-approximation (take both endpoints of each edge). Set Cover has O(log n)-approximation (greedy). TSP metric has 1.5-approximation (Christofides). PTAS (Polynomial Time Approximation Scheme) achieves (1+epsilon) ratio for any epsilon. Inapproximability results show limits.

Master These Concepts with IIT Certification
IIT Certified

Master These Concepts with IIT Certification

175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.

Relevant for Roles

Algorithm Developer Research Engineer Senior Software Engineer