Commit 53c13f1
* Add plan for #114: Knapsack
* feat: add Knapsack model with unit tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: register Knapsack in CLI dispatch and aliases
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: add Knapsack problem definition to paper
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: regenerate schemas after Knapsack addition
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add Knapsack re-export and edge-case tests
- Re-export Knapsack from models/mod.rs (structural review finding)
- Add tests: zero capacity, single item, greedy-not-optimal adversarial case
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: consistent 0-based indexing in paper, add Knapsack to prelude
- Paper definition: use w_0,...,w_(n-1) to match 0-based subset S ⊆ {0,...,n-1}
- Add Knapsack to prelude re-export for consistency with other misc models
Resolves Copilot review comments on PR #171.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: remove plan file and KS/BP aliases per review
- Delete docs/plans/2026-03-04-knapsack-model.md
- Remove KS and BP short aliases; case-insensitive full names still work
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: regenerate reduction_graph.json and problem_schemas.json to include Knapsack
The Knapsack node was missing from the exported graph and schemas,
which would cause the paper's completeness check to fail.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9085ba5 commit 53c13f1
11 files changed
Lines changed: 423 additions & 119 deletions
File tree
- docs
- paper
- src/reductions
- problemreductions-cli/src
- src
- models
- misc
- unit_tests/models/misc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
886 | 887 | | |
887 | 888 | | |
888 | 889 | | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
889 | 898 | | |
890 | 899 | | |
891 | 900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 11 | | |
22 | 12 | | |
23 | 13 | | |
| |||
75 | 65 | | |
76 | 66 | | |
77 | 67 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 68 | | |
84 | 69 | | |
85 | 70 | | |
| |||
183 | 168 | | |
184 | 169 | | |
185 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
| 346 | + | |
346 | 347 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 348 | + | |
358 | 349 | | |
359 | 350 | | |
360 | 351 | | |
| |||
0 commit comments