Counting Perfect Matchings as Fast as Ryser
Abstract
We show that there is a polynomial space algorithm that counts the number of perfect matchings in an -vertex graph in time. ( suppresses functions polylogarithmic in ).The previously fastest algorithms for the problem was the exponential space time algorithm by Koivisto, and for polynomial space, the time algorithm by Nederlof. Our new algorithm's runtime matches up to polynomial factors that of Ryser's 1963 algorithm for bipartite graphs. We present our algorithm in the more general setting of computing the hafnian over an arbitrary ring, analogously to Ryser's algorithm for permanent computation. We also give a simple argument why the general exact set cover counting problem over a slightly superpolynomial sized family of subsets of an element ground set cannot be solved in time for any unless there are time algorithms for computing an 0/1 matrix permanent, for some depending only on .
Cite
@article{arxiv.1107.4466,
title = {Counting Perfect Matchings as Fast as Ryser},
author = {Andreas Björklund},
journal= {arXiv preprint arXiv:1107.4466},
year = {2011}
}
Comments
To appear at SIAM-ACM SODA 2012