Submitted:
09 March 2026
Posted:
10 March 2026
You are already at the latest version
Abstract
Keywords:
MSC: 05C69; 68Q25; 90C27
1. Introduction
2. Research Data and Implementation
3. Algorithm Description and Correctness Analysis
3.1. Correctness Analysis
- Step 1: Auxiliary graph properties.

- Step 2: Weighted vertex cover.
- Step 3: Projection correctness.
- Step 4: Global solution.
4. Approximation Ratio Analysis
4.1. Setup and Notation
- 1.
- For each vertex with degree , create auxiliary vertices , each with weight .
- 2.
- For each edge , the i-th edge incident to u and j-th incident to v, add edge .
4.2. Approximation Ratio Analysis
- Step 1: Upper bound on.
- Step 2: Cauchy-Schwarz lower bound relating and .
- Step 3: Strict inequality via tie-breaking.
5. Runtime Analysis
- Auxiliary graph construction: For each vertex with degree , remove u (), create auxiliary vertices (), connect each to a neighbor ( per edge), and set weights ( per vertex). Total per component: . Across all components: .
- Verify maximum degree 1: Compute degrees in , which has vertices and edges. This takes . Across all components: .
- Minimum weighted vertex cover: Iterate over each edge in (), select the minimum-weight endpoint ( per edge), and update the vertex cover set ( with hash sets). Total: . Across all components: .
- Projection: Extract original vertices from auxiliary ones by iterating over (size at most ) and adding to ( per vertex with hash sets). Total: . Across all components: .
- Update global cover: Union into S using a hash set, taking . Across all components: .
Experimental Results
6.1. Computational Efficiency and Scalability
- Largest Instance: Successfully solved the inf-road-usa graph (23.9 million vertices, 28.8 million edges) in 71.1 minutes.
- High-Density Instance: Processed the soc-livejournal graph (4.0 million vertices, 27.9 million edges) in 45.4 minutes.
- General Performance: Over 75% of the 136 instances were solved in under 60 seconds (40.4% in 1-60s, 34.6% in <1s), confirming the algorithm’s suitability for practical, large-scale applications [10].
6.2. Solution Quality and State-of-the-Art Comparison
Empirical Support for a Sub-2 Approximation
Acknowledgments
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, 2009; pp. 219–241. [Google Scholar] [CrossRef]
- Papadimitriou, C.H.; Steiglitz, K. Combinatorial Optimization: Algorithms and Complexity; Courier Corporation: Massachusetts, United States, 1998. [Google Scholar]
- Karakostas, G. A Better Approximation Ratio for the Vertex Cover Problem. ACM Transactions on 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, Rhode Island, United States, 1996; Vol. 26, pp. 147–164. [Google Scholar]
- Dinur, I.; Safra, S. On the Hardness of Approximating Minimum Vertex Cover. Annals of Mathematics 2005, 162, 439–485. [Google Scholar] [CrossRef]
- Khot, S.; Minzer, D.; Safra, M. On Independent Sets, 2-to-2 Games, and Grassmann Graphs. In Proceedings of the Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, Québec, Canada, 2017; pp. 576–589. [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, Québec, Canada, 2002; pp. 767–775. [Google Scholar] [CrossRef]
- Khot, S.; Regev, O. Vertex Cover Might Be Hard to Approximate to Within 2-ϵ. Journal of Computer and System Sciences 2008, 74, 335–349. [Google Scholar] [CrossRef]
- Vega, F. Hallelujah: Approximate Vertex Cover Solver. 2025. Available online: https://pypi.org/project/hallelujah.
- Vega, F. The Milagro Experiment. 2025. Available online: https://github.com/frankvegadelgado/milagro.
- Rossi, R.; Ahmed, N. The Network Data Repository with Interactive Graph Analytics and Visualization. In Proceedings of the AAAI Conference on Artificial Intelligence, 2015; 29. [Google Scholar] [CrossRef]
- Cai, S. A Collection of Large Graphs for Vertex Cover Benchmarking. 2017. Available online: https://lcs.ios.ac.cn/~caisw/graphs.html (accessed on 9 March 2026).
- Zhang, Y.; Wang, S.; Liu, C.; Zhu, E. TIVC: An Efficient Local Search Algorithm for Minimum Vertex Cover in Large Graphs. Sensors 2023, 23, 7831. [Google Scholar] [CrossRef] [PubMed]
- Cai, S.; Su, K.; Luo, C.; Sattar, A. NuMVC: An Efficient Local Search Algorithm for Minimum Vertex Cover. Journal of Artificial Intelligence Research 2013, 46, 687–716. [Google Scholar] [CrossRef]
| Nr. | Code metadata description | Metadata |
|---|---|---|
| C1 | Current code version | v0.0.3 |
| C2 | Permanent link to code/repository used for this code version | https://github.com/frankvegadelgado/hallelujah |
| C3 | Permanent link to Reproducible Capsule | https://pypi.org/project/hallelujah/ |
| C4 | Legal Code License | MIT License |
| C5 | Code versioning system used | git |
| C6 | Software code languages, tools, and services used | Python |
| C7 | Compilation requirements, operating environments & dependencies | Python ≥ 3.12, NetworkX ≥ 3.4.2 |
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 authors. 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 (http://creativecommons.org/licenses/by/4.0/).