Submitted:
03 July 2026
Posted:
06 July 2026
You are already at the latest version
Abstract
Keywords:
MSC: 05C69; 05C70; 68Q25; 90C27
1. Introduction
- 1.
- Preprocessing. Self-loops are discarded; isolated vertices are removed (they appear in no edge and need not be covered).
- 2.
- Reduction and kernel solve. The core routine SolveVC reduces the cleaned graph G to a weighted MIDS instance on a planar forest-core gadget H and solves H with an accuracy-controlled Baker-style PTAS [8] of layering width . All non-core edges are then covered by a greedy repair step.
- 3.
- Linear-time pruning.PruneRedundantVertices makes a single forward pass over the candidate cover C and removes every vertex all of whose neighbours are already covered, reducing without compromising validity.
Contributions
- A practical vertex-cover algorithm with a linear planar forest-core reduction and an accuracy-controlled Baker-style weighted MIDS solver, running in time (near-linear for fixed ).
- A weighted MIDS gadget that encodes the planar forest core as a minimum-weight independent dominating set instance; because the gadget is itself a forest, the Baker PTAS solves it (near-)exactly, so the decoded set is a (near-)minimum cover of the core.
- A reproducible experiment, stored in the car/ folder, that computes exact optima without MILP and evaluates the default call on the graph atlas, bipartite families, grids, and random general graphs.
- An empirical conjecture that the universal approximation ratio under the default call is at most . Across feasible graphs the maximum ratio is exactly (an explicit eleven-vertex bipartite witness) and no instance exceeds it, so the conjectured bound is tight.
- A conditional UGC consequence: under , any proof of a universal ratio for this polynomial-time algorithm would refute the Unique Games Conjecture via the Khot–Regev hardness theorem.
- An open-source implementation, Salvador v0.0.6, in which the accuracy parameter drives the Baker PTAS.
2. Research Data
3. Description of the Algorithm
3.1. Main Algorithm
| Algorithm 1 FindVertexCover |
|
3.2. Weighted MIDS Gadget and Planar Solve
| Algorithm 2 SolveVC |
|
| Algorithm 3 BakerPtasWeightedIDS |
|
| Algorithm 4:GreedyWeightedMIS — baseline |
|
3.3. Linear-Time Pruning
| Algorithm 5 PruneRedundantVertices |
|
4. Correctness of the Algorithm
5. Approximation Ratio and Consequences for the Unique Games Conjecture
5.1. Structural Setup and Notation
5.2. Gadget Cost Identity
5.3. Elementary Bounds
5.4. Linear Core Guarantee
5.5. Non-Planar Case
5.6. A Lower Bound and the Hypothesis
5.7. Why the Ceiling Holds Across Graph Classes
Classes solved optimally.
Dense and degree-heterogeneous classes.
Bipartite and planar classes: the stress region.
The hard witness, and why it stops exactly at .
5.8. Conditional Consequence for the Unique Games Conjecture
6. Runtime Analysis
7. Reproducible Experiment
8. Conclusion
Funding
Acknowledgments
Conflicts of Interest
References
- Karp, R.M. Reducibility Among Combinatorial Problems. In 50 Years of Integer Programming 1958–2008: From the Early Years to the State-of-the-Art; Springer: Berlin, Germany, 2010; pp. 219–241. [Google Scholar] [CrossRef]
- Papadimitriou, C.H.; Steiglitz, K. Combinatorial Optimization: Algorithms and Complexity; Courier Corporation: North Chelmsford (MA), 1998. [Google Scholar]
- Karakostas, G. A Better Approximation Ratio for the Vertex Cover Problem. ACM Trans. Algorithms 2009, 5, 1–8. [Google Scholar] [CrossRef]
- Karpinski, M.; Zelikovsky, A. Approximating Dense Cases of Covering Problems. In Proceedings of the DIMACS Series in Discrete Mathematics and Theoretical Computer Science, Providence, Rhode Island, 1996; Vol. 26, pp. 147–164. [Google Scholar]
- Dinur, I.; Safra, S. On the Hardness of Approximating Minimum Vertex Cover. Ann. Math. 2005, 162, 439–485. [Google Scholar] [CrossRef]
- Khot, S. On the Power of Unique 2-Prover 1-Round Games. In Proceedings of the Proceedings of the 34th Annual ACM Symposium on Theory of Computing, Montreal, Québec, Canada, 2002; pp. 767–775. [Google Scholar] [CrossRef]
- Khot, S.; Regev, O. Vertex Cover Might Be Hard to Approximate to Within 2-ϵ. J. Comput. Syst. Sci. 2008, 74, 335–349. [Google Scholar] [CrossRef]
- Baker, B.S. Approximation algorithms for NP-complete problems on planar graphs. J. ACM 1994, 41, 153–180. [Google Scholar] [CrossRef]
- Vega, F. Salvador: Approximate Vertex Cover Solver. 2026, Version 0.0.6. Available online: https://pypi.org/project/salvador (accessed on 27 June 2026).
- Tarjan, R.E. Efficiency of a good but not linear set union algorithm. J. ACM 1975, 22, 215–225. [Google Scholar] [CrossRef]

| Nr. | Code metadata description | Metadata |
|---|---|---|
| C1 | Current code version | v0.0.6 |
| C2 | Permanent link to code repository | https://github.com/frankvegadelgado/salvador |
| C3 | Permanent link to reproducible capsule | https://pypi.org/project/salvador/ |
| C4 | Legal Code License | MIT License |
| C5 | Code versioning system used | git |
| C6 | Languages, tools, and services used | Python ≥ 3.12, NetworkX ≥ 3.4.2, NumPy ≥ 2.2.1, SciPy ≥ 1.15.0 |
| C7 | Compilation requirements and dependencies | Python, NetworkX, NumPy, SciPy |
| Graph class | Why the core solve (plus repair and pruning) tracks the optimum | Ratio |
|---|---|---|
| Stars | core optimum is the centre alone; decoded exactly | 1 |
| Matchings | core optimum is one endpoint per edge | 1 |
| Paths, trees, caterpillars | gadget reproduces the tree optimum exactly | 1 |
| Cycles | spanning-path gadget is a tree; solved optimally | 1 |
| Complete graphs | spanning-tree core solved; dense edges absorbed | 1 |
| Wheels / barbell / lollipop | optima on hub or clique vertices captured by the core | 1 |
| Chordal / interval | covers concentrate on simplicial hubs | |
| Random general () | near-optimal core plus small repair | |
| Grids / planar / outerplanar | core captures most edges; repairs only | |
| Graph atlas, | exhaustive small graphs | |
| Random bipartite (König) | non-core edges can survive the default layering | |
| Relabel/order stress of 7-vertex obstruction | ordering-dependent overshoot | |
| Bipartite hill-climb witness () | default layering overshoots on repair | (extremal) |
| Test class | Instances | Max ratio |
|---|---|---|
| Bipartite obstruction, canonical (exact) | 1 | 1.0000 |
| Relabel / order stress (exact) | 56 | 1.6667 |
| Random bipartite (exact) | 99 | 1.5000 |
| Bipartite hill-climb (exact) | 80 | 1.7500 |
| Grids, bipartite (exact) | 64 | 1.3333 |
| Graph atlas, | 1,245 | 1.3333 |
| Random general (exact, ) | 173 | 1.2500 |
| Total | 1,718 | 1.7500 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.