Documentation

Complexity.Algorithms.ExactTriangle.Defs

Exact Triangle on three integer weight matrices #

The three parts have t vertices each. The matrices give the weights between the first and second, second and third, and first and third parts. A triangle has weight zero when the sum of its three edge weights is zero. A reduction can supply these matrices directly to a solver.

Main definitions #

Main results #

Algorithmic correctness theorems are stated in consumer modules.

References #

def Cslib.Algorithms.ExactTriangle.HasZeroTriangle {t : ℕ} (wAB wBC wAC : Fin t → Fin t → ℤ) :

A complete tripartite graph with t vertices per part has a zero-weight triangle. The entries wAB a b, wBC b c and wAC a c weight the edges between parts A–B, B–C and A–C, respectively. Some vertices a, b, c must satisfy wAB a b + wBC b c + wAC a c = 0.

Instances For