alphaFeedback

WorksComputer Science

The Siriaisa Algorithm for Minimum Independent Dominating Set

AI contributions
  • Anthropic Claude Opus 5.5
View details
Ancillary data
1 code link
View

Abstract

The Minimum Independent Dominating Set problem (MIDS) asks for a smallest maximal independent set of an undirected graph; unless P=NP\mathrm{P}=\mathrm{NP}, it cannot be approximated within n1−εn^{1-\varepsilon} for any ε>0\varepsilon>0. We present version 0.0.8 of Siriaisa, an ensemble of eighteen strategies that adapts the vertex cover algorithm Salvador and the independent set algorithm Esperanza to MIDS, with every exact subproblem a forest solved by a conditioned tree dynamic program. We prove that the output is an independent dominating set computed in O((n+m) αA(n))O((n+m)\,\alpha_{\mathrm A}(n)) expected time, that its ratio is at most Δ\Delta, that it is optimal on forests, and that its ratio is at most n\sqrt n on three classes of graphs. A degree-splitting strategy yields a dominating set of size at most ⌊n⌋ (i(G)+s(G))\lfloor\sqrt n\rfloor\,(i(G)+s(G)) for an explicit splitting excess s(G)s(G), which vanishes on bounded-degree families for large nn and is largest on complete graphs, where the output is optimal. More generally, splitting at ⌊n1−ε⌋\lfloor n^{1-\varepsilon}\rfloor gives the bound n1−ε (i(G)+sε(G))n^{1-\varepsilon}\,(i(G)+s_\varepsilon(G)) for every ε∈(0,1]\varepsilon\in(0,1]. We state the ratio n3/4n^{3/4} as a conjecture whose proof would imply P=NP\mathrm{P}=\mathrm{NP}. Through a reduction of Chlebík and Chlebíková, every output decodes into a vertex cover, with conditional consequences for the Unique Games Conjecture. In experiments the output is optimal on 9 9999\,999 of 10 00010\,000 graphs with an exact integer-program optimum and on all 9595 bipartite graphs whose optimum was proved. As an application, we analyse the SAT solver satypy 0.0.4: it answers every unsatisfiable formula correctly, every SATISFIABLE answer carries a satisfying assignment, a wrong answer requires a ratio larger than 2p2p for pp variables, and its construction gives a self-contained proof of Halldórsson's inapproximability theorem.

Introduction

An independent dominating set of an undirected graph G=(V,E)G=(V,E) is a set D⊆VD \subseteq V in which no two vertices are adjacent and every vertex of V∖DV \setminus D has a neighbour in DD; equivalently, DD is a maximal independent set. The Minimum Independent Dominating Set problem (MIDS) asks for such a set of minimum size, denoted i(G)i(G). We write n=∣V∣n=|V|, m=∣E∣m=|E|, N(v)N(v) and N[v]=N(v)∪{v}N[v]=N(v)\cup\{v\} for the open and closed neighbourhoods, deg⁡(v)=∣N(v)∣\deg(v)=|N(v)|, Δ\Delta for the maximum degree, τ(G)\tau(G) for the minimum vertex cover size and α(G)\alpha(G) for the independence number. The ratio of a returned independent dominating set SS is ρ=∣S∣/i(G)\rho=|S|/i(G).

