cs.DS — Data Structures and Algorithms
Comment on “Counting over non-planar graphs”: A Counterexample and Corrections to the Generalized Pfaffian Algorithm
In ``Counting over non-planar graphs'' (\emph{Physica A} \textbf{302} (2001) 100--109), R.~Zecchina describes a six-step generalized Pfaffian algorithm for counting perfect matchings (and evaluating Ising partition functions and permanents) on graphs embedded on an orientable surface of genus~ in time. While the underlying Pfaffian-sum method is mathematically sound, the algorithm \emph{as stated} in that paper is incomplete and produces incorrect answers. We exhibit a minimal -vertex counterexample on the torus () that can be checked entirely by hand, identify the exact errors and omissions in the paper, state the minimal corrected algorithm, and walk through the counterexample with the fixed algorithm to recover the exact count of perfect matchings.