WorksComputer Science
A 2.05-Approximation for Unit Disk Graph Coloring
Abstract
The best known approximation ratio for coloring unit disk graphs has been since the early 1990s. It comes from a left-to-right sweep, in which the earlier neighbors of a vertex are covered by three cliques. We give a randomized polynomial-time algorithm that, given the points, colors every unit disk graph with at most colors. The algorithm first approximately solves the LP for the fractional chromatic number . If is large, it samples color classes from the LP solution independently in each cell of a coarse grid and colors the remaining vertices with the sweep, reusing a sampled color whenever no neighbor has it. This refines the Round-and-Approx scheme of Bansal, Caprara, and Sviridenko; the new ingredient is locality: a bounded-differences inequality combined with the constructive Lovász Local Lemma controls all residual cliques simultaneously. If is small, then so is the clique number, and dynamic programming provides good approximations. Our techniques also improve the best known approximation ratios for intersection graphs of translates of a convex polygon, from to , and for unit square graphs, from to .
Funding Kunal Dutta: Supported by the Polish NCN Opus grant nr. 2023/51/B/ST6/02989
Introduction
A unit disk graph has a vertex for each of the points of a finite set and an edge between two points at Euclidean distance at most 1; equivalently, it is the intersection graph of closed disks of diameter 1. A unit square graph is defined in the same way with the distance, and is the intersection graph of closed axis-parallel unit squares.
We recall the few graph notions we need. A (proper) coloring assigns a color to every vertex so that adjacent vertices receive distinct colors, that is, intersecting disks or squares get distinct colors; the chromatic number is the minimum number of colors. A clique is a set of pairwise adjacent vertices (pairwise intersecting objects), and the clique number is the size of a largest clique. An independent set is a set of pairwise non-adjacent vertices (pairwise disjoint objects), and is the size of a largest one. The vertices of a clique need distinct colors and every color class is an independent set, so and . An algorithm is a -approximation if it always uses at most colors. We use the real RAM model of computation.
Coloring these graphs models frequency assignment and has been studied at least since 1990 [5]. Deciding -colorability is NP-complete for unit disk graphs for every fixed [5, 12], and likewise for unit square graphs [4]. Hence neither class admits a -approximation unless P = NP.
The factors 3 and 2. Sort the points by -coordinate and color greedily (first-fit) in that order. When a vertex is colored, its already colored neighbors lie in the left half of the unit disk around . This half-disk is the union of three closed sectors, each of diameter 1, so each sector together with induces a clique. Hence at most earlier neighbors exist, and the sweep uses at most colors. Since , this is a 3-approximation, which goes back to Peeters [29] (see also [23, 12]). For unit squares the left half of the neighborhood is a rectangle, the union of two unit squares, which gives the bound of Perepelitsa [30] and a 2-approximation.
Both factors can also be obtained by strip decompositions. The STRIPE algorithm of Gräf, Stumpf, and Weißenfels [12] partitions the points into vertical stripes of width at most . The disks in one stripe form a cocomparability graph, the complement of a graph with a transitive orientation, and such graphs can be colored optimally in polynomial time; the stripe colorings are then combined by a matching technique, with performance ratio 3. The squares centered in a horizontal strip of height 1 intersect exactly when their -coordinates differ by at most 1, so they form a unit interval graph, the intersection graph of unit intervals on a line. Such graphs are perfect: holds for them and for all their induced subgraphs, and they can be colored optimally by sorting. Strips two apart contain no adjacent pairs, so alternating palettes on strips of odd and even index use at most colors, as in a sum-coloring algorithm [3]. Neither approach goes below the factor of the sweep. We are not aware of any improvement of the ratio 3 since 1991, and improving the constant in is a longstanding open problem [12, 10]. The literature on unit square graphs is thinner [7, 4], and we are not aware of any algorithm with a ratio below 2.
Any analysis that compares the number of colors with runs into the open question of how large can be. For unit disk graphs it is known only that [22, 29]. Moreover, the degeneracy (the largest such that some subgraph has all degrees at least ; greedy coloring in a suitable order uses at most colors) can be as large as [19]. For unit square graphs always [30], while the published lower bound for large is [7, 4], which we raise to in § 6. An algorithm analyzed against that beats the factor 3 would improve the constant in , so we compare instead with a lower bound on that is stronger than and computable in polynomial time: the fractional chromatic number.
The fractional chromatic number is the optimum of the linear-programming relaxation of coloring: put a nonnegative weight on every independent set so that the sets containing each vertex have total weight at least 1, and minimize the total weight. A coloring is such a weighting with weights 0 and 1, and a clique meets each independent set at most once, so , and for unit disk graphs [11]. The weighted version of is NP-hard on unit disk graphs, and can be solved by the ellipsoid method; it is as hard as maximum-weight independent set [13, 16]. A 2-approximation for of unit disk graphs is known [24], and Jansen [16] showed that the weighted version has a PTAS whenever maximum-weight independent set does; Erlebach, Jansen, and Seidel [9] gave such a PTAS for disks and for squares. (Lemma 9 gives a short direct algorithm for the unweighted case.)
Our results. Our main result improves the factor 3 for disks.
Theorem 1. There is a randomized algorithm with expected polynomial running time that, given a unit disk graph by its points, outputs a proper coloring of with at most colors.
We also prove a bound in terms of , at the cost of an additive constant.
Theorem 2. There is a constant and a randomized algorithm with expected polynomial running time that, given a unit disk graph by its points, outputs a proper coloring of with at most colors.
The proof has three parts: rounding an approximately optimal fractional coloring, reusing its colors, and coloring graphs of bounded clique number. The first part draws color classes of the fractional coloring and colors the vertices they do not cover with the sweep, using new colors. This gives colors for every (Lemma 17). The second part lets a remaining vertex take, when possible, a color of the rounding that none of its neighbors received. The number of such colors is controlled by the same Local Lemma argument, using that the neighborhood of a vertex contains at most 5 pairwise non-adjacent vertices. This lowers the constant from to 2.04822 and proves Theorem 2 (§ 5). The third part removes the additive constant , which is a small fraction of once is large, so it matters only when , and hence , is below a constant. Then, within a vertical slab of width 1 sorted by , each point is adjacent only to points a bounded number of positions away, so dynamic programming colors each slab optimally, and two alternating palettes give at most colors (Lemma 19). Since , running the appropriate algorithm in each case proves Theorem 1 (§ 5). Without reuse, the same argument colors every unit disk graph with at most colors (Lemma 20), which is already a 2.1-approximation since . The thresholds are large: with our bounds, the rounding beats the sweep for disks only for above about 100 and reuse beats only above about , and below such thresholds the guarantee comes from Lemma 19, whose running time is exponential in the threshold. With the constants of Theorem 1, the LP of Lemma 9 has up to about variables and Lemma 19 is used for up to about ; we did not try to improve the degree of the polynomial.
Other classes. The rounding and the slabs work for every -sweepable class (Definition 5, Lemmas 17 and 20, and Theorem 26), which captures exactly the geometry used by the sweep: without reuse the constant is in place of , and the bound holds if . Unit disk graphs are 3-sweepable. Intersection graphs of translates of a convex polygon are 3-sweepable as well, with at most 5 pairwise non-adjacent neighbors per vertex (§ 4.1 and § 5), which gives Theorem 3. For these graphs, Kim, Kostochka, and Nakprasit [19] proved by a sweep.
Theorem 3. There is a randomized algorithm with expected polynomial running time that, given a convex polygon and the translation vectors of the intersection graph of its translates, outputs a proper coloring of with at most 2.0483 colors. There is also such an algorithm that uses at most 2.0483 colors, where is a constant.
Unit square graphs are 2-sweepable, but for them the bound of the slabs is no better than the sweep. Section 6 lets consecutive slabs overlap and turns the coloring of one slab into that of the next, starting in the overlap and proceeding one strip of width 1 at a time, which uses at most colors when is bounded.
Theorem 4. There is a randomized algorithm with expected polynomial running time that, given a unit square graph by its points, outputs a proper coloring of with at most 1.6796 colors. There is also such an algorithm that uses at most 1.6796 colors, where is a constant.
Fractional versus integral chromatic number. Theorems 2–4 show that is asymptotically at most 2.0483 for unit disk graphs and for translates of a convex polygon, and 1.6796 for unit square graphs. We do not know whether is asymptotically larger than 1. For small it is: every odd cycle is both a unit disk graph and a unit square graph, with and . The ratio is for and tends to as . So a bound with needs an additive constant. The graph in Figure 1, which is both a unit disk graph and a unit square graph, shows that the additive gap can reach 1. We do not know whether can exceed 1 in these classes; such a graph would need . If in these classes, then tends to 1, and the factors of Theorems 2 and 4 are a limitation of the rounding and not of the fractional coloring. It is then natural to ask for an algorithm that uses colors.
Figure 1. A graph with and : (a) disks of diameter 1, (b) the graph on the disk centers, (c) unit squares; colors show a 5-coloring, and some adjacent disks and squares only touch. Numbering the vertices 0, , 14 as below, the sets , , , , , , , are independent and cover each vertex twice. Disk centers : (0, 7), (0, 10), (1, 9), (2, 7), (4, 13), (5, 5), (6, 11), (7, 3), (7, 6), (8, 10), (10, 3), (10, 9), (13, 3), (13, 9), (15, 6). Square centers : (0, 13), (0, 20), (2, 16), (4, 13), (7, 22), (7, 9), (10, 18), (6, 3), (11, 10), (15, 14), (12, 4), (17, 12), (13, 0), (21, 7), (20, 4).
Technique and related work. Sampling from an LP solution and finishing the rest with a -approximation is the Round-and-Approx framework of Bansal, Caprara, and Sviridenko [2], who applied it to two-dimensional vector bin packing. There a union bound over a few global quantities suffices. For coloring, all local cliques must be controlled at once, and a union bound over them requires , the regime of an algorithm for circular-arc coloring [20]. We avoid this by sampling independently in each cell of a grid, so that the Lovász Local Lemma [8], in the algorithmic form of Moser and Tardos [28], applies with a dependency degree independent of . Rounding controlled by the Local Lemma is classical for column-sparse integer programs [21, 31] and for edge coloring of multigraphs [17, 27]; here the geometry supplies the sparsity. Reusing colors of the rounding for the remaining vertices lowers the constants, because the neighborhood of a vertex contains few pairwise non-adjacent vertices. Graphs with small are colored with slabs, as in the strip decompositions of [12, 3], except that bounded clique number lets dynamic programming color each slab optimally; for unit squares, overlapping slabs replace the two alternating palettes.
Fractional colorings of random geometric graphs have been rounded locally [26], by solving the coloring LP on blocks of a grid much as the proof of Lemma 9 does, but that bound compares with of a graph with a larger distance threshold. Localized random independent sets also motivate a derandomized argument for distributed coloring of unit disk graphs [10].
Organization. Section 2 defines -sweepable classes, shows that unit disk and unit square graphs are 3- and 2-sweepable, and collects the tools we use: the sweep, shifted tilings, the fractional coloring LP, bounded differences, and the Moser–Tardos algorithm. Section 3 rounds the fractional coloring and proves the bound (Lemma 17). Section 4 handles bounded clique number and gives the 2.1-approximation (Lemma 20) for unit disk graphs and for translates of a convex polygon, which Section 4.1 shows to be 3-sweepable. Section 5 reuses colors, improves the leading constants, and proves Theorems 1 and 2. Section 6 treats unit square graphs: it colors them with overlapping slabs when is bounded (Lemma 28), proves Theorem 4, and gives the lower bound on .
Preliminaries
All graphs are finite and simple. Points of may coincide, so is a multiset, and ties in the lexicographic order are broken arbitrarily. For a graph , , , and denote the clique number, the chromatic number, and the family of independent sets. A fractional coloring of is a vector with for every vertex . Its value is , and is the minimum value. Every clique meets every independent set in at most one vertex, so . For we write .
Definition 5 (-sweepable). Let be an integer. A class of graphs whose vertices are points of is -sweepable if every satisfies:
(S1) if then ;
(S2) every with is a clique of ;
(S3) there is a linear order on and, for every , sets such that , , is a clique of , and every neighbor of lies in . The order and membership in can be computed in polynomial time.
The conditions are inherited by induced subgraphs: for , the graph satisfies (S1)–(S3) with the restricted order and the same sets . Condition (S3) alone implies that is -simplicial [18, 33], which already bounds first-fit in the order by colors; (S1), (S2), and the sets add the locality that the rounding needs.
Lemma 6. Unit disk graphs are 3-sweepable and unit square graphs are 2-sweepable.
Proof. Let be the lexicographic order on . (S1): in both classes adjacent points are at Euclidean or distance at most 1, so their distance is at most 1. (S2): two points of a set of -diameter at most are at Euclidean distance at most , so they are adjacent in both classes.
(S3) for squares: every neighbor has and , so it lies in or . Both are closed unit squares containing (Figure 2(b)), and points in a closed unit square are pairwise at distance at most 1, so they form a clique.
(S3) for disks: every neighbor lies in the closed left half-disk . If then , so lies on the downward ray. Let be the closed sectors of radius 1 with apex spanning the directions , , and . They cover the closed left half-disk, including both boundary rays (Figure 2(c)). A closed sector of radius 1 has Euclidean diameter exactly 1, so its points form a clique, and its -diameter is at most its Euclidean diameter. Membership is decided without square roots, since for with the rays at and are where .
Lemma 7 (the sweep). Let belong to a -sweepable class and let . First-fit on in the order is a proper coloring with at most
colors. In particular .
Proof. When is colored, the colors on its earlier neighbors in number at most the number of such neighbors, and these lie in by (S3). Each is a clique containing , so it has at most other points.
Tilings
For integers and , the tiling consists of the tiles
with interiors (Figure 2(a)). The offset shifts the tiling along the diagonal, in the spirit of the shifting technique [15].
Figure 2. (a) The tiles of one round (solid) and of the next (dashed); points in the band around the interiors (shaded) are hollow. (b), (c) The sets cover the earlier neighbors of (filled); later ones (hollow) lie in the right half.
Lemma 8. Let be an integer.
(i) Two points in the interiors of different tiles of are at distance more than 1.
(ii) Among any consecutive integers , there are at most two for which a given point lies in no interior of .
Proof. (i) The two points differ in one coordinate by more than for some integer , because the interiors are half-open. (ii) The point lies in no interior only if or lies in , a half-open arc of length 1 on a circle of length . As ranges over consecutive integers, the values are spaced 1 apart, so exactly one of them lies in the arc. The same holds for .
Model of computation
We use the real RAM without the floor function. The input coordinates enter only through adjacency, the order , membership in the sets , and the placement of points in tiles and slabs; everything else, including the linear programs, is exact arithmetic on rationals of polynomial bit size, so for rational input the algorithms also run in polynomial time on a Turing machine. All our algorithms color each connected component of separately, with the same colors, which suffices because , , and of are the maxima over its components. Translating all points and all sets by a common vector preserves (S1)–(S3), so we may translate a component to have least - and -coordinates 0. By (S1) its coordinates then lie in , and the integer part of each is found by binary search over , which places every point in its tile or slab with comparisons.
Lemma 9 (fractional coloring). For every -sweepable class and every fixed there is a polynomial-time algorithm that, given a graph of the class, computes a fractional coloring of value at most with rational entries and polynomially many non-zero entries.
Proof. Let , so that . Fix an offset and a tile of with . The interior is covered by half-open cells of side , and by (S2) each cell contains at most one vertex of an independent set. Hence has at most independent sets, and its fractional coloring LP has polynomial size. Its constraint matrix has entries 0 and 1 and its right-hand side is all ones, whatever the coordinates, so an optimal basic solution can be computed exactly in polynomial time. It is rational, has at most non-zero entries, and has value .
Next we merge the solutions over the tiles of . For each , split into consecutive half-open intervals, one of length for each set with . For let be the union, over all tiles with , of the set whose interval in contains . By Lemma 8(i) and (S1), is an independent set of . The function changes only at the at most interval endpoints. Let give each non-empty set the total length of . Then has at most non-zero entries and value at most , and the sets containing a vertex have total weight .
By Lemma 8(ii), every vertex lies in an interior for at least of the offsets. Thus
is a fractional coloring of of value at most , with at most non-zero entries. ◀
For unit disk and unit square graphs, Lemma 9 also follows from [16, Theorem 5.2] and [9, Theorem 2.10 and Section 4].
Lemma 10 (bounded differences [25]). Let be independent random variables and , where changing any single argument changes by at most 1. Then for every .
Lemma 11 ([28]; symmetric form). Let be a finite set of mutually independent random variables, and let be a finite set of events, each determined by a subset of . Suppose every event has probability at most and shares variables with at most other events, and . Then the resampling algorithm finds an assignment of under which no event of holds, after an expected number of at most resampling steps.
Each resampling step needs only a way to sample the variables and to check whether a given event holds; both are polynomial in our setting.
Asymptotic Approximation via LP Rounding
This section proves Lemma 17. Section 3.1 describes the algorithm, which samples color classes from a fractional coloring independently in the tiles of shifted tilings and colors the remaining vertices with the sweep, and § 3.2 analyzes it.
Heuristically, each round covers a vertex with probability at least , where is the value of the fractional coloring, so after rounds a vertex remains with probability about and each clique keeps about vertices. The sweep then needs about colors (Lemma 7), for a total of , minimized at . Drawing independently per tile lets the Local Lemma bound all deviations at once by .
Algorithm
Fix a -sweepable class, an input with , and a fractional coloring of value with rational entries and polynomial support, as given by Lemma 9. The algorithm has one integer parameter, the number of rounds , which is also the side of the tiles.
Rounds. Round uses the tiling , so the tiling is shifted by one unit from each round to the next and every offset modulo is used exactly once. Figure 3 shows the whole procedure on a small example. For each round and each tile of whose interior contains a point of (at most tiles per round), independently draw a random independent set with .
Figure 3. Tiles of side 8, a UDG on 150 random points (edges shaded), and random maximal independent sets in place of LP draws. (a) Round 1: one independent set (large dots) per tile interior (shaded). (b) After three rounds, each covered vertex has the color of its first class (blue circles, orange triangles, green diamonds); the residual (red squares) is colored by the sweep.
Color classes. For round let
Give every vertex that lies in some the smallest such as its color. Let be the set of remaining vertices (the residual), and color by the sweep with colors above .
Local lemma. For and let and let be the event , where the expectation is over independent draws and is fixed in § 3.2. The draws are resampled with the Moser–Tardos algorithm until no event holds. The algorithm then outputs the coloring above.
Lemma 12. Each is an independent set, so the output is a proper coloring.
Proof. Two vertices of in the same tile interior belong to the same independent set . Two vertices in different interiors are at distance more than 1 by Lemma 8, so by (S1) they are not adjacent. Vertices colored in the first phase get the colors , one class per round. The residual gets colors above from a proper first-fit coloring.
Analysis
We show that the algorithm runs in expected polynomial time and bound the number of colors it uses in terms of the LP value . For let be the set of rounds in which lies in the interior of its tile. The rounds use consecutive offsets, so by Lemma 8(ii).
Lemma 13 (expectation). Let for some . Then for every , and .
Proof. In a round , the vertex is covered if for its tile , which happens with probability . These events are independent over . Hence
For the second claim, is a clique by (S3) and so has at most vertices.
Lemma 14 (concentration). . Moreover is determined by the draws with , of which there is at most one for each round .
Proof. Let . Since and interiors of different tiles of one round are at distance more than 1 (Lemma 8(i)), the set meets at most one interior per round. A vertex is covered if and only if for some round with . So is a function of the at most independent variables . Changing one of them, say from to , changes the coverage in round only for the vertices of and . Each of these sets has at most one vertex, because is a clique and are independent. The first vertex may become uncovered and the second may become covered, so changes by at most 1. Lemma 10 applies.
Lemma 15 (dependency). Each event shares variables with fewer than other events.
Proof. If and share a variable , then there are and . Since (Figure 4) and each -set contains its apex and has diameter at most 1, we get . The square is covered by half-open cells of side $1/2. Each cell has -diameter at most , so by (S2) it contains at most points of . Each such creates events, and this count includes itself.
We now fix the parameters, choosing so that each event has probability at most with , as Lemma 11 needs. Let be a rational number and set
All of these are computed exactly from the rational numbers and : is the least integer with . Since , we have , and therefore
Figure 4. Proof of Lemma 15: if and meet the same , then .
Lemma 16. For every rational , the algorithm with these parameters terminates in expected polynomial time and uses at most
colors.
Proof. By Lemmas 14 and 15, every event has probability at most and, since the integer is at most , shares variables with at most others, where since , so . There are events and at most variables, each sampled from an explicit distribution with polynomial support. Each event can be evaluated exactly: is a rational number of polynomial size, and since is rational, the comparison with is exact after squaring. By Lemma 11, the resampling stops after an expected polynomial number of steps with no event holding.
Then for all and . Every belongs to for all , so by Lemma 7 the residual uses at most colors for the worst . Lemma 13 applies because , so the total number of colors is at most
where we used and .
Lemma 17. Let be a -sweepable class. For every there is a randomized algorithm with expected polynomial running time that colors every with at most colors, where depends only on and .
Proof. Fix a rational number with , so that . Compute by Lemma 9 with , where , and run the algorithm of Section 3.1. In the bound of Lemma 16 we have and , so with . With , the AM–GM inequality, and for ,
Figure 5. Lemmas 18 and 19: slabs alternate palettes; earlier neighbors of lie in six cells.
an explicit constant that depends only on and . As , the algorithm uses at most
colors, because .
The bound of Lemma 16 holds for every , so no separate treatment of small is needed. As tends to it becomes ; the of Lemma 17 pays only for the LP, for a rational , and for this lower-order term. For unit disk graphs, Lemma 17 gives the constant , which Section 5 lowers to that of Theorem 2.
A 2.1-Approximation Algorithm
This section removes the additive constant of Lemma 17 for classes with (Lemma 20), which gives a 2.1-approximation for unit disk graphs and for translates of a convex polygon. The additive constant of Lemma 17 is at most once . So it matters only when , and hence , is below a constant, and it remains to color graphs of bounded clique number. Inside a vertical slab of bounded width, sorted by , such a graph has bounded bandwidth, so it can be colored optimally in polynomial time [1].
Lemma 18 (coloring a slab). Let be a -sweepable class and let be an integer. There is an algorithm that, given an integer and a graph on points with that lie in a vertical slab , computes an optimal coloring of in time.
Proof. Order the points by -coordinate, breaking ties arbitrarily. If precedes and is an edge, then by (S1) the points , , and all points between them lie in , which is covered by half-open cells of side (Figure 5) and so contains at most points by (S2); so every earlier neighbor of is among the points preceding it. Hence first-fit in this order uses at most colors, and for each , dynamic programming along the order that keeps the -colorings of the last points that extend to all earlier points decides whether is -colorable; the least such gives an optimal coloring. Sorting takes time, and for each the dynamic program keeps at most colorings and tries colors at each point, each checked against the predecessors with its adjacency list, of length less than by (S1) and (S2), so all take time. ◀
Two alternating palettes on slabs of width 1 then lose only a factor 2.
Lemma 19 (slabs). Let be a -sweepable class. There is an algorithm that, given an integer and a graph on points with , colors with at most colors in time.
Proof. By (S1), no edge joins the slabs and if . So coloring each optimally by Lemma 18 with , from one palette if is even and another if is odd, gives at most colors.
Lemma 20. Let be a -sweepable class with . For every there is a randomized algorithm with expected polynomial running time that colors every with at most colors.
Proof. Let be the explicit constant of Lemma 17 and let be an integer. Compute a fractional coloring of value by Lemma 9. If , then , and the algorithm of Lemma 17 uses at most colors. Otherwise , and Lemma 19 gives at most colors, because .
By Lemma 6, Lemma 20 with and colors every unit disk graph with at most colors.
Translates of a Convex Polygon
This subsection shows that intersection graphs of translates of a convex polygon are 3-sweepable after a linear change of coordinates, which extends Lemmas 17 and 20 and Theorem 26 with to them and proves Theorem 3. Let be a convex polygon with non-empty interior, and let be finite. The intersection graph of the translates , , has an edge if and only if lies in . The set is a convex polygon that is symmetric about the origin, and unit disk and unit square graphs are defined in the same way with a disk or a square as . A sweep gives for these graphs [19], which is a 3-approximation; we are not aware of a smaller ratio. If is a parallelogram, a linear map turns the graphs into unit square graphs.
Lemma 21 (implicit in [19, Theorem 8]). After a linear change of coordinates that depends only on , the intersection graphs of translates of form a 3-sweepable class.
Proof. Let be vertices of that maximize ; the maximum of over is attained at vertices. Apply the linear map that takes to . In the new coordinates, every has and likewise , so , which is (S1). Moreover contains the convex hull of , hence the square , which is (S2).
For (S3), let be the lexicographic order on , as in Lemma 6. Let , so that every neighbor of lies in , and define
These sets contain and cover (Figure 6), and membership is decided by linear inequalities. Let be the sets with . Since , it suffices to show that whenever for some : then is a clique and . This is the content of Claims 3.1–3.3 in the proof of [19, Theorem 8]; we give a self-contained proof.
Figure 6. The sets , with , and the points , of the proof of Lemma 21. (a) For the triangle with vertices , , , the hexagon is that of Figure 7(a), and the cones , , are the three triangles. (b) For disks the sets are curved, unlike the sectors of Figure 2(c), and lies strictly inside the cone (dashed rays).
Let be the norm with unit ball , so that if and only if , and is convex for every . The vertices and of have norm 1, and 0 is an interior point of . We use one inequality: if two segments and meet at a point , then the triangle inequality at gives
The set . Let . The claim is immediate if or is or , so assume not. Since , we have , and likewise , so the four points lie in the strip , of which and are corners. A corner of the strip lies in the convex hull of other points of the strip only if it is one of them, so neither nor lies in the convex hull of the other three points. If lies in the convex hull of , then by convexity , and likewise if lies in the convex hull of . Otherwise the four points are the vertices of a convex quadrilateral. Its diagonals cross, so and are not opposite vertices, as and would then lie strictly on opposite sides of the -axis. So the diagonals are and with , and the inequality above gives . The same argument with in place of and the strip applies to .
The set . The set contains ; let be one of its points with the least -coordinate, so , and let . We first show that and lie on the boundary of . For let be the length of the vertical chord of ; it is concave by convexity of , and for by the choice of . The chord at contains and , which are at vertical distance 1. If , then and are on the boundary of . Otherwise is continuous at the interior point , so , the chord at is the segment , and its endpoints lie on the boundary of . Hence .
For let . As and , the half-plane is the union of , , and . We show that . Let . If lies in the triangle with vertices , then by convexity. Otherwise the segment crosses , and the inequality above gives , so . In the same way, using , we get . Therefore .
It remains to show that for . This set is convex and is convex in and in , so we may assume that and are extreme points of the set. Since for every , we may also assume that , so and lie on the boundary of , and after exchanging them, and . Let and let lie on the boundary of . The ray from through meets the segment , and since is an interior point of , the points of on this ray form the segment . So meets , and the inequality above gives . With this gives , and with it gives .
By Lemma 21, Lemma 20 with and colors every intersection graph of translates of a convex polygon with at most colors.
A 2.05-Approximation Algorithm
This section lowers the leading constant $1+\ln c$ of Lemma 17. The algorithm of § 3.1 colors the residual with colors above . We now color instead by first-fit in the order of (S3) in Definition 5 (for unit disks, the lexicographic order on ), giving each $v\in R the smallest positive integer that is not the color of an already colored neighbor, including the neighbors colored in the first phase. So a residual vertex may receive a color that none of its neighbors received. The algorithm is otherwise unchanged, except that the Local Lemma step also controls the number of such colors.
Neighborhood independence. A class of graphs has neighborhood independence at most if, for every graph in the class and every vertex , every independent set of contained in the neighborhood has at most vertices. Unit disk graphs have neighborhood independence at most 5 (Figure 7(c)). Indeed, a neighbor at the same point as is adjacent to every other neighbor of , and two neighbors , of at other points that make an angle of at most at satisfy . So the vertices of an independent set in with at least two vertices make pairwise angles larger than at , and there are at most 5 of them. Intersection graphs of translates of a convex polygon have neighborhood independence at most 5 as well, as we show at the end of this section.
Figure 7. (a) for a triangle , between and . (b) The cliques . Independent neighbors of : (c) disks, apart; (d) squares, one per quadrant.
Free colors. Fix a -sweepable class with neighborhood independence at most . For let be the number of colors that no neighbor of receives in the first phase; we call them free for .
Lemma 22. The coloring is proper and uses at most colors.
Proof. The first phase is proper by Lemma 12, and first-fit keeps the coloring proper. When is colored, its neighbors colored in the first phase carry the colors of that are not free for . Its neighbors in colored before it lie in by (S3), so there are at most of them. Hence at most colors are excluded for , and receives a color of at most one more.
Color is free for if and only if the at most neighbors of in , which depend only on round , are all covered in earlier rounds. Each of them is covered before round with probability at least , and a Poisson coupling, which costs the last term below, and Harris’ inequality give the product bound.
Lemma 23. For every ,
Proof. Fix a round and let . A neighbor of receives color if and only if it lies in and in no earlier , so is free for if and only if every vertex of lies in . The set is independent, so it has at most vertices, and it depends only on the draws of round , which are independent of the draws of the earlier rounds. It therefore suffices to show, for every fixed independent set with vertices, that with probability at least . This is at least , and summing over with gives the lemma.
As in the proof of Lemma 13, a vertex lies in with probability for every . For , let contain each with independently with probability . Then are independent, if and otherwise, , and it suffices to bound the probability that . For let , and let be independent Poisson variables with means . For each , the sum is Poisson with mean , and given that it is , the unique with has the law of given . The total variation distance between the Bernoulli and the Poisson distribution with mean is . So and can be coupled, independently over , such that with probability at least either and all vanish, or , , and all other vanish.
Outside an event of probability at most , therefore, holds if and only if, for every , some with and is positive. These events are increasing in the independent indicator variables , so by Harris’ inequality [14] their intersection has probability at least the product of their probabilities. The event for fails with probability , which is at most because by Lemma 8(ii).
Lemma 24. is determined by the draws with , of which there are at most four for each round , and for every .
Proof. By (S1), lies in . In each coordinate, the interiors of a tiling are intervals of length separated by gaps of length , so an interval of length meets at most two of them, and meets at most four interiors. The first-phase color of a neighbor of depends only on the draws for the tiles whose interiors contain . Changing one draw from to changes the first-phase color only of vertices in , and at most of them are neighbors of , because and are independent. Each of these changes its color from or to , so the set of neighbors of with a given color changes for at most colors, and changes by at most . Lemma 10 applied to , a function of at most independent variables, gives the bound.
Parameters. With , , , and as in Section 3.2, but , let
Since , we have by Lemma 23. For every let be the event ; by Lemma 24 it has probability at most . The Moser–Tardos algorithm now resamples the draws until none of the events and holds. For
let
Lemma 25. For every rational and , the algorithm with these parameters terminates in expected polynomial time and uses at most
colors.
Proof. The event is determined by the draws for tiles whose interiors meet , and every point of is within distance 1 of , so the proof of Lemma 15 shows that each event shares variables with fewer than others. As in the proof of Lemma 16, with , and each event is evaluated exactly, since and are rational. So the resampling stops after an expected polynomial number of steps, with and for all and . By Lemma 22 and , , the number of colors is at most
It remains to bound from below. From and for we get for , which covers . As is -Lipschitz on , each term of is at least , and these corrections sum to at most . The function is nondecreasing and at most 1, and , so
Hence , which gives the bound.
Theorem 26. Let be a -sweepable class with neighborhood independence at most , and let be rational. For every there is a randomized algorithm with expected polynomial running time that colors every with at most colors, where depends only on , , and .
Proof. Compute by Lemma 9 with , where . If , then and the sweep uses at most colors. Otherwise run the algorithm of Lemma 25. As in the proof of Lemma 17, since , and , so with . The two square-root terms of Lemma 25 sum to with . The AM–GM step and the tangent-line bound of the proof of Lemma 17, with this and , give with . Since and , the remaining terms are at most . So the algorithm uses at most colors, where , because gives . The theorem holds with .
If , substituting gives, with and the harmonic number ,
Without reuse the integrand is and the bound is , as in Lemma 17; reuse saves . For unit disk graphs (, ) and , we get and , while . This value is within of the minimum over . With , Theorem 26 therefore gives Theorem 2.
Proof of Theorem 1. Follow the proof of Lemma 20 with Theorem 26 for , , , and in place of Lemma 17. If , this uses at most colors. Otherwise Lemma 19 uses at most colors, and .
Translates of a convex polygon
The proofs of Theorems 1 and 2 use only that the class is 3-sweepable with neighborhood independence at most 5. Intersection graphs of translates of a convex polygon are 3-sweepable by Lemma 21, and the next lemma gives the second property. Intuitively, in the norm with unit ball , moving the points of an independent set in away from to distance exactly 1 keeps them more than 1 apart, so their translates of touch and are pairwise disjoint, and there are at most 5 such translates [?].
Lemma 27. Intersection graphs of translates of a convex polygon have neighborhood independence at most 5.
Proof. Let be the norm with unit ball , so that is an edge if and only if , and translates and are disjoint if and only if and touch, that is, intersect with disjoint interiors, if and only if . Let be an independent set in the neighborhood of a vertex with . No lies at the point , since such a would be adjacent to every other neighbor of . So every can be written as with and . For the function is convex on , so it attains its maximum at a corner, and
Hence , and the translates , , are pairwise disjoint and all touch . They are therefore distinct, and after translating by they form a *strict Hadwiger family of , that is, pairwise disjoint translates of that all touch . The same vectors give a strict Hadwiger family of the centrally symmetric body , since and are disjoint or touch exactly when and are. So if is not a parallelogram, the family has at most 5 members [6] (see also [32]). If is a parallelogram, a linear map turns into , and , because is the union of four closed unit squares, each of which contains at most one point of .
Proof of Theorem 3. By Lemmas 21 and 27, after a linear change of coordinates, which does not change the graphs, these graphs form a 3-sweepable class with neighborhood independence at most 5. So Theorem 26 with , , , and gives the second statement, as for Theorem 2, and the proof of Theorem 1, which uses only these properties, gives the first.
A 1.68-Approximation Algorithm for Unit Square Graphs
This section proves Theorem 4 and the lower bound on for unit square graphs. Unit square graphs are 2-sweepable with the lexicographic order on and the two closed unit squares of Lemma 6. For them the bound of Lemma 19 is no better than the sweep, and we replace it by the following.
Lemma 28 (overlapping slabs). There is an algorithm that, given an integer and a unit square graph on points with and at least one edge, colors with at most colors in time.
We first outline the proof. Overlapping vertical slabs of width are colored optimally by Lemma 18; let be the largest number of colors used, and use colors. The coloring of one slab is turned into that of the next at the cuts , where is the left end of the next slab (Figure 8). At , whole color classes of the next coloring receive colors that are unused near the cut. At , the remaining points to the right of the cut are recolored by first-fit in the order . They are colored by the classes not yet repainted, so their clique number is at most , and first-fit needs only colors, whatever the colors to the left of the cut. The first cut finds unused colors, and the number of unused colors then doubles at every other cut, so the next coloring is reached within distance of , before the slab after it begins.
Figure 8. Lemma 28 with and , near the left end of a slab . Colors show , shapes the classes of , and circles the points outside ; the bars show the colors used in each strip. The F-steps at , , and finish 2, 1, and 1 classes, and to the right of each class of has a single color.
Proof. If two points that are consecutive in the order of -coordinates differ by more than 1 in , the points on the two sides can be colored independently, so we assume that this does not happen. We also assume that has an edge, since otherwise one color suffices. Let , let , and for let the slab be the set of points with . Consecutive slabs overlap in a strip of width 1, every point lies in a slab, and every edge has both endpoints in some slab.
Coloring one slab. The points of lie in a vertical slab of width , so Lemma 18 with computes an optimal coloring of . Let , so that and, by Lemma 7, , and let , so that . All colors are taken from .
Stitching. We define the coloring slab by slab, starting with on . Before slab is processed, with , the following entry condition holds: is a proper coloring of the points with , it is undefined on the other points, and the points with use only colors of a set of colors. Let be the color classes of , some possibly empty. We will assign some of them, called finished, distinct colors ; the other classes and their points are unfinished, and denotes the number of finished classes. For we perform a step at the cut , an F-step if is even and a C-step if is odd (Figure 8):
F-step. Let . Give unfinished classes distinct colors , mark them finished, and set for every with . If all classes are finished, stop.
C-step. Let . Replace by a set of colors of . Recolor the unfinished points with by first-fit in the order : gets the first color of that no earlier neighbor holds.
We show by induction on that after the step at , with before the first step: (a) is proper, and is disjoint from ; (b) every point with at which is defined has if lies in a finished class , and otherwise; (c) is defined on the points with and on the finished points, after the first C-step on all of , and nowhere else. Before the first step this is the entry condition. A step at changes only points with , and their neighbors have , so (b) for the previous step applies to them; such a is outside only if , which needs , or if , where is undefined by (c).
Consider an F-step and a recolored point . Its neighbors hold colors of , colors of classes finished earlier, or, if they were recolored in the same step, colors of other new classes , because is independent; none of these is . So (a) is kept, and (b) and (c) hold by construction.
Consider a C-step; then is odd and . Let be an unfinished point with ; its neighbors have , and those at which is defined lie in . Every earlier neighbor of has a color when is recolored: if , by (c), since or a C-step has already run; if , because is finished or was recolored before . Every later neighbor has , so it is finished or is recolored after . Finished neighbors hold colors outside the new , by (b) for the previous step. The unfinished points of induce a subgraph that colors with colors, so its clique number is at most ; the earlier neighbors of lie in , two cliques containing , so at most of them are unfinished. So first-fit finds a color in , and every edge at a recolored point is proper: to a finished point because avoids , to an earlier unfinished point because avoided its color, and to a later point because that point avoided . Again (a)--(c) follow.
It remains to see that the colors suffice and that the steps end in time. At the first F-step , so it finishes classes and leaves . Before every later F-step, with , so , and the C-step before it needs . Now , and is increasing in , so every C-step finds its colors and every later F-step has . If an F-step finishes classes, the next one adds unused colors. So after the first F-step and further F-steps all classes are finished as soon as . Since , suffices, and the last step is the F-step at a cut . Then every class is finished, so by (b) and (c) the points with at which is defined use only the colors , and is a proper coloring of the points with and undefined elsewhere. This is the entry condition for slab , with in place of . After the last slab, is a proper coloring of with at most colors. Each point is recolored times, each time checking its fewer than neighbors, which a sweep lists for all points in time, so the stitching takes time. Every point lies in at most two slabs and , so by Lemma 18 the slabs are colored in time in total.
The proof uses only that each is a proper coloring with colors; optimality is needed only for . So every unit square graph satisfies for slabs of width , whatever is. The proof also works for every -sweepable class whose order satisfies whenever , with colors and sets of colors, and then uses at most colors; for unit disk graphs this is , which we do not need. Since for and , the proof of Lemma 20 with , , and Lemma 28 in place of Lemma 19 colors every unit square graph with fewer than colors, without reuse.
Reuse. Unit square graphs have neighborhood independence at most 4, since lies in , which is the union of four closed unit squares, each inducing a clique (Figure 7(d)). For , , and we get and , within of the minimum over , while .
Proof of Theorem 4. Theorem 26 with , , , and gives the second statement. For the first, the proof of Theorem 1 with these parameters and Lemma 28 in place of Lemma 19 uses at most colors if . Otherwise Lemma 28 uses at most colors if , one color suffices if , and .
A lower bound on
The published lower bound on for unit square graphs is obtained from the 5-cycle by replacing every square with copies of itself [7, 4]. The square of the 8-cycle, , with vertices and adjacent to and modulo 8, is the member after of the cycle-power family used for disks [22], and it is also a unit square graph (Figure 9). It has and , so taking copies of every square gives unit square graphs with and , and hence .
Figure 9. The graph , with adjacent to and modulo 8, as eight unit squares (left) and on a circle (right), with a 4-coloring. Since and , we have .
AI Statement
This paper was prepared with substantial help from the AI assistants Claude (Anthropic) and ChatGPT (OpenAI). They took part in developing the algorithms and proofs, checking the references, and writing the text. The authors checked all results and are responsible for the content.
References
- [1]Stefan Arnborg and Andrzej Proskurowski. Linear time algorithms for NP-hard problems restricted to partial k-trees. Discrete Applied Mathematics, 23(1):11–24, 1989. doi:10.1016/0166–218X(89)90031–0.DOI