MIDS is among the hardest graph problems to approximate. Irving proved that, unless P = NP, no polynomial-time algorithm approximates it within any constant factor [1], and Halldórsson proved that it cannot be approximated within n1−εn^{1-\varepsilon} for any ε>0\varepsilon> 0 unless P = NP [2]; Damian-Iordache and Pă̆mă̆răju proved that it is NP-complete on circle graphs and, unless P = NP, not approximable within nεn^\varepsilon for any ε<1\varepsilon< 1 on circle graphs with nn vertices [3]. The problem remains NP-hard on bipartite graphs: Løwerov and Orlovich proved that it is NP-complete already on cubic planar bipartite graphs [4]; Manlove proved it NP-hard on cubic planar graphs [5], and Bazgan, Brankovic, Casel and Fernau derived from Manlove’s reduction that it is APX-hard on cubic planar graphs [6]. On graphs of maximum degree at most a constant BB, every maximal independent set approximates MIDS within BB, and the problem is APX-complete [7]; on cubic graphs, Alimonti and Calamoneri gave a polynomial-time algorithm with ratio 1.923, and the ratio 2 on graphs of maximum degree at most 3 [8], while Alimonti and Kann proved APX-completeness on cubic graphs of vertex cover, independent set and dominating set [9]. It is also hard to approximate on graphs of bounded degree, including bipartite ones: Chlebík and Chlebíková proved that there are absolute constants δ>0\delta> 0 and B0B_0 such that for every B≥B0B \ge B_0 MIDS is NP-hard to approximate within δB\delta B on graphs of maximum degree at most BB, and that the same holds on bipartite graphs; for small degrees they obtained the NP-hard factors 1+16801 + \frac{1}{680} for Δ≤3\Delta\le3, and 1+12931 + \frac{1}{293} and 1+11511 + \frac{1}{151} for bipartite graphs with Δ≤4\Delta\le4 and Δ≤5\Delta\le5 [10]. These results hold without any conjecture.

Under the Unique Games Conjecture (UGC) [11], Khot and Regev proved that Minimum Vertex Cover is hard to approximate within 2−ε2 - \varepsilon for every ε>0\varepsilon> 0 [12]. In October 2026 the OpenAI Math Team released a manuscript with Lean artifacts reporting a proof of UGC in the NP-hardness form that the theorem of Khot and Regev requires [13]; at the time of writing it has not been peer reviewed. If it holds, the hardness result of Khot and Regev holds unless P = NP. Through a reduction of Chlebík and Chlebíková (§ 7), every vertex cover instance becomes an MIDS instance whose optimum is τ\tau plus a known constant, so the instances of Khot and Regev give MIDS instances on which Siriaisa can be tested as a vertex cover algorithm.

This paper describes version 0.0.8 of Siriaisa [14], a Python implementation of an ensemble of eighteen strategies. The ensemble adapts the seventeen strategies of the vertex cover algorithm Salvador [15, 16] and the phases of the independent set algorithm Esperanza [17] to independent domination. Where Salvador builds a bipartite structure and solves vertex cover on it exactly by Kőnig’s theorem, Siriaisa builds a forest and solves MIDS on it exactly by a linear-time tree dynamic program; MIDS is NP-hard on bipartite graphs [4], so the bipartite structures of Salvador carry no exact solver for MIDS. One base strategy splits every vertex of degree larger than ⌊n⌋\lfloor\sqrt{n}\rfloor into copies, so that the auxiliary graph has maximum degree at most ⌊n⌋\lfloor\sqrt{n}\rfloor.

Contributions. The contributions of this paper are:

  • The algorithm (§ 3): twelve base strategies, five improvers and a final refinement, an exact conditioned forest solver, induced-forest layers, a degree-splitting strategy at ⌊n⌋\lfloor\sqrt{n}\rfloor, and a weighted swap search, together with the proof that the output is an independent dominating set (Theorem 4.3).

  • The running time O((n+m)αA(n))O((n + m)\alpha_A(n)) for the default parameters, with αA\alpha_A the inverse Ackermann function (Theorem 5.2).

  • Proved bounds (§ 6): the ratio is at most Δ\Delta on every graph (Corollary 6.2); the output is optimal on every forest (Theorem 6.4); the ratio is at most n\sqrt{n} on three classes (Theorem 6.5); and the degree-splitting strategy yields a dominating set of size at most ⌊n⌋(i(G)+s(G))\lfloor\sqrt{n}\rfloor(i(G) + s(G)) on every graph, for an explicit splitting excess s(G)s(G), with the same bound for the output when the decoded set is independent (Theorem 6.8); the excess is largest on complete graphs, of order n3/2n^{3/2}, it vanishes for n≥D2n \ge D^2 on every family of bounded degree DD, among them the NP-hard and UG-hard bounded-degree families, it is O(n)O(\sqrt{n}) on planar graphs, and on complete multipartite, crown, wheel and double-star graphs the output is optimal (Propositions 6.9, 6.11 and 6.15, Table 3).

