Skip to content

Efficient algorithms for uniformly sampling four- and five-colorings of grid regions

Jacob Platnick, Dana Randall

cs.DS

Abstract

A proper qq-coloring of a graph assigns one of qq colors to each vertex so that adjacent vertices receive different colors, corresponding to the zero-temperature antiferromagnetic Potts model from statistical physics. On rectangular square-grid regions with free boundary, Glauber dynamics is known to mix rapidly for three colors and for every q≥6q\ge 6, while the cases q=4q=4 and q=5q=5 have remained open for about two decades. We give efficient algorithms for both, using a different method for each. For four colors we give a fully polynomial randomized approximation scheme (FPRAS) for the number of proper four-colorings of an arbitrary bipartite planar graph, and an efficient sampling algorithm. The class contains every finite subgraph of Z2\mathbb{Z}^2: rectangular grids and grid domains with or without holes. On a simple graph with NN vertices, the counting algorithm achieves relative error δδ in time O(N13δ−2log⁡2(2N/δ))O(N^{13}δ^{-2}\log^2(2N/δ)). The algorithm does not run a Markov chain on colorings directly. We use Rys' spin representation to show that the number of four-colorings equals 2N−M2^{N-M} times the partition function of a six-vertex model with weights (2,1,1)(2,1,1) on the medial graph, where MM is the number of edges, and we approximate this partition function with the recent FPRAS of Chen and Liu for counting the common bases of two matroids. For five colors we show that Glauber dynamics itself is rapidly mixing on rectangular grid regions. On an h×wh\times w rectangle with free boundary, a heat bath that resamples two adjacent rows at a time mixes in O(slog⁡(n/ε))O(s\log(n/\varepsilon)) updates, where n=hwn=hw and ss is the shorter side, and Glauber dynamics has inverse spectral gap O(ns3)O(ns^3). The analysis rests on a coupling estimate for two-row strips that was checked by an integer verifier.

Create a lesson

Metadata

Categories
cs.DS, math.CO
Comments
21 pages, 3 figures