Source
MinimumDominatingSet/SimpleGraph/i32
Target
MinimumSetCovering/i32
Motivation
This standard closed-neighborhood formulation connects weighted Dominating Set directly to weighted Set Covering. The graph currently has no path between these models, and the construction preserves arbitrary signed integer vertex weights supported by both implementations.
Reference
Garey and Johnson, Computers and Intractability, 1979, Appendix A (Dominating Set and Set Covering definitions). The closed-neighborhood construction below follows directly from the definitions.
Reduction Algorithm
Given G=(V,E), V={0,...,n-1}, with vertex weights w_v:
- Set the target universe to
V.
- For each vertex
v, create the set D_v=N[v]={v} union {u:{u,v} in E}.
- Give
D_v weight w_v.
- Selecting target set
D_v maps back to selecting graph vertex v.
A vertex set S dominates G iff union_{v in S} N[v]=V, which is exactly the target covering constraint. The objective is identical because weights are copied entry by entry. Isolated vertices and the empty graph are handled by the same construction. Self-loops and repeated edges, which SimpleGraph can represent, do not change the construction because each N[v] is treated as a set.
Size Overhead
| Target metric |
Formula |
universe_size |
num_vertices |
num_sets |
num_vertices |
Validation Method
- Exhaustively compare weighted optimum values on every simple graph through four vertices, including negative weights and isolated vertices.
- Verify every optimal target configuration maps to a dominating source configuration with the same value.
- The temporary exhaustive checker also validates the canonical weighted path below.
Example
- Source instance: path
0-1-2-3-4 with weights [3,1,4,1,3].
- Construction: target universe
{0,1,2,3,4} and sets
D_0={0,1} weight 3,
D_1={0,1,2} weight 1,
D_2={1,2,3} weight 4,
D_3={2,3,4} weight 1,
D_4={3,4} weight 3.
- Target instance: weighted Minimum Set Covering with the sets above.
- Round trip:
{D_1,D_3} covers the universe with value 2 and maps to dominating set {1,3} of value 2. Choices such as {D_0,D_3} are feasible but suboptimal, so the example checks both feasibility and weight preservation.
BibTeX
@book{GareyJohnson1979,
author = {Garey, Michael R. and Johnson, David S.},
title = {Computers and Intractability: A Guide to the Theory of NP-Completeness},
publisher = {W. H. Freeman},
year = {1979}
}
Source
MinimumDominatingSet/SimpleGraph/i32
Target
MinimumSetCovering/i32
Motivation
This standard closed-neighborhood formulation connects weighted Dominating Set directly to weighted Set Covering. The graph currently has no path between these models, and the construction preserves arbitrary signed integer vertex weights supported by both implementations.
Reference
Garey and Johnson, Computers and Intractability, 1979, Appendix A (Dominating Set and Set Covering definitions). The closed-neighborhood construction below follows directly from the definitions.
Reduction Algorithm
Given
G=(V,E),V={0,...,n-1}, with vertex weightsw_v:V.v, create the setD_v=N[v]={v} union {u:{u,v} in E}.D_vweightw_v.D_vmaps back to selecting graph vertexv.A vertex set
SdominatesGiffunion_{v in S} N[v]=V, which is exactly the target covering constraint. The objective is identical because weights are copied entry by entry. Isolated vertices and the empty graph are handled by the same construction. Self-loops and repeated edges, whichSimpleGraphcan represent, do not change the construction because eachN[v]is treated as a set.Size Overhead
universe_sizenum_verticesnum_setsnum_verticesValidation Method
Example
0-1-2-3-4with weights[3,1,4,1,3].{0,1,2,3,4}and setsD_0={0,1}weight 3,D_1={0,1,2}weight 1,D_2={1,2,3}weight 4,D_3={2,3,4}weight 1,D_4={3,4}weight 3.{D_1,D_3}covers the universe with value 2 and maps to dominating set{1,3}of value 2. Choices such as{D_0,D_3}are feasible but suboptimal, so the example checks both feasibility and weight preservation.BibTeX