FamilyHardnessΔ\Deltas(G)s(G)i(G)i(G)Output
cubic, n∈{4,6,8}n\in\{4,6,8\}—3nn≥n/4\ge n/4ratio ≤2\le2
cubic, n≥10n\ge10APX-hard [6]30≥n/4\ge n/4ratio ≤2\le2
cubic planar, n≥10n\ge10NP-hard [5]30≥n/4\ge n/4ratio ≤2\le2
cubic planar bipartite, n≥10n\ge10NP-complete [4]30≥n/4\ge n/4ratio ≤2\le2
maximum degree ≤3\le3NP-hard within 1+6806811+\frac{680}{681} [10]≤3\le3≤8\le8; 0 for n≥9n\ge9≥n/4\ge n/4ratio ≤3\le3
maximum degree ≤B\le B, bipartite or not, n≥B2n\ge B^2NP-hard within δB\delta B [10]≤B\le B0≥n/(B+1)\ge n/(B+1)ratio ≤B\le B
SC-IDS of degree BBreduction of [10]BB0sc+∣S∣sc+|S|ratio ≤B\le B
VC-IDS h(H)h(H), Δ(H)≤D\Delta(H)\le D, ∣V(h(H))∣≥max⁡(D,3)2|V(h(H))|\ge\max(D,3)^2vertex cover: UG-hard [12, 22]max⁡(D,3)\max(D,3)0τ(H)+2∣E(H)∣\tau(H)+2|E(H)|ratio ≤max⁡(D,3)\le\max(D,3)
Khot–Regev YES graphs, N≥dsbN\ge d^{s_b}vertex cover: UG-hard [12]≤dsb\le ds_b0—ratio ≤dsb\le ds_b
Khot–Regev YES graphs, any NNvertex cover: UG-hard [12]≤dsb\le ds_b≤n(⌈dsb/k⌉−1)\le n(\lceil ds_b/k\rceil-1)—ratio ≤dsb\le ds_b
planar, n≥400n\ge400NP-hard [5]unbounded≤2n+19\le2\sqrt{n}+19; ≥2n−3\ge2\sqrt{n}-3 for some graphs——
bipartite planar, n≥400n\ge400NP-hard [4]unbounded≤2n+12\le2\sqrt{n}+12; ≥2n−3\ge2\sqrt{n}-3 for some graphs——
circle graphsnot within nεn^\varepsilon, ε<1\varepsilon<1 [3]unboundedup to s(Kn)s(K_n) (maximum)——
m≤cnm\le cn—unbounded≤2c(n+2)\le2c(\sqrt{n}+2)——
G(n,c/n)G(n,c/n)—≤k\le k w.h.p.0 w.h.p.—ratio ≤Δ\le\Delta
grids, n≥16n\ge16; hypercubes QqQ_q, q≥4q\ge4—≤4\le4; qq0—ratio ≤Δ\le\Delta
star K1,n−1K_{1,n-1}, wheel WnW_n—n−1n-1⌈(n−1)/k⌉−1\lceil(n-1)/k\rceil-11optimal
double star (a≥ba\ge b leaves)—a+1a+1∑h∈B(⌈deg⁡(h)/k⌉−1)\sum_{h\in B}(\lceil\deg(h)/k\rceil-1)1+b1+boptimal
complete graph KnK_n—n−1n-1n(⌈(n−1)/k⌉−1)n(\lceil(n-1)/k\rceil-1) (maximum)1optimal
complete bipartite Ka,bK_{a,b}, a≤ba\le b—aaa(b/k−1)+b⌈a/k⌉−1a(b/k-1)+b\lceil a/k\rceil-1min⁡(a,b)\min(a,b)optimal
complete multipartite—n−njn-n_j∑jnj(⌈(n−nj)/k⌉−1)\sum_j n_j(\lceil(n-n_j)/k\rceil-1)min⁡jnj\min_j n_joptimal
crown graph, n=2tn=2t—t−1t-1n(⌈(t−1)/k⌉−1)n(\lceil(t-1)/k\rceil-1)2optimal
minimum degree ≥k\ge k—≥δ\ge\delta≥n(δ/k−1)\ge n(\delta/k-1)——

