Skip to content

Commit 354d140

Browse files
GiggleLiuclaude
andcommitted
Merge main + fix coverage gaps for SteinerTree
Resolve merge conflicts with ExactCoverBy3Sets (#603), regenerate reduction_graph.json, and add tests for edge_weights/set_weights/weights methods and constructor validation panic paths to close coverage gaps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 parents a456c7b + e9f6077 commit 354d140

16 files changed

Lines changed: 1756 additions & 760 deletions

File tree

docs/paper/reductions.typ

Lines changed: 1090 additions & 643 deletions
Large diffs are not rendered by default.

docs/src/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ pred create MaxCut --graph 0-1,1-2,2-0 -o maxcut.json
278278
pred create SteinerTree --graph 0-1,0-3,1-2,1-3,2-3,2-4,3-4 --edge-weights 2,5,2,1,5,6,1 --terminals 0,2,4 -o steiner.json
279279
pred create Factoring --target 15 --bits-m 4 --bits-n 4 -o factoring.json
280280
pred create Factoring --target 21 --bits-m 3 --bits-n 3 -o factoring2.json
281+
pred create X3C --universe 9 --sets "0,1,2;0,2,4;3,4,5;3,5,7;6,7,8;1,4,6;2,5,8" -o x3c.json
281282
```
282283

283284
Canonical examples are useful when you want a known-good instance from the paper/example database.

docs/src/reductions/problem_schemas.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,22 @@
8989
}
9090
]
9191
},
92+
{
93+
"name": "ExactCoverBy3Sets",
94+
"description": "Determine if a collection of 3-element subsets contains an exact cover",
95+
"fields": [
96+
{
97+
"name": "universe_size",
98+
"type_name": "usize",
99+
"description": "Size of universe X (must be divisible by 3)"
100+
},
101+
{
102+
"name": "subsets",
103+
"type_name": "Vec<[usize; 3]>",
104+
"description": "Collection C of 3-element subsets of X"
105+
}
106+
]
107+
},
92108
{
93109
"name": "Factoring",
94110
"description": "Factor a composite integer into two factors",

0 commit comments

Comments
 (0)