- Source: Computing the permanent
In linear algebra, the computation of the permanent of a matrix is a problem that is thought to be more difficult than the computation of the determinant of a matrix despite the apparent similarity of the definitions.
The permanent is defined similarly to the determinant, as a sum of products of sets of matrix entries that lie in distinct rows and columns. However, where the determinant weights each of these products with a ±1 sign based on the parity of the set, the permanent weights them all with a +1 sign.
While the determinant can be computed in polynomial time by Gaussian elimination, it is generally believed that the permanent cannot be computed in polynomial time. In computational complexity theory, a theorem of Valiant states that computing permanents is #P-hard, and even #P-complete for matrices in which all entries are 0 or 1 Valiant (1979). This puts the computation of the permanent in a class of problems believed to be even more difficult to compute than NP. It is known that computing the permanent is impossible for logspace-uniform ACC0 circuits.(Allender & Gore 1994)
The development of both exact and approximate algorithms for computing the permanent of a matrix is an active area of research.
Definition and naive algorithm
The permanent of an n-by-n matrix A = (ai,j) is defined as
perm
(
A
)
=
∑
σ
∈
S
n
∏
i
=
1
n
a
i
,
σ
(
i
)
.
{\displaystyle \operatorname {perm} (A)=\sum _{\sigma \in S_{n}}\prod _{i=1}^{n}a_{i,\sigma (i)}.}
The sum here extends over all elements σ of the symmetric group Sn, i.e. over all permutations of the numbers 1, 2, ..., n. This formula differs from the corresponding formula for the determinant only in that, in the determinant, each product is multiplied by the sign of the permutation σ while in this formula each product is unsigned. The formula may be directly translated into an algorithm that naively expands the formula, summing over all permutations and within the sum multiplying out each matrix entry. This requires n! n arithmetic operations.
Ryser formula
The best known general exact algorithm is due to H. J. Ryser (1963).
Ryser's method is based on an inclusion–exclusion formula that can be given as follows: Let
A
k
{\displaystyle A_{k}}
be obtained from A by deleting k columns, let
P
(
A
k
)
{\displaystyle P(A_{k})}
be the product of the row-sums of
A
k
{\displaystyle A_{k}}
, and let
Σ
k
{\displaystyle \Sigma _{k}}
be the sum of the values of
P
(
A
k
)
{\displaystyle P(A_{k})}
over all possible
A
k
{\displaystyle A_{k}}
. Then
perm
(
A
)
=
∑
k
=
0
n
−
1
(
−
1
)
k
Σ
k
.
{\displaystyle \operatorname {perm} (A)=\sum _{k=0}^{n-1}(-1)^{k}\Sigma _{k}.}
It may be rewritten in terms of the matrix entries as follows
perm
(
A
)
=
(
−
1
)
n
∑
S
⊆
{
1
,
…
,
n
}
(
−
1
)
|
S
|
∏
i
=
1
n
∑
j
∈
S
a
i
j
.
{\displaystyle \operatorname {perm} (A)=(-1)^{n}\sum _{S\subseteq \{1,\dots ,n\}}(-1)^{|S|}\prod _{i=1}^{n}\sum _{j\in S}a_{ij}.}
Ryser's formula can be evaluated using
O
(
2
n
−
1
n
2
)
{\displaystyle O(2^{n-1}n^{2})}
arithmetic operations, or
O
(
2
n
−
1
n
)
{\displaystyle O(2^{n-1}n)}
by processing the sets
S
{\displaystyle S}
in Gray code order.
Balasubramanian–Bax–Franklin–Glynn formula
Another formula that appears to be as fast as Ryser's (or perhaps even twice as fast) is to be found in the two Ph.D. theses; see (Balasubramanian 1980), (Bax 1998); also
(Bax & Franklin 1996). The methods to find the formula are quite different, being related to the combinatorics of the Muir algebra, and to finite difference theory respectively. Another way, connected with invariant theory is via the polarization identity for a symmetric tensor (Glynn 2010). The formula generalizes to infinitely many others, as found by all these authors, although it is not clear if they are any faster than the basic one. See (Glynn 2013).
The simplest known formula of this type (when the characteristic of the field is not two) is
perm
(
A
)
=
1
2
n
−
1
[
∑
δ
(
∏
k
=
1
n
δ
k
)
∏
j
=
1
n
∑
i
=
1
n
δ
i
a
i
j
]
,
{\displaystyle \operatorname {perm} (A)={\frac {1}{2^{n-1}}}\left[\sum _{\delta }\left(\prod _{k=1}^{n}\delta _{k}\right)\prod _{j=1}^{n}\sum _{i=1}^{n}\delta _{i}a_{ij}\right],}
where the outer sum is over all
2
n
−
1
{\displaystyle 2^{n-1}}
vectors
δ
=
(
δ
1
=
1
,
δ
2
,
…
,
δ
n
)
∈
{
±
1
}
n
{\displaystyle \delta =(\delta _{1}=1,\delta _{2},\dots ,\delta _{n})\in \{\pm 1\}^{n}}
.
Special cases
= Planar and K3,3-free
=The number of perfect matchings in a bipartite graph is counted by the permanent of the graph's biadjacency matrix, and the permanent of any 0-1 matrix can be interpreted in this way as the number of perfect matchings in a graph. For planar graphs (regardless of bipartiteness), the FKT algorithm computes the number of perfect matchings in polynomial time by changing the signs of a carefully chosen subset of the entries in the Tutte matrix of the graph, so that the Pfaffian of the resulting skew-symmetric matrix (the square root of its determinant) is the number of perfect matchings. This technique can be generalized to graphs that contain no subgraph homeomorphic to the complete bipartite graph K3,3.
George Pólya had asked the question of when it is possible to change the signs of some of the entries of a 01 matrix A so that the determinant of the new matrix is the permanent of A. Not all 01 matrices are "convertible" in this manner; in fact it is known (Marcus & Minc (1961)) that there is no linear map
T
{\displaystyle T}
such that
per
T
(
A
)
=
det
A
{\displaystyle \operatorname {per} T(A)=\det A}
for all
n
×
n
{\displaystyle n\times n}
matrices
A
{\displaystyle A}
. The characterization of "convertible" matrices was given by Little (1975) who showed that such matrices are precisely those that are the biadjacency matrix of bipartite graphs that have a Pfaffian orientation: an orientation of the edges such that for every even cycle
C
{\displaystyle C}
for which
G
∖
C
{\displaystyle G\setminus C}
has a perfect matching, there are an odd number of edges directed along C (and thus an odd number with the opposite orientation). It was also shown that these graphs are exactly those that do not contain a subgraph homeomorphic to
K
3
,
3
{\displaystyle K_{3,3}}
, as above.
= Computation modulo a number
=Modulo 2, the permanent is the same as the determinant, as
(
−
1
)
≡
1
(
mod
2
)
.
{\displaystyle (-1)\equiv 1{\pmod {2}}.}
It can also be computed modulo
2
k
{\displaystyle 2^{k}}
in time
O
(
n
4
k
−
3
)
{\displaystyle O(n^{4k-3})}
for
k
≥
2
{\displaystyle k\geq 2}
. However, it is UP-hard to compute the permanent modulo any number that is not a power of 2. Valiant (1979)
There are various formulae given by Glynn (2010) for the computation modulo a prime p.
First, there is one using symbolic calculations with partial derivatives.
Second, for p = 3 there is the following formula for an n×n-matrix
A
{\displaystyle A}
, involving the matrix's principal minors (Kogan (1996)):
per
(
A
)
=
(
−
1
)
n
∑
J
⊆
{
1
,
…
,
n
}
det
(
A
J
)
det
(
A
J
¯
)
,
{\displaystyle \operatorname {per} (A)=(-1)^{n}\sum _{J\subseteq \{1,\dots ,n\}}\det(A_{J})\det(A_{\bar {J}}),}
where
A
J
{\displaystyle A_{J}}
is the submatrix of
A
{\displaystyle A}
induced by the rows and columns of
A
{\displaystyle A}
indexed by
J
{\displaystyle J}
, and
J
¯
{\displaystyle {\bar {J}}}
is the complement of
J
{\displaystyle J}
in
{
1
,
…
,
n
}
{\displaystyle \{1,\dots ,n\}}
, while the determinant of the empty submatrix is defined to be 1.
The expansion above can be generalized in an arbitrary characteristic p as the following pair of dual identities:
per
(
A
)
=
(
−
1
)
n
∑
J
1
,
…
,
J
p
−
1
det
(
A
J
1
)
⋯
det
(
A
J
p
−
1
)
det
(
A
)
=
(
−
1
)
n
∑
J
1
,
…
,
J
p
−
1
per
(
A
J
1
)
⋯
per
(
A
J
p
−
1
)
{\displaystyle {\begin{aligned}\operatorname {per} (A)&=(-1)^{n}\sum _{{J_{1}},\ldots ,{J_{p-1}}}\det(A_{J_{1}})\dotsm \det(A_{J_{p-1}})\\\det(A)&=(-1)^{n}\sum _{{J_{1}},\ldots ,{J_{p-1}}}\operatorname {per} (A_{J_{1}})\dotsm \operatorname {per} (A_{J_{p-1}})\end{aligned}}}
where in both formulas the sum is taken over all the (p − 1)-tuples
J
1
,
…
,
J
p
−
1
{\displaystyle {J_{1}},\ldots ,{J_{p-1}}}
that are partitions of the set
{
1
,
…
,
n
}
{\displaystyle \{1,\dots ,n\}}
into p − 1 subsets, some of them possibly empty.
The former formula possesses an analog for the hafnian of a symmetric
A
{\displaystyle A}
and an odd p:
haf
2
(
A
)
=
(
−
1
)
n
∑
J
1
,
…
,
J
p
−
1
det
(
A
J
1
)
⋯
det
(
A
J
p
−
1
)
(
−
1
)
|
J
1
|
+
⋯
+
|
J
(
p
−
1
)
/
2
|
{\displaystyle \operatorname {haf} ^{2}(A)=(-1)^{n}\sum _{{J_{1}},\ldots ,{J_{p-1}}}\det(A_{J_{1}})\dotsm \det(A_{J_{p-1}})(-1)^{|J_{1}|+\dots +|J_{(p-1)/2}|}}
with the sum taken over the same set of indexes. Moreover, in characteristic zero a similar convolution sum expression involving both the permanent and the determinant yields the Hamiltonian cycle polynomial (defined as
ham
(
A
)
=
∑
σ
∈
H
n
∏
i
=
1
n
a
i
,
σ
(
i
)
{\textstyle \operatorname {ham} (A)=\sum _{\sigma \in H_{n}}\prod _{i=1}^{n}a_{i,\sigma (i)}}
where
H
n
{\displaystyle H_{n}}
is the set of n-permutations having only one cycle):
ham
(
A
)
=
∑
J
⊆
{
2
,
…
,
n
}
det
(
A
J
)
per
(
A
J
¯
)
(
−
1
)
|
J
|
.
{\displaystyle \operatorname {ham} (A)=\sum _{J\subseteq \{2,\dots ,n\}}\det(A_{J})\operatorname {per} (A_{\bar {J}})(-1)^{|J|}.}
In characteristic 2 the latter equality turns into
ham
(
A
)
=
∑
J
⊆
{
2
,
…
,
n
}
det
(
A
J
)
det
(
A
J
¯
)
{\displaystyle \operatorname {ham} (A)=\sum _{J\subseteq \{2,\dots ,n\}}\det(A_{J})\operatorname {det} (A_{\bar {J}})}
what therefore provides an opportunity to polynomial-time calculate the Hamiltonian cycle polynomial of any unitary
U
{\displaystyle U}
(i.e. such that
U
T
U
=
I
{\displaystyle U^{\textsf {T}}U=I}
where
I
{\displaystyle I}
is the identity n×n-matrix), because each minor of such a matrix coincides with its algebraic complement:
ham
(
U
)
=
det
2
(
U
+
I
/
1
)
{\displaystyle \operatorname {ham} (U)=\operatorname {det} ^{2}(U+I_{/1})}
where
I
/
1
{\displaystyle I_{/1}}
is the identity n×n-matrix with the entry of indexes 1,1 replaced by 0. Moreover, it may, in turn, be further generalized for a unitary n×n-matrix
U
{\displaystyle U}
as
h
a
m
K
(
U
)
=
det
2
(
U
+
I
/
K
)
{\displaystyle \operatorname {ham_{K}} (U)=\operatorname {det} ^{2}(U+I_{/K})}
where
K
{\displaystyle K}
is a subset of {1, ..., n},
I
/
K
{\displaystyle I_{/K}}
is the identity n×n-matrix with the entries of indexes k,k replaced by 0 for all k belonging to
K
{\displaystyle K}
, and we define
h
a
m
K
(
A
)
=
∑
σ
∈
H
n
(
K
)
∏
i
=
1
n
a
i
,
σ
(
i
)
{\textstyle \operatorname {ham_{K}} (A)=\sum _{\sigma \in H_{n}(K)}\prod _{i=1}^{n}a_{i,\sigma (i)}}
where
H
n
(
K
)
{\displaystyle H_{n}(K)}
is the set of n-permutations whose each cycle contains at least one element of
K
{\displaystyle K}
.
This formula also implies the following identities over fields of characteristic 3:
for any invertible
A
{\displaystyle A}
per
(
A
−
1
)
det
2
(
A
)
=
per
(
A
)
;
{\displaystyle \operatorname {per} (A^{-1})\operatorname {det} ^{2}(A)=\operatorname {per} (A);}
for any unitary
U
{\displaystyle U}
, that is, a square matrix
U
{\displaystyle U}
such that
U
T
U
=
I
{\displaystyle U^{\textsf {T}}U=I}
where
I
{\displaystyle I}
is the identity matrix of the corresponding size,
per
2
(
U
)
=
det
(
U
+
V
)
det
(
−
U
)
{\displaystyle \operatorname {per} ^{2}(U)=\det(U+V)\det(-U)}
where
V
{\displaystyle V}
is the matrix whose entries are the cubes of the corresponding entries of
U
{\displaystyle U}
.
It was also shown (Kogan (1996)) that, if we define a square matrix
A
{\displaystyle A}
as k-semi-unitary when
rank
(
A
T
A
−
I
)
=
k
{\displaystyle \operatorname {rank} (A^{\textsf {T}}A-I)=k}
, the permanent of a 1-semi-unitary matrix is computable in polynomial time over fields of characteristic 3, while for k > 1 the problem becomes #3-P-complete. (A parallel theory concerns the Hamiltonian cycle polynomial in characteristic 2: while computing it on the unitary matrices is polynomial-time feasible, the problem is #2-P-complete for the k-semi-unitary ones for any k > 0). The latter result was essentially extended in 2017 (Knezevic & Cohen (2017)) and it was proven that in characteristic 3 there is a simple formula relating the permanents of a square matrix and its partial inverse (for
A
11
{\displaystyle A_{11}}
and
A
22
{\displaystyle A_{22}}
being square,
A
11
{\displaystyle A_{11}}
being invertible):
per
(
A
11
A
12
A
21
A
22
)
=
det
2
(
A
11
)
per
(
A
11
−
1
A
11
−
1
A
12
A
21
A
11
−
1
A
22
−
A
21
A
11
−
1
A
12
)
{\displaystyle \operatorname {per} {\begin{pmatrix}A_{11}&A_{12}\\A_{21}&A_{22}\end{pmatrix}}=\operatorname {det} ^{2}(A_{11})\operatorname {per} {\begin{pmatrix}A_{11}^{-1}&A_{11}^{-1}A_{12}\\A_{21}A_{11}^{-1}&A_{22}-A_{21}A_{11}^{-1}A_{12}\end{pmatrix}}}
and it allows to polynomial-time reduce the computation of the permanent of an n×n-matrix with a subset of k or k − 1 rows expressible as linear combinations of another (disjoint) subset of k rows to the computation of the permanent of an (n − k)×(n − k)- or (n − k + 1)×(n − k + 1)-matrix correspondingly, hence having introduced a compression operator (analogical to the Gaussian modification applied for calculating the determinant) that "preserves" the permanent in characteristic 3. (Analogically, it would be worth noting that the Hamiltonian cycle polynomial in characteristic 2 does possess its invariant matrix compressions as well, taking into account the fact that ham(A) = 0 for any n×n-matrix A having three equal rows or, if n > 2, a pair of indexes i,j such that its i-th and j-th rows are identical and its i-th and j-th columns are identical too.) The closure of that operator defined as the limit of its sequential application together with the transpose transformation (utilized each time the operator leaves the matrix intact) is also an operator mapping, when applied to classes of matrices, one class to another. While the compression operator maps the class of 1-semi-unitary matrices to itself and the classes of unitary and 2-semi-unitary ones, the compression-closure of the 1-semi-unitary class (as well as the class of matrices received from unitary ones through replacing one row by an arbitrary row vector — the permanent of such a matrix is, via the Laplace expansion, the sum of the permanents of 1-semi-unitary matrices and, accordingly, polynomial-time computable) is yet unknown and tensely related to the general problem of the permanent's computational complexity in characteristic 3 and the chief question of P versus NP: as it was shown in (Knezevic & Cohen (2017)), if such a compression-closure is the set of all square matrices over a field of characteristic 3 or, at least, contains a matrix class the permanent's computation on is #3-P-complete (like the class of 2-semi-unitary matrices) then the permanent is computable in polynomial time in this characteristic.
Besides, the problem of finding and classifying any possible analogs of the permanent-preserving compressions existing in characteristic 3 for other prime characteristics was formulated (Knezevic & Cohen (2017)), while giving the following identity for an n×n matrix
A
{\displaystyle A}
and two n-vectors (having all their entries from the set {0, ..., p − 1})
α
{\displaystyle \alpha }
and
β
{\displaystyle \beta }
such that
∑
i
=
1
n
α
i
=
∑
j
=
1
n
β
j
{\textstyle {\sum _{i=1}^{n}\alpha _{i}=\sum _{j=1}^{n}\beta _{j}}}
, valid in an arbitrary prime characteristic p:
per
(
A
(
α
,
β
)
)
=
det
p
−
1
(
A
)
per
(
A
−
1
)
(
(
p
−
1
)
1
→
n
−
β
,
(
p
−
1
)
1
→
n
−
α
)
(
∏
i
=
1
n
α
i
!
)
(
∏
j
=
1
n
β
j
!
)
(
−
1
)
n
+
∑
i
=
1
n
α
i
{\displaystyle \operatorname {per} (A^{(\alpha ,\beta )})=\det ^{p-1}(A)\operatorname {per} (A^{-1})^{((p-1){\vec {1}}_{n}-\beta ,(p-1){\vec {1}}_{n}-\alpha )}\left(\prod _{i=1}^{n}\alpha _{i}!\right)\left(\prod _{j=1}^{n}\beta _{j}!\right)(-1)^{n+\sum _{i=1}^{n}\alpha _{i}}}
where for an n×m-matrix
M
{\displaystyle M}
, an n-vector
x
{\displaystyle x}
and an m-vector
y
{\displaystyle y}
, both vectors having all their entries from the set {0, ..., p − 1},
M
(
x
,
y
)
{\displaystyle M^{(x,y)}}
denotes the matrix received from
M
{\displaystyle M}
via repeating
x
i
{\displaystyle x_{i}}
times its i-th row for i = 1, ..., n and
y
j
{\displaystyle y_{j}}
times its j-th column for j = 1, ..., m (if some row's or column's multiplicity equals zero it would mean that the row or column was removed, and thus this notion is a generalization of the notion of submatrix), and
1
→
n
{\displaystyle {\vec {1}}_{n}}
denotes the n-vector all whose entries equal unity. This identity is an exact analog of the classical formula expressing a matrix's minor through a minor of its inverse and hence demonstrates (once more) a kind of duality between the determinant and the permanent as relative immanants. (Actually its own analogue for the hafnian of a symmetric
A
{\displaystyle A}
and an odd prime p is
haf
2
(
A
(
α
,
α
)
)
=
det
p
−
1
(
A
)
haf
2
(
A
−
1
)
(
(
p
−
1
)
1
→
n
−
α
,
(
p
−
1
)
1
→
n
−
α
)
(
∏
i
=
1
n
α
i
!
)
2
(
−
1
)
n
(
p
−
1
)
/
2
+
n
+
∑
i
=
1
n
α
i
{\textstyle \operatorname {haf} ^{2}(A^{(\alpha ,\alpha )})=\det ^{p-1}(A)\operatorname {haf} ^{2}(A^{-1})^{((p-1){\vec {1}}_{n}-\alpha ,(p-1){\vec {1}}_{n}-\alpha )}\left(\prod _{i=1}^{n}\alpha _{i}!\right)^{2}(-1)^{n(p-1)/2+n+\sum _{i=1}^{n}\alpha _{i}}}
).
And, as an even wider generalization for the partial inverse case in a prime characteristic p, for
A
11
{\displaystyle A_{11}}
,
A
22
{\displaystyle A_{22}}
being square,
A
11
{\displaystyle A_{11}}
being invertible and of size
n
1
{\displaystyle {n_{1}}}
x
n
1
{\displaystyle {n_{1}}}
, and
∑
i
=
1
n
α
i
=
∑
j
=
1
n
β
j
{\textstyle {\sum _{i=1}^{n}\alpha _{i}=\sum _{j=1}^{n}\beta _{j}}}
, there holds also the identity
per
(
A
11
A
12
A
21
A
22
)
(
α
,
β
)
=
det
p
−
1
(
A
11
)
per
(
A
11
−
1
A
11
−
1
A
12
A
21
A
11
−
1
A
22
−
A
21
A
11
−
1
A
12
)
(
(
p
−
1
)
1
→
n
−
β
,
(
p
−
1
)
1
→
n
−
α
)
(
∏
i
=
1
n
α
1
,
i
!
)
(
∏
j
=
1
n
β
1
,
j
!
)
(
−
1
)
n
1
+
∑
i
=
1
n
α
1
,
i
{\displaystyle \operatorname {per} {\begin{pmatrix}A_{11}&A_{12}\\A_{21}&A_{22}\end{pmatrix}}^{(\alpha ,\beta )}={\det }^{p-1}(A_{11})\operatorname {per} {\begin{pmatrix}A_{11}^{-1}&A_{11}^{-1}A_{12}\\A_{21}A_{11}^{-1}&A_{22}-A_{21}A_{11}^{-1}A_{12}\end{pmatrix}}^{((p-1){\vec {1}}_{n}-\beta ,(p-1){\vec {1}}_{n}-\alpha )}\left(\prod _{i=1}^{n}\alpha _{1,i}!\right)\left(\prod _{j=1}^{n}\beta _{1,j}!\right)(-1)^{n_{1}+\sum _{i=1}^{n}\alpha _{1,i}}}
where the common row/column multiplicity vectors
α
{\displaystyle \alpha }
and
β
{\displaystyle \beta }
for the matrix
A
{\displaystyle A}
generate the corresponding row/column multiplicity vectors
α
s
{\displaystyle \alpha _{s}}
and
β
t
{\displaystyle \beta _{t}}
, s,t = 1,2, for its blocks (the same concerns
A
{\displaystyle A}
's partial inverse in the equality's right side).
Approximate computation
When the entries of A are nonnegative, the permanent can be computed approximately in probabilistic polynomial time, up to an error of εM, where M is the value of the permanent and ε > 0 is arbitrary. In other words, there exists a fully polynomial-time randomized approximation scheme (FPRAS) (Jerrum, Sinclair & Vigoda (2001)).
The most difficult step in the computation is the construction of an algorithm to sample almost uniformly from the set of all perfect matchings in a given bipartite graph: in other words, a fully polynomial almost uniform sampler (FPAUS). This can be done using a Markov chain Monte Carlo algorithm that uses a Metropolis rule to define and run a Markov chain whose distribution is close to uniform, and whose mixing time is polynomial.
It is possible to approximately count the number of perfect matchings in a graph via the self-reducibility of the permanent, by using the FPAUS in combination with a well-known reduction from sampling to counting due to Jerrum, Valiant & Vazirani (1986). Let
M
(
G
)
{\displaystyle M(G)}
denote the number of perfect matchings in
G
{\displaystyle G}
. Roughly, for any particular edge
e
{\displaystyle e}
in
G
{\displaystyle G}
, by sampling many matchings in
G
{\displaystyle G}
and counting how many of them are matchings in
G
∖
e
{\displaystyle G\setminus e}
, one can obtain an estimate of the ratio
ρ
=
M
(
G
)
M
(
G
∖
e
)
{\textstyle \rho ={\frac {M(G)}{M(G\setminus e)}}}
. The number
M
(
G
)
{\displaystyle M(G)}
is then
ρ
M
(
G
∖
e
)
{\displaystyle \rho M(G\setminus e)}
, where
M
(
G
∖
e
)
{\displaystyle M(G\setminus e)}
can be approximated by applying the same method recursively.
Another class of matrices for which the permanent is of particular interest, is the positive-semidefinite matrices. Using a technique of Stockmeyer counting, they can be computed within the class
BPP
NP
{\displaystyle {\textsf {BPP}}^{\textsf {NP}}}
, but this is considered an infeasible class in general. It is NP-hard to approximate permanents of PSD matrices within a subexponential factor, and it is conjectured to be
BPP
NP
{\displaystyle {\textsf {BPP}}^{\textsf {NP}}}
-hard If further constraints on the spectrum are imposed, there are more efficient algorithms known. One randomized algorithm is based on the model of boson sampling and it uses the tools proper to quantum optics, to represent the permanent of positive-semidefinite matrices as the expected value of a specific random variable. The latter is then approximated by its sample mean. This algorithm, for a certain set of positive-semidefinite matrices, approximates their permanent in polynomial time up to an additive error, which is more reliable than that of the standard classical polynomial-time algorithm by Gurvits.
Notes
References
Further reading
Barvinok, A. (2017), "Approximating permanents and hafnians", Discrete Analysis, arXiv:1601.07518, doi:10.19086/da.1244, S2CID 397350.
Kata Kunci Pencarian:
- Steve Jobs
- IBM
- Privasi internet
- Mata uang kripto
- Rantai blok
- Teori ras kritis
- Computing the permanent
- Permanent (mathematics)
- ♯P-completeness of 01-permanent
- Perfect matching
- Hamiltonian path
- ♯P
- Distributed computing
- Matching (graph theory)
- Geometric complexity theory
- ♯P-complete