Commit 06b2eba
Add BicliqueCover → BMF inverse; drop dominated BicliqueCover → ILP
With exact BMF and sub-biclique BicliqueCover now both in place, the two
models are isomorphic up to a layout transpose. Add the inverse reduction
so the graph is bidirectional, factor the shared transpose into helpers,
and remove the direct BicliqueCover → ILP rule that is strictly dominated
by the two-hop path through BMF.
- `src/rules/bmf_bicliquecover.rs` now exposes `config_bc_to_bmf` and
`config_bmf_to_bc`. The forward reduction's `extract_solution` calls
the former; the new inverse reduction's `extract_solution` calls the
latter. Two helpers, one per direction — same transpose logic, no
duplication.
- `src/rules/bicliquecover_bmf.rs` (new) reduces `BicliqueCover(G, k)` to
`BMF(A_G, k)` by reading off the biadjacency matrix of `G`. Overhead:
`rows = cols = num_vertices` (loose bound, m ≤ m+n and n ≤ m+n),
`rank = rank`.
- The direct `BicliqueCover → ILP` rule (`bicliquecover_ilp.rs` and its
unit tests) is removed. Path search automatically resolves
`pred path BicliqueCover ILP` to the dominating two-hop path
`BicliqueCover → BMF → ILP`, which has the cleaner equality-constrained
BMF → ILP formulation.
- Paper: drop the `reduction-rule("BicliqueCover", "ILP")` entry; keep
the new `reduction-rule("BicliqueCover", "BMF")` alongside the forward
rule.
- New unit tests cover the inverse reduction (structure, closed-loop on
K_{2,2} at rank 1 and identity biadjacency at rank 2, infeasibility at
rank 1) plus a roundtrip test pinning `config_bc_to_bmf ∘ config_bmf_to_bc
= id`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3a37e70 commit 06b2eba
7 files changed
Lines changed: 220 additions & 251 deletions
File tree
- docs/paper
- src
- rules
- unit_tests/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14457 | 14457 | | |
14458 | 14458 | | |
14459 | 14459 | | |
14460 | | - | |
14461 | | - | |
14462 | | - | |
14463 | | - | |
14464 | | - | |
14465 | | - | |
14466 | | - | |
14467 | | - | |
14468 | | - | |
14469 | | - | |
14470 | | - | |
14471 | | - | |
14472 | | - | |
14473 | | - | |
14474 | | - | |
14475 | | - | |
14476 | | - | |
14477 | | - | |
14478 | | - | |
14479 | 14460 | | |
14480 | 14461 | | |
14481 | 14462 | | |
| |||
14668 | 14649 | | |
14669 | 14650 | | |
14670 | 14651 | | |
| 14652 | + | |
| 14653 | + | |
| 14654 | + | |
| 14655 | + | |
| 14656 | + | |
| 14657 | + | |
| 14658 | + | |
| 14659 | + | |
| 14660 | + | |
| 14661 | + | |
14671 | 14662 | | |
14672 | 14663 | | |
14673 | 14664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
23 | 60 | | |
24 | 61 | | |
25 | 62 | | |
| |||
39 | 76 | | |
40 | 77 | | |
41 | 78 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 79 | + | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
145 | | - | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
| |||
380 | 379 | | |
381 | 380 | | |
382 | 381 | | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
513 | 512 | | |
514 | 513 | | |
515 | 514 | | |
| |||
0 commit comments