← Back to CoursesComputer Science: Advanced

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Approximation Algorithms and Inapproximability

Manual: General · Subject: Computer Science

Study how to solve NP-hard optimization problems with provable quality guarantees.

When Exact Optimization Is Too Hard

Motivation

For many NP-hard optimization problems, exact optimal solutions are computationally expensive. Approximation algorithms trade optimality for provable guarantees, often expressed as ratios relative to the optimum.

Approximation Terminology

Approximation ratio
Worst-case factor between algorithm output and optimum.
PTAS
Polynomial-time approximation scheme; for any ε>0\varepsilon>0, gives a (1+ε)(1+\varepsilon)-approximation.
FPTAS
A PTAS whose runtime is polynomial in both input size and 1/ε1/\varepsilon.
Hardness of approximation
Proof that no polynomial-time algorithm can approximate beyond a certain factor unless complexity assumptions fail.

A PTAS provides what guarantee?

Why do approximation algorithms matter for NP-hard problems?

Approximation Algorithm Families

Greedy approximations

  • Simple and fast
  • Often problem-specific
  • Frequently used for covering and scheduling

Relaxation-based methods

  • Use LP or SDP relaxations
  • Round fractional solutions
  • Powerful for combinatorial optimization

Design Pattern for Approximation

  1. 1

    Formulate the optimization problem and identify its hardness.

  2. 2

    Choose a relaxation, greedy rule, or decomposition strategy.

  3. 3

    Prove an approximation ratio using a lower bound on the optimum.

  4. 4

    Analyze running time and scalability.

  5. 5

    Compare the guarantee to known inapproximability barriers.

In approximation analysis, an algorithm with ratio 22 for a minimization problem means what?

⚠️

Inapproximability

Some problems are not only hard to solve exactly; they are hard to approximate within any meaningful factor under standard assumptions.

Advanced Perspective

Modern approximation theory connects combinatorial optimization, semidefinite programming, probabilistically checkable proofs, and fine-grained hardness. The boundary between tractable approximation and provable impossibility is one of the richest areas in theoretical computer science.