You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: paper build errors — cast QDE strings to int, fix missing optimal_value keys
- Cast a/b/c from JSON strings to int for QuadraticDiophantineEquations example
- Compute MVC→AndOrGraph target weight from arc_weights instead of missing optimal_value
- Compute FVS→CodeGen instruction count from target_config length instead of missing optimal_value
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Selected arcs: #{mvc_aog_sol.target_config.enumerate().filter(((i, x)) => x == 1).map(((i, _)) => {let a = mvc_aog.target.instance.arcs.at(i); $v_#(a.at(0)) arrow.r v_#(a.at(1))$}).join(", ")} (weight #{mvc_aog_sol.target_config.enumerate().filter(((i, x)) => x == 1).map(((i, _)) => mvc_aog.target.instance.arc_weights.at(i)).sum()}) #sym.checkmark
9524
9524
],
9525
9525
)[
9526
9526
This reduction encodes vertex cover as a minimum-weight solution subgraph problem on a three-layer AND/OR DAG. The root AND gate requires all edges to be covered; each edge becomes an OR gate selecting which endpoint covers it; and each vertex becomes a sink whose arc weight equals the vertex weight. The minimum-weight solution subgraph selects exactly the arcs corresponding to a minimum vertex cover.
@@ -10922,7 +10922,7 @@ The following reductions to Integer Linear Programming are straightforward formu
10922
10922
)
10923
10923
Source FVS: $F = {#fvs_cg_fvs.map(str).join(", ")}$ (size #fvs_cg_fvs.len()) on a digraph with $n = #fvs_cg.source.instance.graph.num_vertices$ vertices and $m = #fvs_cg.source.instance.graph.arcs.len()$ arcs \
Target evaluation order: $(#fvs_cg_sol.target_config.map(str).join(", "))$ with #fvs_cg.target.optimal_value instructions #sym.checkmark
10925
+
Target evaluation order: $(#fvs_cg_sol.target_config.map(str).join(", "))$ with #fvs_cg_sol.target_config.len() instructions #sym.checkmark
10926
10926
],
10927
10927
)[
10928
10928
The Aho--Johnson--Ullman chain gadget construction @ahoJohnsonUllman1977 encodes a feedback vertex set problem as a code generation problem on an expression DAG with unlimited registers and 2-address instructions. Each source vertex becomes a leaf (input register), and each outgoing arc becomes an internal chain node. The number of LOAD (copy) instructions needed in an optimal program equals the size of a minimum feedback vertex set.
0 commit comments