LightMySky
En anglais

Approximation Ratios and How One Is Proved

An approximation algorithm comes with a proved bound on how far its answer can sit from the best one, and the proof almost never mentions the optimum directly. It bounds the optimum from one side with something computable, then bounds the algorithm against that.

Commence ce sujetPas besoin de compte. La progression est enregistrée dans ce navigateur.

Ce que l'enfant saura faire ensuite

  • State what a ratio guarantees and what it says nothing about
  • Prove a ratio by comparing both the algorithm and the optimum to a computable bound
  • Give an instance where the bound is tight and say what that tightness means

1 · Lis

An approximation ratio is a proved worst-case promise, not a report on one run. For a minimization problem, factor 2 means the answer never exceeds twice the best possible. It says nothing about the typical gap, and nothing about what the optimum actually is.

Try it together

The proof never touches the optimum directly. Find a computable middle bound B with the optimum on one side and your algorithm on the other: show the optimum is at least B, and your algorithm returns at most 2B. Chain them and your answer is at most twice optimal. Say B is 10 and you return 18: 18 sits below 20, so the ratio holds whatever the optimum is.

A tight instance is one where the algorithm truly hits the bound, returning exactly twice the optimum. Tightness blesses the analysis, not the algorithm: it proves no smaller factor can be claimed for this method. It never means the method is bad, only that the proof is exact.

Good to know

To prove your own ratio, exhibit the middle bound first, then bound each side against it. Never try to compute the optimum, and never estimate the ratio from test data: one measured gap is an anecdote, not a proof.

Sandwich a computable bound between the optimum and your answer to certify the factor.

2 · Regarde

En anglais

Sans écran

Imprimer une fiche d'exercicesFormat A4, avec une page de corrigés pour les adultes. Sans écran, sans internet.

Où se situe ce sujet

À apprendre avant

Rien : c'est un point de départ.

Liens facultatifs

Ce sujet mène à

Puis s'entraîner

8 questions attendent derrière cette leçon, chacune avec sa réponse expliquée. Chaque réponse nourrit le ciel : les étoiles s'allument à mesure qu'elles sont apprises, et pâlissent quand vient le moment de revenir.

Commence ce sujet