Table 3. The splitting excess s(G)s(G) (k=⌊n⌋k=\lfloor\sqrt{n}\rfloor) and the output on graph families. “Hardness” cites the hardness of MIDS on the family, or of the vertex cover problem it encodes; “Output” is the guarantee proved for Algorithm 1.

  • The parametric bound n1−ε(i(G)+sε(G))n^{1-\varepsilon}(i(G) + s_{\varepsilon}(G)) for splitting at ⌊n1−ε⌋\lfloor n^{1-\varepsilon}\rfloor, ε∈(0,1]\varepsilon\in(0,1], with its consequences, among them the ratio n3/4n^{3/4} on every graph with Δ≤⌊n3/4⌋\Delta\le\lfloor n^{3/4}\rfloor and sε(Kn)≥ns_{\varepsilon}(K_n) \ge n for every fixed ε\varepsilon and large nn (Theorem 6.13, Corollary 6.14).

  • The conjecture that the ratio is at most n3/4n^{3/4} on every graph, with the theorem that a proof would imply P = NP (Conjecture 6.20, Theorem 6.21).

  • The vertex cover reduction of Chlebík and Chlebíková with an explicit gadget and the identity i(h(H))=τ(H)+2∣E(H)∣i(h(H)) = \tau(H) + 2|E(H)| (Proposition 7.1), the decoding of every independent dominating set into a vertex cover (Lemma 7.2), and the conditional consequences for vertex cover approximation, on general graphs under the hardness of Khot and Regev and on bounded-degree graphs under that of Austrin, Khot and Safra (Theorem 7.3, Corollary 7.4).

  • Reproducible experiments (§ 9): 10 000 structured and random graphs with an exact integer-program optimum; 112 bipartite graphs; 55 instances of the two reductions of Chlebík and Chlebíková, ten of them built from Khot–Regev YES instances; and the 68 complements of the DIMACS clique benchmark graphs.

  • The application to the SAT solver satypy 0.0.4 (§ 8): the structure of the SAT-IDS graph, with i=pi=p on satisfiable and i≥β+pi \ge\beta+p on unsatisfiable formulas (Lemma 8.2), the least number of clause copies β\beta with β+p>2p2\beta+p>2p^{2} (Lemma 8.4) and with β+p>2np\beta+p>2\sqrt{np} (Lemma 8.3), the correctness of every answer except UNSATISFIABLE on a satisfiable formula, which requires a ratio larger than 2p2p, the correctness of every answer when the ratio on the graph is at most 2p2p (Theorem 8.7), the failure of the bound of Theorem 6.8 to separate satisfiable from unsatisfiable formulas for every number of copies (Proposition 8.8), the exact branching on the clause named by the output (Proposition 8.13), the gap pp against more than pn1−1/tpn^{1-1/t} with βt=pt(3q)t−1+1\beta_t=p^{t}(3q)^{t-1}+1 copies (Theorem 8.9), which gives a self-contained proof of Halldórsson’s theorem (Corollary 8.11) and the decision of every formula under Conjecture 6.20 (Corollary 8.12), the asymptotic s(G)∼2pLs(G)\sim2pL of the splitting excess with β∗\beta^{*} copies (Proposition 8.5), and the identity μ(φ)=⌊i(G)/β⌋\mu(\varphi)=\lfloor i(G)/\beta\rfloor with the minimum number μ(φ)\mu(\varphi) of falsified clauses (Theorem 8.6); and, on every graph, the inequality ⌊n⌋(i(G)+s(G))≥n−i(G)\lfloor\sqrt{n}\rfloor(i(G)+s(G))\ge n-i(G) (Proposition 6.10).

§ 2 records the code metadata, § 3 describes the algorithm, § 4 proves correctness, § 5 the running time and § 6 the bounds. § 7 treats the reductions and the conditional consequences, § 8 the application to Boolean satisfiability, § 9 reports the experiments and § 10 concludes.

