Chip-Firing Games On Graphs: A. BJ Orner
Chip-Firing Games On Graphs: A. BJ Orner
A. Björner
Department of Mathematics, Royal Institute of Technology,
S-10044 Stockholm, Sweden
L. Lovász
Department of Computer Science, Eötvös Loránd University,
Budapest, Hungary H-1088, and
Department of Computer Science, Princeton University,
Princeton, NJ 08544
P. W. Shor
AT&T Bell Laboratories, Murray Hill, NJ 07974
Abstract
1
erties”. These properties are extensions of exchange properties of greedoids
and, more specifically, of antimatroids, to languages that allow repetition.
We shall pursue this second approach because it will yield a more thorough
understanding of the structure of feasible games. Among others, it follows
that the positions that can be reached from a given beginning position form a
locally free semimodular lattice. (For more on connections between greedoids
and Church-Rosser systems, see also Faigle, Goecke and Schrader (1987)). A
third way of putting this game in a more general context is to view it as a
Petri net. (For an introduction to Petri nets, see Reisig (1985)). Although
we have not been able to use this connection, it is possible that it could also
contribute to understanding the game.
Our main concern will be to study the finiteness of the procedure. It is
clear that if the number of chips, N , is more than 2 · |E(G)| − |V (G)| then
the procedure cannot terminate: with so many chips, one node will have at
least as many as its degree. If N ≤ 2 · |E(G)| − |V (G)| then clearly we can
have a terminating position. We shall prove that if the number of chips is
less than |E(G)| then the game always terminates; while if |E(G)| ≤ N ≤
2 · |E(G)| − |V (G)| then the game may or may not terminate, depending on
the original configuration of the chips (both possibilities occurring for every
graph and every number of chips in this range).
Our proof gives a rather poor (exponential) bound on the number of steps
in which the procedure terminates (if it terminates at all). G. Tardos (1987)
proved that if the procedure terminates than it terminates in O(|V (G)|4 )
steps. In section 3, we relate the chip-firing game to the eigenvalues of the
Laplace matrix of the graph. This approach yields a bound on the length
of this procedure in terms of the smallest positive eigenvalue of the Laplace
matrix. This bound is, in terms of the number of nodes of the graph, weaker
then the bound given by Tardos, but if the least positive eigenvalue of the
Laplace matrix is not too small (the graph has good expanding properties),
then it may be better.
2
1 The chip firing game and greedoids with
repetition
Let us fix a connected graph G (without loops or multiple edges) on node
set 1, . . . , n, and start by putting ai chips on node i, i = 1, . . . , n. So a ∈ Z+n
P
and i ai = N . Recall that firing the node i means that we decrease ai by
the degree deg(i) of node i, and increase aj by 1 for each neighbor j of i.
Formally, we can define the vector wi by
deg(i),
if j = i,
(wi )j = −1, if ij ∈ E(G),
0, otherwise.
Then firing i means subtracting wi from a; this step is legal if a − wi ≥ 0.
A position in the game is any distribution of the chips on the graph,
P
i.e., any vector b ∈ Z+n such that i bi = N . A legal game is any sequence
of positions, starting with a, such that each position is obtained from the
previous by legal step.
Let us record the order in which the nodes are fired in a game; this gives
us a word formed from the nodes as letters. Let L denote the set of records of
all legal games. We shall show that L has special exchange properties which
imply that if it is finite then it is an “antimatroid with repetition” (see below
for definition). This will yield the following theorem:
Let E be a finite set and L, a language over E, i.e., a set of finite strings
formed from the elements of E. A subword of a word α is obtained by deleting
letters from α arbitrarily (so a subword need not consist of consecutive letters
of α). We denote by |α| the length of the word α, and by [α], the “score” of
the word α, i.e., the vector in Z+n defined by
[α]i = k, if i occurs k times in α.
For two vectors u, v ∈ Rn , we shall denote by u ∨ v their (coordinate-wise)
maximum and by u ∧ v, their coordinate-wise minimum. We shall denote by
|u|1 the l1 -norm (sum of absolute values of entries) of the vector u.
3
We say that the language L is left-hereditary, or briefly hereditary, if
whenever a string belongs to it, every beginning section of this string also
belongs to it. We say that L is locally free if the following holds:
It will be easy to verify that the records of legal games have these proper-
ties. On the other hand, just these properties of a language have quite strong
implications. The key to these is the following “strong” exchange property:
This last property is a very strong version of the greedoid exchange prop-
erty:
(GE) If α, β ∈ L and |β| < |α| then there exists a letter x in α such that
βx ∈ L.
If L is simple, i.e., no word in L contains the same letter more than once,
then (GE) defines greedoids (among all left-hereditary languages). Since this
case does not concern us in this paper, we refer the reader to Korte and
Lovász (1983) for other definitions of greedoids and some basic examples and
properties. In the case of simple languages, (SE) defines a special class of
greedoids, called antimatroids. Antimatroids were introduced by Edelman
(1980) and Jamison (1982) as closure operations abstracting the combina-
torial properties of convexity and (equivalently) as locally free semimodular
lattices; as special left-hereditary languages they were characterized by Korte
and Lovász (1984). The characterization as left-hereditary simple languages
with the strong exchange property was given by Björner (1985). So the
languages considered in this paper may be viewed as “antimatroids with rep-
etition”. Björner (1985) and Björner and Ziegler (1987) extended the notion
of greedoids to languages with repeated letters. We refer to the latter for a
4
discussion of other related exchange properties.
5
this equivalence relation are called f lats. We say that a flat f is a subflat of
flat g, if every word in f can be extended to a word in g. Note that it would
be enough to require this for a single word in f : if α ∈ f and αγ ∈ g, and
β is equivalent to α, then βγ is in L by the definition of equivalence, and
βγ is trivially equivalent to αγ. For a study of flats in general greedoids, see
Björner (1985), Crapo (1984), and Björner, Korte and Lovász (1985).
We show now that the flats of a left-hereditary language with the strong
exchange property have a particularly simple structure:
Proof. Assume that [α] ≤ [β]. Then by the strong exchange property,
there exists a word γ such that αγ ∈ L and [αγ] = [β]. By permutability,
αγ belongs to the same flat as β, and so α belongs to a subflat of this.
Conversely, assume that α defines a subflat of the flat defined by β, and
let αγ be an extension of α in this flat. Let αγδ be an extension to a basic
word. Then βδ is also in the language, and is clearly also basic. But then,
as remarked, [αγδ] = [βδ] and hence [α] ≤ [β].
So the flats of such a language can be identified with the scores of words.
These scores are partially ordered (by the coordinate-wise ordering) and form
a lattice (since by the strong exchange property, the coordinate-wise maxi-
mum of two scores is again a score). It follows easily from the local freeness
of the language that this lattice is locally free (i.e., the interval from any lat-
tice element x to the join of all elements covering x is a boolean algebra; see
Edelman (1980) and Crapo (1984)). This property implies that the lattice is
semimodular (i.e., if x covers x ∧ y then x ∨ y covers y). The lattice rank of
a score vector equals its l1 -norm.
Now we apply these general results to the language of legal games on a
given graph, starting from a given position.
1.4 Lemma. The records of legal games form a locally free permutable
left-hereditary language.
6
Proof. It is trivial that this language is left-hereditary. To check property
(LF), note that if node y can be fired after the game α, i.e., it has enough
chips on it, then this remains true after the firing of node x, (this can only
increase the number of chips on y), i.e., αxy is a legal game. To show that
the language is permutable, note that if the games α and β have the same
score then they lead to the same position, and hence any legal continuation
of one is also a legal continuation of the other.
1.5 Lemma. Suppose the language of legal games is of finite rank. Then
two legal games lead to the same position if and only if they have the same
score. (Hence, the positions in the game can be identified with the flats of
the language.)
Proof. Let α and β lead to the same position. Then they have the same
continuations, and hence α ∼ β. By Lemma 1.3, this implies that [α] = [β].
Conversely, if [α] = [β] then, as already used, they lead to the same position.
1.6 Remark. The argument of Lemma 1.4 carries over to the following
more general “game”: let Ax ≤ b (b ≥ 0) define a non-empty polyhedron P
in Rd . Let E be any finite set of vectors in Rd with the property that for each
row vector a of A, at most one of the inner products ax (x ∈ E) is positive.
Consider the language of those sequences x1 x2 . . . xn , xi ∈ E, which satisfy
x1 + . . . + xj ∈ P for all 1 ≤ j ≤ n. Then this language is left-hereditary,
locally free and permutable.
7
2 The finiteness of the game
In this section we study the question of which chip firing games are infinite
and which are finite. Let G be a connected graph with n nodes and m edges,
and let us have N chips. We start with a simple lemma.
Let us contrast this with the following fact proved by G. Tardos (1987):
The main result in this section relates the finiteness of the game to the
number of chips.
2.3 Theorem.
(a) If N > 2m − n then the game is infinite.
8
(c) If N < m then the game is finite.
We say that a node u is deficient if f (u) < deg+ (u); by our hypothesis that
N < m, there must exist a deficient node. We are going to show that we
can modify the orientation during the game so that T never increases and
if the set of deficient nodes changes then T must actually decrease. If the
game is infinite then every node gets fired infinitely often, and hence the set
of deficient nodes must change infinitely often (since a deficient node cannot
be fired). Since T cannot decrease infinitely often, this implies that the game
is finite.
Consider the node v that is first fired; we have f (v) ≥ deg(v). Fire v
and reverse the orientation of all edges leaving v. We do not create any
9
cycle. Moreover, we do not increase T since the term in T corresponding to
v decreases by deg(v) − deg+ (v) while each of the deg(v) − deg+ (v) terms
corresponding to the nodes u for which uv ∈ E(G) increases by at most 1.
Also note that if such a node u was deficient then T actually decreases; if
none of these was deficient then the set of deficient nodes did not change. As
remarked, this proves the theorem.
10
is easily seen by expressing the corresponding quadratic form as a sum of
squares: X
xT Lx = (xi − xj )2 .
ij∈E(G)
λ1 = wT Lw
X k−1
X
= (wi − wj )2 ≥ (wi − wi+1 )2
ij∈E(G) i=1
k−1
X
1
≥ ( (wi − wi+1 ))2
k − 1 i=1
1 1 1
= (w1 − wk )2 ≥ ≥ .
k−1 (k − 1)n nd
11
Let us return to the chip firing game. We prove the following bound on
the length of the game:
Proof. Assume that we started with ai chips on node i and after a total
of s steps, we have bi chips on node i. Let xi denote the number of times
node i was fired. By the lemma of Tardos mentioned in the previous section,
if the game is finite then there is a node, say node n, such that xn = 0.
Straightforward counting yields the formula
Lx = a − b.
n−1
X
0 1
LL= vi viT = I − vn vnT = I − J,
i=1 n
where I is the identity matrix and J is the all-1 matrix (since {v1 , . . . , vn } is
an orthonormal basis). Hence
1 T
eTn L0 L = eTn − 1 ,
n
and
s = 1T x = (neTn − neTn L0 L)x = −neTn L0 Lx
12
n−1
X n T
= −neTn L0 (a − b) = − (e vi )(viT (a − b)).
i=1 λi n
n n−1
X
s ≤ |eT vi | · |viT (a − b)|
λ1 i=1 n
v v
u
n−1 u
nu X un−1
X
≤ t (eTn vi )2 t (viT (a − b))2
λ1 i=1 i=1
n 2nN
≤ |a − b| ≤ .
λ1 λ1
Using Lemma 3.1, we get that s < 2n2 dN < 2n3 N . This is slightly worse
than the result of Tardos mentioned in the Introduction, since N may be as
large as Ω(n2 ). On the other hand, for “expanding” graphs λ1 is bounded
from below by a constant, so in this case our bound is tighter.
13
References
14
W. Reisig (1985), Petri Nets: An Introduction, Springer-Verlag, New York.
15