
computation of the Ising partition function or, more
in general, of the weighted matching polynomial, is
the root problem of lattice statistics.
For planar graphs like, for example, two-dimensional
regular lattices, counting problems can often be
solved by a variety of different methods, for
example, transfer matrices and Pfaffians, which
require a number of operations which are poly-
nomial in the number of vertices.
The complexity of the counting problems changes
if one considers nonplanar graphs, that is, graphs
with a nontrivial topological genus. In discrete
mathematics, such problems are classified as
#P-complete, meaning that the existence of an
exact polynomial algorithm for the evaluation of the
generating functions would imply the polynomial
solvability of many known counting combinatorial
problems, the most famous one being the evaluation of
the permanent of 0–1 matrices. In statistical mechanics
and mathematical chemistry, the interest in nonplanar
lattices is obviously related to their D > 2character:
the three-dimensional cubic lattice is nothing but a
nonplanar graph of topological genus g = 1 þ N=4,
where N is the number of sites.
The planar two-dimensional Ising model was solved
in 1944 by Onsager using the algebraic transfer matrix
method. Successively, alternative exact solutions have
been proposed which resorted to simple combinatorial
and geometrical reasoning. As is well known, the
underlying idea of the combinatorial methods consists
in recasting the sum over spin configurations of the
Boltzmann weights as a sum over closed curves (loops)
weighted by the activity of their bonds. Double
counting is avoided by a proper cancellation mechan-
ism which takes care of the different intrinsic
topologies of loops which give rise to the same
contribution in the partition function. Such an
approach has been developed first by Kac and Ward
(1952) and provides a direct way of taking the field
theoretic continuum limit. In D > 2, the general-
ization of the above method encounters enormous
difficulties due to the variety of intrinsic topologies of
surfaces immersed in D > 2lattices.
Another combinatorial method proposed in the
1960s by Kasteleyn is the so-called Pfaffian method.
It consists in writing the weighted sum over loops as
a dimer covering or prefect matching generating
function. Once the relationship between loop count-
ing and dimer coverings (or perfect matchings) over
a suitably decorated and properly oriented lattice is
established, the Pfaffian method turns out to be a
simple technique for the derivation of exact solu-
tions or for the definition of polynomial algor ithms
over planar lattices which are applicable also to the
two-dimensional Ising spin glass.
The generalization of the Pfaffian construction to
the nonplanar case must deal with the ambiguity of
orienting the homology cycles of the graph. Such a
problem can be formally solved in full generality for
any orientable lattice and leads to an expression of
the Ising partition function or the dimer coverings
generating function given as a sum over all possible
inequivalent orientations of the lattice (or its embed-
ding surface): for a graph of genus g, the homology
basis is composed of 2g cycles and, therefore, there
are 2
2g
inequivalent orientations. It is only for graphs
of logarithmic genus that the generalized Pfaffian
formalism provides a polynomial algorithm.
Counting perfect matchings can be thought of as
the problem of evaluating the permanent of 0–1
matrices over properly constructed bipartite graphs,
which is among the oldest and most famous
#P-complete problems.
The Pfaffian formalism when applied to the perma-
nent problem leads to a simple general result, that is, it
provides a general formula for writing the permanent
of a matrix in terms of a number of determinants which
is exponential in the genus of the underlying graph.
See also: Combinatorics: Overview; Determinantal
Random Fields; Dimer Problems; Phase Transitions in
Continuous Systems; Spin Glasses; Two-Dimensional
Ising Model.
Further Reading
Achlioptas D, Naor A, and Peres Y (2005) Rigorous location of
phase transitions in hard optimization problems. Nature 435:
759–764.
Ajtai N (1996) Generating hard instances of lattice problems.
Electronic Colloquium on Computational Complexity
(ECCC) 7: 3.
Braunstein A, Me´zard M, and Zecchina R (2005) Survey
Propagation: an Algorithm for Satisfiability. Random Struc-
tures and Algorithms 27: 201–226.
Cocco S and Monasson R (2004) Heuristic average-case analysis
of the backtrack resolution of random 3-satisfiability
instances. Theoretical Computer Science A 320: 345.
Distler J (1992) A note on the 3D Ising model as a string theory.
Nuclear Physics B 388: 648.
Dubois O, Monasson R, Selman B, and Zecchina R (eds.) (2001)
NP-hardness and Phase transitions (Special Issue), Theoretical
Computer Science, vol. 265 (1–2). Elsevier.
Friedgut E (1999) Sharp threshold of graph properties, and the
KSat problem. Journal of American Mathematical Society 12:
1017–1054.
Jerrum M and Sinclair A (1989) Approximating the permanent.
SIAM Journal on Computing 18: 1149.
Lova´sz L and Plummer MD (1986) Matching Theory. North-
Holland Mathematics Studies 121, Annals of Discrete Mathe-
matics (29). New York: North-Holland.
Me´zard M, Mora T, and Zecchina R (2005) Clustering of
solutions in the random satisfiability problem. Physics Review
Letters 94: 197205.
54 Statistical Mechanics and Combinatorial Problems