Research Data

The algorithm is implemented in the Python package siriaisa [14]. The version described in this paper is v0.0.8. Table 1 lists the code metadata.

Nr.Code metadata descriptionMetadata
C1Current code versionv0.0.8
C2Permanent link to code repositoryhttps://github.com/frankvegadelgado/mids
C3Package namesiriaisa
C4Legal Code LicenseMIT License
C5Code versioning system usedgit
C6Languages, tools, and services usedPython ≥3.12\ge3.12, NetworkX, NumPy, SciPy
C7Main entry pointsiris, batch_iris, test_iris

Table 1. Code metadata of the siriaisa package. SciPy is used only by the experiment scripts, for the exact integer programs.

The Siriaisa Algorithm

The input graph is converted once into an index graph adj on the vertices 0,…,n−10,\ldots,n-1, and self-loops are removed. Every strategy returns a set that is turned into an independent dominating set by the repair-and-complete routine of § 3.1; the strategies are computed in their numbering order, the base strategies c1c_{1}–c13c_{13} first and the improvers c14c_{14}–c18c_{18} last, and the output is c18c_{18}. Table 2 lists them, and Algorithm 1 gives the main loop.

References

  1. [1]R. W. Irving, On approximating the minimum independent dominating set, Information Processing Letters 37 (4) (1991) 197–200. doi: 10.1016/0020-0190(91)90188-N.DOI
  2. [2]M. M. Halldórsson, Approximating the minimum maximal independence number, Information Processing Letters 46 (4) (1993) 169–172. doi:10.1016/0020-0190(93)90022-2.DOI
  3. [3]M. Damian-Iordache, S. V. Pemmaraju, Hardness of approximating independent domination in circle graphs, in: Algorithms and Computation (ISAAC 1999), Vol. 1741 of Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 1999, pp. 56–69. doi: 10.1007/3-540-46620-07.
  4. [4]Y. A. Loverov, Y. L. Orlovich, NP-completeness of the independent dominating set problem in the class of cubic planar bipartite graphs, Journal of Applied and Industrial Mathematics 14 (2) (2020) 352–366. doi:10.1134/S19904789202020131.
  5. [5]D. F. Manlove, On the algorithmic complexity of twelve covering and independence parameters of graphs, Discrete Applied Mathematics 91 (1–3) (1999) 155–175. doi:10.1016/S0166-218X(98)00147-4.DOI
  6. [6]C. Bazgan, L. Brankovic, K. Casel, H. Fernau, Domination chain: Characterisation, classical complexity, parameterised complexity and approximability, Discrete Applied Mathematics 280 (2020) 23–42. doi:10.1016/j.dam.2019.10.005.DOI
  7. [7]P. Crescenzi, V. Kann, A compendium of NP optimization problems: Minimum Independent Dominating Set, Online compendium (2000). URL https://www.csc.kth.se/~viggo/wwwcompendium/node14.html
  8. [8]P. Alimonti, T. Calamoneri, Improved approximations for independent dominating set in bounded degree graphs, in: Graph-Theoretic Concepts in Computer Science (WG 1996), Vol. 1197 of Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 1997, pp. 2–16. doi:10.1007/3-540-62559-3_2.DOI
  9. [9]P. Alimonti, V. Kann, Hardness of approximating problems on cubic graphs, in: Algorithms and Complexity (CIAC 1997), Vol. 1203 of Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 1997, pp. 288–298. doi:10.1007/3-540-62592-5_80.DOI
  10. [10]M. Chlebik, J. Chlebiková, Approximation hardness of dominating set problems in bounded degree graphs, Information and Computation 206 (11) (2008) 1264–1275. doi:10.1016/j.ic.2008.07.003.
  11. [11]S. Khot, On the Power of Unique 2-Prover 1-Round Games, in: Proceedings of the 34th Annual ACM Symposium on Theory of Computing, Association for Computing Machinery, Montreal, Québec, Canada, 2002, pp. 767–775. doi:10.1145/509907.510017.DOI
  12. [12]S. Khot, O. Regev, Vertex Cover Might Be Hard to Approximate to Within 2 − ε, Journal of Computer and System Sciences 74 (3) (2008) 335–349. doi:10.1016/j.jcss.2007.06.019.DOI
  13. [13]OpenAI Math Team, The Unique Games Conjecture and Optimal Approximation Thresholds (Result Family 102), GitHub Repository, manuscripts and Lean artifacts available at https://github.com/openai/math/blob/main/lean/docs/102.md (October 2026). URL https://github.com/openai/math
  14. [14]George, Siriiasa: Approximate Independent Dominating Set Solver, https://pypi.org/project/siriaisa/, python package version 0.0.8 (2026).
  15. [15]F. Vega, An Approximate Solution to the Minimum Vertex Cover Problem: The Salvador Algorithm, manuscript; preprint at https://www.preprints.org/manuscript/202605.2000 (2026).
  16. [16]F. Vega, Salvador: Approximate Vertex Cover Solver, https://pypi.org/project/salvador/, python package version 0.1.4 (2026).
  17. [17]F. Vega, Esperanza: Approximate Independent Set Solver, https://pypi.org/project/esperanza, python package version 0.1.6 (2026).DOI
  18. [18]R. E. Tarjan, Efficiency of a Good But Not Linear Set Union Algorithm, Journal of the ACM 22 (2) (1975) 215–225. doi:10.1145/321879.321884.DOI
  19. [19]A. A. Hagberg, D. A. Schult, P. J. Swart, Exploring network structure, dynamics, and function using NetworkX, in: Proceedings of the 7th Python in Science Conference (SciPy 2008), Pasadena, CA, USA, 2008, pp. 11–15.
  20. [20]Y. Caro, New results on the independence number, Tech. rep., Tel-Aviv University (1979).
  21. [21]V. K. Wei, A lower bound on the stability number of a simple graph, Tech. Rep. Technical Memorandum 81-11217-9, Bell Laboratories (1981).
  22. [22]P. Austrin, S. Khot, M. Safra, Inapproximability of Vertex Cover and Independent Set in Bounded Degree Graphs, Theory of Computing 7 (3) (2011) 27–43. doi:10.4086/toc.2011.v007a003.DOI
  23. [23]F. Vega, Satypy: a SAT Solver, https://pypi.org/project/satypy, python package version 0.0.4 (2026).
  24. [24]P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, et al., SciPy 1.0: fundamental algorithms for scientific computing in python, Nature Methods 17 (3) (2020) 261–272. doi:10.1038/s41592-019-0686-2.DOI
  25. [25]Q. Huangfu, J. A. J. Hall, Parallelizing the dual revised simplex method, Mathematical Programming Computation 10 (1) (2018) 119–142. doi:10.1007/s12532-017-0130-5.DOI
  26. [26]G. L. Nemhauser, L. E. Trotter, Vertex packings: Structural properties and algorithms, Mathematical Programming 8 (1) (1975) 232–248. doi:10.1007/BF01580444.DOI
  27. [27]J. E. Hopcroft, R. M. Karp, An n^{5/2} Algorithm for Maximum Matchings in Bipartite Graphs, SIAM Journal on Computing 2 (4) (1973) 225–231. doi:10.1137/0202019.DOI
  28. [28]D. S. Johnson, M. A. Trick (Eds.), Cliques, Coloring, and Satisfiability: Second DIMACS Implementation Challenge, Vol. 26 of DIMACS Series in Discrete Mathematics and Theoretical Computer Science, American Mathematical Society, Providence, RI, USA, 1996. doi:10.1090/dimacs/026.DOI
  29. [29]DynaRoARS, NPBench: A collection of benchmarks (in DIMACS format) for various NP-complete problems, GitHub Repository. URL https://github.com/dynaroars/npbench

Paper details

vlnc:W_4v5ckyya
v1 · latestHistory (1)

published · Fresh — published within the last 30 days

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Anthropic Claude Opus 5.5 · View statement →

Looking for related papers…
Contents