Clause gadget in Valiant's permanent reduction Created 2026-09-28 Updated 2026-11-05
Counting complexity Created 2026-09-28 Updated 2026-11-05
Counting complexity studies the computational resources needed to count solutions. For a polynomial time decidable binary relation and a polynomial , a standard counting function isThe complexity class consists of these functions, equivalently the numbers of accepting computations of Nondeterministic Turing machines running in polynomial time. The witness encoding matters: counting computation paths and counting distinct outputs can give different answers.
For the propositional formula , the satisfying Boolean valuations are , and , so the answer is three. The associated decision problem asks only whether that count is positive. For a zero-one matrix, the permanent of a matrix counts perfect matchings in a bipartite graph. Testing whether any such perfect matching exists admits a polynomial-time algorithm, while counting them is -complete under polynomial-time Turing reductions.[ref]
Exclusive-or gadget in Valiant's permanent reduction Created 2026-09-28 Updated 2026-11-05
The Exclusive-or gadget in Valiant's permanent reduction cancels invalid cycle covers of a directed graph using signed edge weights. In the original four-vertex junction matrix , only vertices one and four have external connections. Writing for row and column deletions, its permanents satisfyandSurviving weighted routes therefore enter once and leave at the opposite port. Invalid patterns have total weight zero, even when individual covers exist.[ref]
The Complexity of Computing the Permanent by Leslie G. Valiant. junction identities (i)–(v), proof of Lemma 3.1
Leslie G. Valiant 2026-11-05
Leslie G. Valiant proved in 1979 that computing the permanent of a zero-one matrix is complete for the counting complexity class under the paper's arithmetic reductions.[ref]
The Complexity of Computing the Permanent by Leslie G. Valiant. Theorem1 and reduction construction
For a bipartite graph's zero-one adjacency matrix, the permanent counts perfect matchings. Deciding whether one exists admits a polynomial-time algorithm, while counting all of them has the paper's much stronger completeness property. This makes the difference between existence and counting concrete. The permanent resembles the determinant but lacks its alternating signs, so an efficient determinant algorithm does not automatically compute it. Valiant's permanent reduction encodes logical constraints into weighted combinatorial choices.
Valiant's permanent reduction Created 2026-09-28 Updated 2026-11-05
Valiant's permanent reduction encodes satisfying assignments as weighted cycle covers of a directed graph. The permanent of a matrix sums the products of edge weights over these cycle covers of a directed graph.
Variable tracks enforce consistent truth values, clause interchanges enforce satisfaction, and signed junctions cancel invalid boundary choices. The original construction giveswhere is twice the number of literal occurrences minus the number of clauses. Arithmetic recovers the predictable factor. The correspondence is between assignments and weighted groups of covers, rather than individual covers. Further transformations yield zero-one matrices.[ref]
Variable gadget in Valiant's permanent reduction Created 2026-09-28 Updated 2026-11-05
The Variable gadget in Valiant's permanent reduction is a track with two coherent routing choices. Each takes one side's literal junctions; clause tracks must take the other side. Interpret the global choice as a truth value, making all occurrences consistent.[ref]