Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Approximation Algorithms and Heuristics Cheat Sheet

Approximation Algorithms and Heuristics Cheat Sheet

Back to Mathematics and Algorithms
Updated 2026-05-20
Next Topic: Arithmetic Cheat Sheet

Approximation algorithms are polynomial-time procedures for NP-hard optimization problems that guarantee solutions within a provable factor of optimal β€” the approximation ratio (or performance guarantee). Unlike exact solvers, they trade optimality for tractability, making previously infeasible problems solvable at scale. Heuristics such as simulated annealing and genetic algorithms complement theoretical approximations by performing excellently in practice without worst-case guarantees. The field sits at the intersection of algorithm design, combinatorial optimization, and complexity theory, with results ranging from simple greedy analyses to deep LP-rounding and semidefinite programming machinery.

What This Cheat Sheet Covers

This topic spans 15 focused tables and 70 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Approximation Complexity ClassesTable 2: TSP Approximation AlgorithmsTable 3: Vertex Cover ApproximationTable 4: Set Cover ApproximationTable 5: Scheduling Approximation AlgorithmsTable 6: Knapsack and Bin Packing ApproximationTable 7: MAX-SAT and MAX-CUT ApproximationTable 8: LP Relaxation and Rounding TechniquesTable 9: Randomized Algorithms FundamentalsTable 10: Simulated AnnealingTable 11: Genetic AlgorithmsTable 12: Local Search MetaheuristicsTable 13: Facility Location and Clustering ApproximationTable 14: Primal-Dual and SDP MethodsTable 15: Steiner Tree and Network Design Approximation

Table 1: Approximation Complexity Classes

The hierarchy P βŠ† FPTAS βŠ† PTAS βŠ† APX βŠ† NPO classifies how well NP-hard problems can be approximated in polynomial time. Understanding where a problem falls determines which algorithm design techniques are available and what hardness barriers exist.

TechniqueExampleDescription
FPTAS (Fully Polynomial-Time Approximation Scheme)
0-1 Knapsack
# poly in n and 1/Ξ΅
Achieves (1+\varepsilon)-approximation in time poly in both n and 1/\varepsilon;
β€’ strongest class beyond P
β€’ only weakly NP-hard problems admit FPTAS
PTAS (Polynomial-Time Approximation Scheme)
Euclidean TSP
Makespan scheduling
For every fixed \varepsilon>0 returns (1+\varepsilon)-optimal solution in n^{f(1/\varepsilon)} time;
β€’ running time may be exponential in 1/\varepsilon
β€’ strictly contains FPTAS
APX (Constant-Factor Approximable)
Metric TSP
Vertex Cover
Max-3SAT
Admits a constant-ratio polynomial approximation;
β€’ APX-hard problems have no PTAS unless P=NP
β€’ PCP theorem underlies hardness

More in Mathematics and Algorithms

  • Algorithms Cheat Sheet
  • Arithmetic Cheat Sheet
  • Algebra Cheat Sheet
  • Data Structures Cheat Sheet
  • Graph Theory Cheat Sheet
  • Network Flow Algorithms Cheat Sheet
View all 42 topics in Mathematics and Algorithms