PLAIN/TEXT — ISSUE 233/456 COMPUTER SCIENCE · FOUNDATION / APPROXIMATION ALGORITHMS · ~4 MIN READING DATE: 2027-05-22 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: Can a fast answer be imperfect but still guaranteed? Can a fast answer be imperfect but still guaranteed? ==================================================== / START HERE You may need a good plan before you have time to prove it is the best possible plan. An approximation algorithm is a procedure that returns a valid optimisation answer with a proven bound on its distance from the best answer. The guarantee concerns every allowed input, not just the average quality seen in a few demonstrations. / WHY NOW Imagine placing monitors at junctions so that every connecting link has a monitor at at least one end. The objective is to use as few monitored junctions as possible. A quick procedure can give a valid placement while also certifying that it is not arbitrarily wasteful. / THE IDEA In the mathematical network, junctions are vertices and links are edges. A vertex cover is a set of vertices touching every edge. A simple approximation repeatedly selects any uncovered edge, chooses both its endpoints, and removes all edges those endpoints already cover. Selected edges never share endpoints: edges touching an earlier selection have been removed. Every valid cover must choose at least one endpoint for each selected edge. Our procedure chooses two. This gives a lower bound on the unknown optimum and an upper bound on our cost without solving the exact optimisation problem. / THE FORMAL IDEA OPT ≤ C ≤ 2 × OPT - OPT = the smallest possible number of selected vertices; C = the number chosen by this procedure. - The first inequality says a valid answer cannot beat the optimum. The second is the factor-two approximation guarantee for this unweighted vertex-cover problem. / RUN THE TINY EXAMPLE Change one thing. Predict what happens. Network: A—B—C. Select edge A—B, taking vertices {A,B}. Every edge is covered. C = 2, while the optimum {B} has OPT = 1. Change one input by adding edge C—D. After selecting A—B, C—D remains: select both ends too. C = 4; optimum {B,C} has OPT = 2. The changed network doubles both this run’s cost and the optimum, preserving the factor-two bound. It does not promise the output always costs exactly twice the optimum: a triangle, for example, needs two vertices and this procedure can return exactly two. / SO WHAT? A guarantee differs from a heuristic’s encouraging track record. The proof identifies a structural reason that bad cases remain bounded. If the operational cost of one extra monitor is acceptable, that bound can be more useful than a long-running exact search with no timely answer. / ONE CAVEAT The model gives every vertex equal cost and assumes endpoint monitoring is the complete requirement. Unequal installation costs or extra coverage rules require different algorithms and proofs. A factor-two guarantee is relative to the optimum, not a claim of fifty-percent accuracy or a probability of success. / KEEP THIS A useful approximate answer comes with a proven worst-case quality bound tied to the exact problem you actually modelled. / SOURCE TRAIL [1] MIT — Approximation algorithms and vertex cover https://ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/resources/lecture-17-notes/ NEXT: How tiny repeated grooves let us measure a colour --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2027/05/2027-05-22-approximation-vertex-cover.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click