← Course home

Python reference · Reference

Limits and approximation

Separate what can be solved exactly from what needs an approximation or an assumption.

ReferenceAbout 2 min

This page lists the library modules for Limits and approximation. The lesson is Approximation guarantees.

This page is the module index for limits and approximation.

  • limits/approximation.py — 2-approximation vertex cover.

Focused lesson

Industry

A working engineer distinguishes a proven lower bound from an unresolved complexity assumption. General minimum vertex cover is NP-hard; no exact polynomial-time algorithm is known. For a simple approximation, repeatedly choose an uncovered edge and add its endpoints. The chosen edges are pairwise vertex-disjoint, giving a 2-approximation.

Implementation and tests Optional reference

Library code 1

  • bitsandbytes.limits.approximation

Use these references to compare the explanation with repository code and tests. A test link means it imports a lesson symbol; it does not by itself claim complete behavior coverage.