Branching programs as determinants #
Let N be the weighted adjacency matrix of a directed acyclic graph on the vertices
0, …, m, numbered in topological order, so N i j = 0 unless i < j. The total weights
q j of the paths from 0 to j satisfy q = Pi.single 0 1 + q ᵥ* N. The matrix 1 - N is
upper unitriangular, so it has determinant 1 and its inverse is its adjugate. Hence
q = Pi.single 0 1 ᵥ* (1 - N)⁻¹ is the first row of the adjugate. Its last entry, the value
of the branching program, is the m × m determinant of N - 1 with its last row and first
column deleted (Matrix.eq_det_submatrix_sub_one_of_eq_single_add_vecMul). This is the step
from algebraic branching programs to determinants in Grenet's construction
(Matrix.permanent_eq_det_grenetMatrix). The general form for any B with det B = 1 is
Matrix.eq_det_neg_submatrix_of_vecMul_eq_single, a special case of the form without
det B = 1, Matrix.det_mul_eq_det_neg_submatrix_of_vecMul_eq_single.
Main results #
Matrix.det_mul_eq_det_neg_submatrix_of_vecMul_eq_single: ifq ᵥ* B = Pi.single 0 1, thendet B * q (last m)is the determinant of-Bwithout its last row and first column.Matrix.eq_det_neg_submatrix_of_vecMul_eq_single: ifq ᵥ* B = Pi.single 0 1anddet B = 1, thenq (last m)is the determinant of-Bwithout its last row and first column.Matrix.eq_det_submatrix_sub_one_of_eq_single_add_vecMul: the value of a branching program is anm × mdeterminant.
If q ᵥ* B = Pi.single 0 1, then det B * q (last m) is the m × m determinant of -B
with its last row and first column deleted: by Cramer's rule, det B • q is the first row of the
adjugate of B.
If q ᵥ* B = Pi.single 0 1 and det B = 1, then q (last m) is the m × m determinant
of -B with its last row and first column deleted.
Branching programs as determinants. Let N be the weighted adjacency matrix of a
directed acyclic graph on 0, …, m in topological order (N i j = 0 unless i < j), and let
q j be the total weight of the paths from 0 to j, characterized by
q = Pi.single 0 1 + q ᵥ* N. Then the total weight q (last m) of the paths from the source
0 to the sink last m is the determinant of the m × m matrix N - 1 with its last row and
first column deleted.