Expand description
Reduction rules between NP-hard problems.
Re-exports§
pub use cost::CustomCost;pub use cost::Minimize;pub use cost::MinimizeLexicographic;pub use cost::MinimizeMax;pub use cost::MinimizeSteps;pub use cost::MinimizeWeighted;pub use cost::PathCostFn;pub use registry::ReductionEntry;pub use registry::ReductionOverhead;
Modules§
- cost
- Cost functions for reduction path optimization.
- registry
- Automatic reduction registration via inventory.
Structs§
- BoolVar
- A literal in the SAT problem, representing a variable or its negation.
- Edge
Json - An edge in the reduction graph JSON.
- Logic
Gadget - A logic gadget represented as a SpinGlass problem.
- Node
Json - A node in the reduction graph JSON.
- Reduction
Circuit ToSG - Result of reducing CircuitSAT to SpinGlass.
- Reduction
Edge - Edge data for a reduction.
- Reduction
Factoring ToCircuit - Result of reducing Factoring to CircuitSAT.
- Reduction
Graph - Runtime graph of all registered reductions.
- Reduction
Graph Json - JSON-serializable representation of the reduction graph.
- ReductionIS
ToSP - Result of reducing IndependentSet to SetPacking.
- ReductionIS
ToVC - Result of reducing IndependentSet to VertexCovering.
- ReductionKSAT
ToSAT - Result of reducing K-SAT to general SAT.
- Reduction
Matching ToSP - Result of reducing Matching to SetPacking.
- Reduction
MaxCut ToSG - Result of reducing MaxCut to SpinGlass.
- Reduction
Path - A path through the reduction graph.
- ReductionQUBO
ToSG - Result of reducing QUBO to SpinGlass.
- ReductionSAT
ToColoring - Result of reducing Satisfiability to Coloring.
- ReductionSAT
ToDS - Result of reducing Satisfiability to DominatingSet.
- ReductionSAT
ToIS - Result of reducing Satisfiability to IndependentSet.
- ReductionSAT
ToKSAT - Result of reducing general SAT to K-SAT.
- ReductionSG
ToMax Cut - Result of reducing SpinGlass to MaxCut.
- ReductionSG
ToQUBO - Result of reducing SpinGlass to QUBO.
- ReductionSP
ToIS - Result of reducing SetPacking to IndependentSet.
- ReductionVC
ToIS - Result of reducing VertexCovering to IndependentSet.
- ReductionVC
ToSC - Result of reducing VertexCovering to SetCovering.
Traits§
- Reduce
To - Trait for problems that can be reduced to target type T.
- Reduction
Result - Result of reducing a source problem to a target problem.
Functions§
- and_
gadget - Create an AND gate gadget.
- not_
gadget - Create a NOT gate gadget.
- or_
gadget - Create an OR gate gadget.
- set0_
gadget - Create a SET0 gadget (constant false).
- set1_
gadget - Create a SET1 gadget (constant true).
- xor_
gadget - Create an XOR gate gadget.