Abstract 1 Introduction 2 A Deterministic Construction Based on Pinwheel Tilings 3 A Deterministic Construction with Faster Convergence 4 Experimental Findings in the Squishy Grid 5 Conclusion References

The Squishy Grid Problem

Zixi Cai ORCID IIIS, Tsinghua University, Beijing, China    Kuowen Chen ORCID IIIS, Tsinghua University, Beijing, China    Shengquan Du ORCID IIIS, Tsinghua University, Beijing, China    Arnold Filtser ORCID Bar-Ilan University, Ramat Gan, Israel    Seth Pettie ORCID University of Michigan, Ann Arbor, MI, USA    Daniel Skora ORCID University of Michigan, USA
Abstract

In this paper we consider the problem of approximating Euclidean distances by the infinite integer grid graph. Although the topology of the graph is fixed, we have control over the edge-weight assignment w:E0, and hope to have grid distances be asymptotically isometric to Euclidean distances, that is:

For all grid points u,v, distw(u,v)=(1±o(1))uv2.

We give three methods for solving this problem, each attractive in its own way.

  • Our first construction is based on an embedding of the recursive, non-periodic pinwheel tiling of Radin and Conway [15, 16, 9] into the integer grid. Distances in the pinwheel graph are asymptotically isometric to Euclidean distances, but no explicit bound on the rate of convergence was known. We prove that the multiplicative distortion of the pinwheel graph is (1+1/Θ(logξlogD)), where D is the Euclidean distance and ξ=Θ(1). The pinwheel tiling approach is conceptually simple, but can be improved quantitatively.

  • Our second construction is based on a hierarchical arrangement of highways. It is simple, achieving stretch (1+1/Θ(D1/9)), which converges doubly exponentially faster than the pinwheel tiling approach.

  • The first two methods are deterministic, with rigorous guarantees. An even simpler approach is to sample the edge weights independently and randomly from a common distribution 𝒟. Whether there exists a distribution 𝒟 that makes grid distances Euclidean, asymptotically and in expectation, is major open problem in the theory of first passage percolation. Previous experiments show that when 𝒟 is a Fisher distribution (which is continuous), grid distances are within 1% of Euclidean distances. We demonstrate experimentally that this level of accuracy can be achieved by a simple 2-point distribution that assigns weights 0.41 or 4.75 with probability 44% and 56%, respectively.

Keywords and phrases:
grid graph, Euclidean distance, metric embedding, first passage percolation
Copyright and License:
[Uncaptioned image] © Zixi Cai, Kuowen Chen, Shengquan Du, Arnold Filtser, Seth Pettie, and Daniel Skora; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Randomness, geometry and discrete structures
Related Version:
Full Version: https://arxiv.org/pdf/2507.23105 [7]
Funding:
Supported by NSF Grants CCF-2221980 and CCF-2446604 and Israel Science Foundation Grant No. 1042/22.
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

In this paper we consider a natural geometric problem tangentially related to metric embeddings, spanners, and, in its randomized form, percolation theory. Suppose we wish to approximate Euclidean distances between points on the plane, but with a simple discrete structure: the integer grid graph 𝖦𝗋𝗂𝖽=(×,{{u,v}uv1=1}). If we consider all edges of E(𝖦𝗋𝗂𝖽) to have unit length, then 𝖦𝗋𝗂𝖽 can be regarded as a 2-spanner since for any (u,v)(2)2,

uv2dist𝖦𝗋𝗂𝖽(u,v)2uv2.

Now define 𝖦𝗋𝗂𝖽[w] to be 𝖦𝗋𝗂𝖽 endowed with a non-negative edge-weight assignment w:E(𝖦𝗋𝗂𝖽)0, and let distw be the distance function with respect to w. We consider the natural question: does there exist a 𝖦𝗋𝗂𝖽[w] that is an asymptotic 1-spanner of the Euclidean plane?

Question 1 (The Squishy Grid Problem).

Does there exist a weight function w such that for all u,vV(𝖦𝗋𝗂𝖽) distw is asymptotically Euclidean? That is,

distw(u,v)=(1±o(1))uv2.

If so, we may distinguish various types of convergence:

Polynomial.

distw(u,v)=uv2±O(uv2)1Ω(1).

Subpolynomial.

distw(u,v)=uv2±(uv2)o(1).

Constant.

distw(u,v)=uv2±O(1).

Before discussing our approach to answering Question 1 we review the history of Question 1 and its connections to percolation theory.

1.1 History of the Problem and Related Results

G. Tardos (personal communication) made us aware of a 1990 book chapter of Pach, Pollack, and Spencer [14] who attributed some version of Question 1 to Paul Erdős. Pach et al. [14] proved that for any fixed ϵ>0 there exists a graph G[ϵ] on the vertex set × such that for all u,v,

uv2distG[ϵ](u,v)(1+ϵ)uv2+O(51/ϵ).

Unfortunately, G[ϵ] is not planar and obviously depends on ϵ, so it does not lead to a resolution of Question 1. Burago and Ivanov [6] exhibited a regular, weighted graph G on the vertex set × for which

uv2distG(u,v)uv2+C,

for some absolute constant C. However, G is also not planar.

Borradaile and Eppstein [4] considered a more general problem: given a point set P2, compute a weighted planar graph G=(PS,E) with Steiner points S such that distG(u,v) (1+ϵ)-approximates the Euclidean distance uv2. They proved that |S|=Oϵ,α(|P|) suffices, where α is the sharpest angle in the Delaunay triangulation of P. A result of Chang, Krauthgamer, and Tan [8] implies an upper bound of Oϵ(|P|polylog|P|), which is slightly superlinear but independent of α.

The problem was first posed to us by G. Bodwin, not as a deterministic design problem (Question 1) but as a randomized one. Whenever 𝒟 is a distribution over 0, let 𝖦𝗋𝗂𝖽[𝒟] be the distribution of weighted graphs such that for each eE(𝖦𝗋𝗂𝖽), w(e)𝒟 is sampled independently from the distribution. Is it possible to find a distribution 𝒟 such that distances in 𝖦𝗋𝗂𝖽[𝒟] are Euclidean in expectation? In more detail:

Question 2 (Randomized Squishy Grid Problem).

Does there exist a distribution 𝒟 over 0 such that if 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟] is a randomly weighted graph, for all u,vV(𝖦𝗋𝗂𝖽),

𝔼(distw(u,v))=(1±o(1))uv2.

The randomized process implicit in Question 2 is actually not new, but dates back to at least a 1965 paper of Hammersley and Welsh [11], who called it first passage percolation. They imagined an orchard in which trees were planted on the integer lattice. One tree is initially infected, and the time taken for an infected tree to infect a cardinal neighbor is governed by a distribution 𝒟 on 0. One can then ask: how far does the infection spread by time t? and what does the set of infected trees look like?

Many basic questions in first passage percolation theory remain open, and we can quickly summarize the known facts related to Question 2. Let 𝟎=(0,0) be the origin and eθ be the unit vector with angle θ degrees. We interpret neθ to mean the integer point in V(𝖦𝗋𝗂𝖽) nearest to neθ. The time constant μ0(𝒟) is such that limndistw(𝟎,ne0)/n=μ0 almost surely, which exists if, whenever w1,,w4𝒟 are independently sampled, 𝔼(min{w1,w2,w3,w4})< [12]. It follows that 0μ0𝔼(w1𝒟), with the latter inequality holding with equality only if w1𝒟 is constant almost surely [11]. Similarly, the time constants for other angles μθ(𝒟)=limndistw(𝟎,neθ)/n exist, and collectively define the limiting shape of the balls under distribution 𝒟. Let B(t)={u2distw(𝟎,u)t} be the ball of radius t around the origin. The Cox-Durrett shape theorem [10] shows that with probability 1, as t, B(t)/t tends to a fixed limit shape (𝒟)2. When μ0(𝒟)>0, (𝒟) is bounded, convex, and has the same symmetries as 2, and when μ0(𝒟)=0, (𝒟) is 2 itself. See [2] for an extensive survey of first passage percolation theory.

In the context of answering Question 2 we can rescale any non-trivial distribution 𝒟 so that its time constant μ0(𝒟)=1, i.e., distances from the origin to points on the x- and y-axes are asymptotically isometric. In light of the Cox-Durrett theorem, Question 2 asks whether there exists a 𝒟 for which (𝒟) is the unit L2 ball {xx21}.

Unfortunately, there are no results characterizing (𝒟) for any non-trivial distribution 𝒟. It is not even known whether there exists 𝒟 such that

limn𝔼(distw(𝟎,ne0))n=limn𝔼(distw(𝟎,ne45))n=1, (1)

i.e., (𝒟) coincides with the unit L2-ball on the eight (inter)cardinal directions. On the other hand, we have solid experimental evidence that (𝒟) can get within 1% of the unit L2-ball, for certain distributions 𝒟. An experimental study of Alm and Deijfen [1] looked at various continuous distributions 𝒟. When 𝒟 is the uniform distribution, the limit shape (𝒟) approximates the L2-ball to with 4%, whereas when 𝒟 is exponential the limit shape is about 1.5% away from the L2-ball. The best empirical approximation to the L2-ball came from a Fisher distribution, with error less than 1%.

1.2 Results and Findings

We provide two approaches to answering Question 1 and present experimental evidence that Question 2 can be answered in the affirmative, using simple discrete distributions.

Our first construction is based on Radin and Conway’s pinwheel tiling [15, 16, 9], a conceptually simple tiling that emerges from the observation that a right triangle with proportions 1:2:5 can be partitioned into five right triangles with the same proportions. It is known [16] that when regarded as a plane graph GPW with edges weighted according to Euclidean distance, distances in the pinwheel tiling are Euclidean in the limit, that is,

limdmaxu,v:uv>ddistGPW(u,v)uv2=1.

However the rate of convergence is unknown. We embed the pinwheel tiling into the grid graph, and prove a bound on its convergence, namely that for a constant ξ=Θ(1),

distGPW(u,v)=(1+O(1logξloguv2))uv2.

A natural problem is to optimize the convergence rate of the construction. We give a new, simple construction of a weight function w of the grid that is asymptotically Euclidean, with a polynomial convergence rate, namely: distw(u,v)=uv2+O(uv28/9).

The construction is based on laying out “highways” in the plane, which are paths cleaving closely to a line with a certain slope a, whose edge weights are equal and chosen to approximate Euclidean distances along the highway. For example, when a[0,1], the weights are a2+1a+1. In order to get a (1+o(1))-distance approximation, it is necessary that the set of slopes of all highways be dense in [0,π). Thus, there are infinitely many slopes, and infinitely many parallel highways of each slope, whose intersection pattern is quite complicated. The tricky part in the design stage is to decide what to do with intersecting highways. We give a simple method that eliminates intersections while guaranteeing polynomial convergence.

Alm and Deijfen’s [1] experimental study of first passage percolation selected 𝒟 from various continuous distributions such as uniform, exponential, Gamma, and Fisher distributions. For several of these distributions the limit shape (𝒟) approximated the L2-ball within a few percent, with a Fisher distribution being the best. Our experiments show that very simple distributions with support size 2 or 3 can replicate the accuracy of the continuous distributions [1]. For example, the improbable distribution 𝒟2:

Prw0𝒟2(w0={0.414014.75309)={0.442730.55727

empirically approximates the Euclidean metric to within about 0.75%, and a certain 3-point distribution 𝒟3 approximates it to within 0.622%. A very natural question is whether other Lp metrics can be approximated, in expectation, by various distributions. We illustrate that the uniform distribution and some Gamma distributions approximate Lp metrics with p<2. None of our experiments support the possibility that Lp metrics with p>2 can be approximated.

1.3 Organization

We present the construction based on pinwheel tilings in Section 2, as well as new bounds on the convergence of the stretch of the pinwheel graph. The highway construction is presented in Section 3, having polynomial convergence. We present the experimental findings in Section 4 and conclude with a discussion of several open problems related to Questions 1 and 2 in Section 5. Sections 2, 3, and 4 are written to be independent.

2 A Deterministic Construction Based on Pinwheel Tilings

The “pinwheel” tiling of Radin [15] is an example of a non-periodic tiling using a single tile type (and its reflection). Let 𝒯0,𝒯1,𝒯2, be a series of tilings of ever larger triangular swatches of the plane, and let 𝒯ω be the tesselation of the plane achieved in the limit. 𝒯0 consists of a single right triangle with side lengths 1,2,5. In general 𝒯i+1 is formed from 𝒯i by taking four additional copies of 𝒯i, suitably reflected, rotated, and translated, so that they form a larger triangle with the same 1:2:5 proportions. Figure 1 illustrates the construction of 𝒯2 from 𝒯1 and 𝒯0.

2.1 Pinwheel Tilings

By construction 𝒯ω is a tiling of the plane using atomic triangles with side lengths 1,2,5. Due to the recursive nature of the construction, we can also regard 𝒯ω as a tiling using 5i,25i,5i+1 triangles, for any integer i0. Observe from Figure 1 that the boundary of 𝒯i+1 is obtained from the boundary 𝒯i by scaling by 5, translation, and rotation by arctan(1/2). We will henceforth define γ=arctan(1/2). As γ/(2π) is irrational, the orientation of tiles in 𝒯ω is uniformly distributed in [0,2π). Radin and Sadun [16] used this fact to prove an isoperimetric property of pinwheel tilings, namely that there are finite subsets of tiles from 𝒯ω whose area/perimeter2 is arbitrarily close to that of the circle. Suppose we regard 𝒯ω as a plane graph Gω, whose vertices and edges are the union of the vertices and edges of all atomic triangles. Radin and Sadun [16] proved that for u,vV(Gω), distGω(u,v)=(1+o(1))uv2. Although the multiplicative stretch is 1 in the limit, their proof implies no particular rate of convergence. We prove the following.

(A) (B)
Figure 1: (A) 𝒯1, containing 𝒯0 in red. (B) 𝒯2, containing 𝒯1 in red, and 𝒯0 in blue.
Theorem 1.

Let Gω be the plane graph of the pinwheel tiling 𝒯ω, whose edges are weighted according to the Euclidean distance between their endpoints. Then for any u,vV(Gω),

uv2distGω(u,v)(1+O(1/(logloguv2)ξ))uv2,for some ξ>0.

2.2 Distribution of Tile Orientations

If T is a triangle in the recursive tiling with dimensions 5i,25i,5i+1, we call T a level-i triangle. As a first step toward proving Theorem 1, we analyze the orientations of the triangles contained within a single large triangle. Given a triangle T of level x, let Ang(T,k) denote the set of angles attained by the hypotenuses of all level-(xk) triangles contained within T. We observe that the elements of this set are characterized by an arithmetic recurrence.

Observation 2.

Suppose a triangle T of level x has its hypotenuse at angle θ. For 0kx, Ang(T,k){θ+(2tk)γ|t{0,,k}}.

Proof.

We proceed by induction on k, with the base case k=0 being trivial. Consult Figure 2, where two triangles A and B of level-(x1) are depicted. Observe that the hypotenuse of A (resp. B) is rotated by an angle of γ (resp. +γ) relative to that of the exterior triangle. By the inductive hypothesis,

Ang(A,k1) {θγ+(2tk+1)γ|t[0,k1]}={θ+(2tk)γ|t[0,k1]}
Ang(B,k1) {θ+γ+(2tk+1)γ|t[0,k1]}={θ+(2tk)γ|t[1,k]},

and the union of these sets is exactly {θ+(2tk)γ|t{0,,k}}.

Figure 2: Two triangles within T. The hypotenuses of T,A,B have angles γ,2γ,0, respectively.

Consider some λ, and denote by {λ}=λλ the fractional part of λ. It is well known due to Weyl’s criterion that if λ is irrational, the set S(λ,N)={{kx}:1kN} becomes uniformly distributed in [0,1) as N [5]. Moreover, the rate of convergence is controlled by the irrationality exponent μ(λ) which measures the asymptotic quality of rational approximations to λ. For a real number λ, μ(λ) is defined to be the supremum of the set of real numbers μ such that 0<|λpq|<1qμ has infinitely many solutions for integers p,q with q>0. A finite irrationality exponent implies that a number does not have a sequence of rational approximations that are “too good.” For sets SU, we say S is an ε-cover of U if for every x1U there exists x2S satisfying |x1x2|<ε. When μ(λ) is finite, S(λ,N) is an ε-cover of [0,1) for N=ε1μ(λ)o(1) [13]. The following corollary follows by applying this fact to Observation 2.

Corollary 3.

Given a triangle T of level-x, Ang(T,k) is a θ-cover of [0,2π) for k=θ1μ(γ/π)o(1).

Before bounding the irrationality exponent μ(γ/π), we quickly review some terminology related to the algebraic numbers ¯. For α¯, its minimal polynomial is the unique polynomial P[x] of lowest degree with relatively prime coefficients such that P(α)=0. We say the degree of α is the degree of P, while the height of α is the absolute value over coefficients of P.

Both γ and π can be expressed in the form βlnα where α¯ and β(i). Since eiγ=2+i5, γ=iln(2+i5). Similarly, π can be written as iln(1). A great deal of work in the mid-20th century yielded various lower bounds on linear forms in logarithms of algebraic numbers. A history of the problem up to 1976 can be found in [3]. For our purposes, we choose a simple bound due to Baker.

Theorem 4 (Baker [3]).

Suppose for n1 we have algebraic numbers α1,,αn,β1,, βn¯0. If the logarithms lnαi are linearly independent over the rational numbers, then

|β1lnα1++βnlnαn|>HC,

where H is the maximum of the heights of the βi and C is a function of n, the numbers αi, and the degrees of the numbers βi.

Consider arithmetic expressions of the form β1lnα1+β2lnα2 where α1,α2¯0 are fixed and β1,β20. Now β1 and β2 have degree 1, so the exponent C becomes a constant, and H=max{|β1|,|β2|}. Applying Baker’s theorem (Theorem 4) and dividing both sides by |β1lnα2| yields |lnα1lnα2+β2β1|>1|β1lnα2|HC1|lnα2|HC+1. By choosing α1=2+i5 and α2=1, the ratio lnα1lnα2 is exactly γ/π. Recall that this number is irrational, satisfying the criteria that lnα1 and lnα2 are linearly independent over the rationals. Since γ/π<1, clearly we can replace H by β1 to obtain |lnα1lnα2+β2β1|>1|lnα2|β1C+1. Comparing this with the definition of the irrationality exponent, this is sufficient to see that μ(γ/π) is at most C+1 and therefore finite. Henceforth let μ=μ(γ/π). It is worth noting that the constant C given by Theorem 4 is effectively computable, though the order of magnitude is impractical.111One estimate, also due to Baker [3], states that C=lnA1ln2A2(16nd)200n suffices when the βi are rational, where Ai is the height of αi and d is the degree of the field extension [α1,α2]/. For our purposes, A1=4, A2=2, n=2, and d=4, giving C22800. Baker remarks it is possible to argue C is much lower in reality, but the required analysis is quite technical and beyond the scope of this paper.

2.3 Convergence of Stretch

We define f(d) to be the maximum stretch guaranteed by Gω, over all pairs of vertices at Euclidean distance at least d.

f(d)=sup{distGω(u,v)uv2|u,vV(Gω) and uv2d}.
Lemma 5.

Fix any distance d and let f(d)=1+ε. There exists a function n=ε(1μ)/2o(1) such that if d=Ω(5n/ε), then f(3d)<1+εΩ(5n).

Proof.

Consider any two vertices P,QGω with |PQ¯|=D3d when we regard them as points in the plane. Begin by choosing a parameter δ=δ(ε) and identifying a triangle T satisfying the following properties: T intersects PQ¯, the projection of T onto PQ¯ lies entirely within the middle third of PQ¯, and the hypotenuse of T has length exactly δD. Now choose a parameter θ=θ(ε) and let n=n(θ) be large enough such that Ang(T,n) is a θ-cover of [0,π). Finally, select a triangle T within T, and exactly n levels below T, whose hypotenuse creates an angle less than θ with PQ¯.

We now construct a path as follows. Let p and q be the endpoints of the hypotenuse of T closer to P and Q respectively. Let L1=Pp¯, L2=pq¯, and L3=Qq¯. |L1| and |L3| must each be at least d, so by the definition of the stretch function f, Gω approximates L1 and L3 to within 1+ε stretch.

Let 1, 2, and 3 be the projections of L1, L2, and L3 onto PQ¯. We claim that distGω(P,p)/|1|<(1+ε)(1+5δ2). Since p lies within T, its projection onto PQ¯ is a distance at most δD from p and at least D/3 from P. Therefore, |L1|/|1| is bounded by (D/3)2+(δD)2/(D/3)=1+9δ2<1+5δ2. By definition of f, distGω(P,p)/|L1|1+ε. The same is true for distGω(q,Q)/|3|. On the other hand, distGω(p,q)/|2| is trivially bounded by |L2|/|2|1/cosθ since p and q are joined directly by an edge in Gω. Combining the bounds on each component, we write

distGω(P,Q)<(1+ε)(1+5δ2)(|1|+|3|)+|2|cosθ.

We normalize by 1/D to obtain the stretch, and because this inequality holds for arbitrary P,Q satisfying |PQ¯|3d, it holds for the supremum as well.

f(3d) =supP,QV(Gω){distGω(P,Q)|PQ¯|||PQ¯|3d}
<(1+ε)(1+5δ2)(1|2|D)+|2|Dcosθ
(1+ε)(1+5δ2)(15n/2δcosθ)+5n/2δ
Letting κ=5n/2, this is upper bounded by
<1+ε+6δ2+κδ(1(1+ε)cosθ)
At this point we fix θ=ε, so cosθ>1ε/2.
<1+ε+6δ2κδε(1ε)/2=1+ε+δ(6δκε(1ε)/2)
Finally, we pick δ<κε/24.
1+εΩ(δ2)=1+εΩ(5n).

By Corollary 3, we choose n(θ)=n(ε)=(ε)1μo(1). The only remaining detail is to address that the triangles T and T used in this argument do indeed exist. The length of the hypotenuse of T was taken to be δD, and then we chose T to be n levels beneath that of T. Therefore, we have implicitly assumed D5n/2/δ>Ω(5n/ε), consistent with the assumption in the statement of the lemma.

Theorem 1 now follows easily from this lemma; see the full version [7].

2.4 Pinwheel Tilings on the Grid

Theorem 6.

There exists a weight function w such that 𝖦𝗋𝗂𝖽[w] has stretch 1, asymptotically. In particular, for any u,vV(𝖦𝗋𝗂𝖽),

uv2O(1)distw(u,v)(1+O(1/(logloguv2)ξ))uv2,for some ξ>0.

The proof of this theorem can be found in the full version [7].

3 A Deterministic Construction with Faster Convergence

In this section, we give a deterministic construction based on highways with faster convergence. Specifically, we establish the following result as Theorem 7:

Theorem 7.

There exists an assignment W:E(𝖦𝗋𝗂𝖽)0 such that for any u,vV(𝖦𝗋𝗂𝖽),

uv21distW(u,v)uv2+O(uv289).

We prove Theorem 7 in two steps. First, we show that the same statement holds for the finite square grid [n]×[n] (Theorem 8), then we give a black-box reduction from the infinite case to the finite case.

Theorem 8.

There exists a weight assignment W(n) to edges of the finite grid on [n]×[n] such that for any u,v[n]2,

uv21distW(n)(u,v)uv2+O(uv289).

The proof of Theorem 8 follows from the constructions presented in Section 3.1 and Section 3.2.

3.1 Highways

Given a line =ax+b in 2 we define the Highway() to be a grid-path that tracks ; see Figure 3.

Figure 3: A grid-path that tracks .

Specifically, let vV(𝖦𝗋𝗂𝖽) be a grid-point, and consider the 1×1 square [v0.5,v+0.5)×[v0.5,v+0.5). If intersects this square, then we include v in V(). Whenever u,vV() are adjacent grid points, Highway() contains the edge {u,v}E(𝖦𝗋𝗂𝖽). If a[1,1] we let w assign every edge in Highway() the weight a2+1|a|+1, which is the asymptotic ratio between the Euclidean distance of points on and the number of edges taken along the grid path Highway(). Otherwise we write as x=a1(yb) with a1[1,1] and use weight a2+1|a1|+1. All off-highway edges have weight .

This weight assignment guarantees a discrepancy of at most 1 between Euclidean distances and grid distances along Highway(). The proof of Lemma 9 appears in [7].

Lemma 9.

Let Highway() denote the highway that approximates a line of the form y=ax+b. Then for any two points u,vV(Highway()), |distw(u,v)uv2|1.

The highway transformation can also be applied to a line segment s. We use the same notation Highway(s).

3.2 The Hierarchical Highway Construction

We are trying to find a weight assignment for the finite grid [n]×[n] in order to prove Theorem 8. The construction is parameterized by (ki)1im, where k1=n1/5,ki+1=ki1/2, and m is minimum such that km<100.

The construction is based on a hierarchical system of lines in 2 which will eventually be embedded as highways in the grid. The lines at level i have angles selected from (θi,j)0j<ki, where θi,j=πjki. Fixing i and one such angle θi,j, there are many lines with angle θi,j, spaced at distance ki4. For i[1,m],j[0,ki1],t, define

i,j,t={(x,y)2|ycosθ=xsinθ+tki4}.

Define 𝖫𝗂𝗇𝖾𝗌[i]={i,j,t} to be the set of all lines at level i.

We cannot choose a weight function W(n) that agrees with wi,j,t for every line i,j,t due to intersections. Our solution is to avoid this issue by removing all line intersections, which introduces distortions in distances that must be bounded.

Below we define a procedure to remove parts of i,j,t, leaving a set of line segments i,j,t. Define 𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i]=i,j,t to be the set of all line segments at level i. If O is an object or collection of objects, define

Fat(O,δ)={pqO such that pq2δ}

to be all points within distance δ of O. Specifically, Fat(,δ) is a strip if is a line, and a hippodrome if is a segment.

Once 𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[1],,𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i1] are constructed, we construct 𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i] as follows. For each i,j,t𝖫𝗂𝗇𝖾𝗌[i] initialize i,j,t and proceed to remove parts of in Steps 1 and 2.

Step 1.

Set Fat(𝖫𝗂𝗇𝖾𝗌[i]{},ki), i.e., we remove every part of within distance ki of any other line at level i.

Step 2.

For each segment si<i𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i] such that Fat(s,ki), let AB¯=Fat(s,ki). If AB2ki, set AB¯. Otherwise, let Bi,j,t be such that AB=ki and BAB¯, and set AB¯. See Figure 4. Define i,j,t=, and include all line segments of i,j,t in 𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i].

(A)
(B)
Figure 4: Illustrations of various cases in Step 2. (A) and s intersect. The segment Fat(s,ki) is removed from . (B) and s do not intersect. Left: AB¯ki and AB¯ is removed from . Right: AB¯<ki and B is such that AB¯=ki is removed from .

The weight assignment W(n) is now constructed as follows. For each line segment si𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i], let W(n) agree with ws at all edges in the corresponding highway segment Highway(s). All edges not appearing in any line segment have weight 2.

Lemma 10.

Fix any s𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i], s𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i], where ss and ii. For any points us,us, uv2ki.

Proof.

Steps 1 and 2 ensure that all remaining points on i,j,t lie outside

Fat(i<i𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i](𝖫𝗂𝗇𝖾𝗌[i]{i,j,t}),ki),

and that any two consecutive segments on i,j,t are separated by distance at least ki. This implies that the Euclidean distance between any us and us is at least ki.

Lemma 11 shows that distances under W(n) are approximately Euclidean, up to a multiplicative stretch of 1+O(ki1) and additive stretch O(ki4), for every index i.

Lemma 11.

For any u,v[n]2 and i[m].

uv21distW(n)(u,v)uv2+O(ki1uv2+ki4).
Proof.

Observe that the highways corresponding to all segments in i𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i] are vertex-disjoint. Thus, every grid path P from u to v can be written as B0A1B1A2B2AkBk, where each AjHighway(s) for some si𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i] and each Bj is disjoint from all highway segments, and therefore consists of only weight-2 edges. (One or both of B0,Bk may be empty.) By Lemma 9, W(Aj) is at least the Euclidean distance between its endpoints minus one, and W(Bj) is at least the Euclidean distance multiplied by 2, which implies that W(Bj) is at least the Euclidean distance plus 1 for 1jk1, so W(P) is at least uv21.

Turning to the upper bound, We bound the distance distW(n)(u,v) by explicitly constructing a path that stays within the vicinity of a single line i,j,t. Since level-i lines occur at angular intervals of πki and parallel lines are spaced ki4 apart, we can always find an =i,j,t satisfying the following properties. First, the difference in angle between and uv¯ is at most π2ki. Second, the distance from u to is at most ki4/2. Let A and B be the closest grid points on Highway() from u and v respectively. It follows that

distW(n)(u,A)+distW(n)(v,B)=O(ki4+u,v2sin(π2ki))=O(ki4+ki1uv2). (2)

It remains to bound distW(n)(A,B). A trivial upper bound is distW(n)(A,B)22AB2, so if AB2<100ki4 we are done. Henceforth we shall assume that AB2100ki4. We would prefer to follow the A-B path along Highway(), but sections of this highway have effectively been removed by Steps 1 and 2 of the construction. We bound the stretch induced by the gaps in the highway introduced in Steps 1 and 2 separately.

Step 1 Stretch.

Fix a direction θi,j different from ’s direction θi,j. Whenever intersects a line with angle θi,j, Step 1 causes Highway() to lose kisin|θi,jθi,j|=O(ki2) edges. There are ki angles, and parallel lines with angle θi,j are spaced ki4 apart, so the total number of edges removed from the A-B path in Highway() in Step 1 is

O(ki2kiAB2ki4)=O(ki1AB2). (3)

The additive stretch induced by walking across the gaps induced by Step 1 is also O(ki1AB2) as all these edges have weight 2.

Step 2 Stretch.

Whenever part of Highway() is removed by Step 2 we do not walk precisely in the direction of but take a detour to a lower level highway. Suppose that in Step 2, a segment si<i𝖲𝖾𝗀𝗆𝖾𝗇𝗍𝗌[i] causes an interval CD¯ of to be removed. Define E,F to be the points on s closest to C,D, respectively. When our path reaches C, we walk from C to E, then to F along Highway(s), then to D. See Figure 5. By construction CE2,DF2=O(ki). Since EF2CD2 and by Lemma 9 distW(n)(E,F)=EF2±1, the additive stretch due to the conflict with s is at most

distW(n)(C,E)+distW(n)(E,F)+distW(n)(F,D)distw(C,D)=O(ki).

The last task is to bound the number of such segments interfering with the A-B path. Observe that s is a segment of a line at level i1 or lower. Thus, by Lemma 10 any two such segments s,s are at distance at least ki1ki2, and the total additive stretch caused by Step 2 detours is

O(kiAB2ki2)=O(ki1AB2). (4)
(A)
(B)
Figure 5: Step 2 detours from the proof of Lemma 11. (A) The case when segment s intersects . (B) When segment s does not intersect , but Fat(s,ki) does.

Combining Equations 2, 3, and 4, we conclude that

distW(n)(u,v) distW(n)(u,A)+distW(n)(A,B)+distW(n)(B,v)
uv+O(k1AB2+ki1uv2+ki4)
=uv2+O(k1uv2+kk4).

Proof of Theorem 8.

Recall that by the definition of the sequence (ki), for any pair of points u,v with Euclidean distance d=uv2>1009, there exists some index 1im such that ki[d1/91,d2/9]. Applying Lemma 11, we have

distW(u,v) uv2+O(1kiuv2+ki4)uv2+O(uv28/9).

The theorem holds trivially when d1009, which completes the proof of Theorem 8.

In the full version [7] we give a black-box reduction from any finite construction on [n]×[n], like that of Theorem 8, to a construction on ×Z, yielding Theorem 7.

4 Experimental Findings in the Squishy Grid

If Question 2 seems too daunting, a natural idea is to simplify the problem by considering only monotone paths, that is, paths that use the fewest number of edges.

Question 3.

Define monodistw(u,v) to be the length of the shortest u-v path that uses uv1 edges. Is there a distribution 𝒟 over 0 such that if 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟] is a randomly weighted graph, for all u,vV(𝖦𝗋𝗂𝖽), 𝔼(monodistw(u,v))=(1±o(1))uv2?

At first glance this problem may seem easier, or more plausible, than Question 2. Whereas it is an open problem finding a distribution 𝒟 satisfying Equation 1 (the time constant in the 0 and 45 directions are 1), this is nearly trivial when we consider monodist. Refer to [7] for proof.

Lemma 12.

There exists a distribution 𝒟 on 0 such that

limn𝔼(monodistw(𝟎,ne0))n=limn𝔼(monodistw(𝟎,ne45))n=1.

Let Bmono(t)={u2monodistw(𝟎,u)t} and mono(𝒟) be the limiting shape of Bmono(t)/t in 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟] as t. Thus, mono(𝒟) coincides with the L2-ball in the eight intercardinal directions N, E, S, W, NE, SE, SW, NW. If mono(𝒟) were convex, then it would have to be quite close to the L2-ball. Unfortunately, our experiments show that mono(𝒟) is not convex, which casts serious doubt on Question 3 having an affirmative answer. See Figure 6.

Refer to caption Refer to caption
(A) (B)
Figure 6: (A) The stretch of monodistw(𝟎,neθ)/neθ2, as a function of the angle θ[0,π2], expressed in radians. (B) The shape of mono(𝒟ϵ).

In retrospect, Question 3 is less likely than Question 2 to be answered in the affirmative since monodistw(𝟎,(n,m)), mn, is much more sensitive to small deviations in m than distw(𝟎,(n,m)) Considering the cases when m=0,m=0.1n, and m=n, monodistw(𝟎,(n,m)) is the minimum of (n+00)=1,(n+0.1n0.1n)1.39n, and (2nn)4n different paths, respectively. This sharp jump from constant to exponential in the vicinity m=0 does not exist in Question 2. Assuming the variance of 𝒟 is sufficiently large, distw(𝟎,ne0) is the minimum of an exponential number of plausible shortest paths.

4.1 Discrete Distributions for First Passage Percolation

When dealing with discrete distributions the most natural measure of complexity is support size. Therefore, we study Question 2 experimentally by considering the space of 2- and 3-point distributions. For a fixed integer k, the k-point distribution 𝒟({(pi,xi)}i=1k), is such that Prw0𝒟(w0=xi)=pi. It is determined by 2k1 parameters, as pk=1(p1++pk1).

4.1.1 Experimental Methodology

To identify locally optimal distributions among k-point discrete distributions of the form 𝒟({(pi,xi)}i=1k), we employ a two-layer iterative strategy:

  • We first perturb the probability vector (p1,,pk).

  • For fixed probabilities (p1,,pk), we generate k random initial values x1,x2,,xk and then alternate between the following two update steps:

    Perturbation Step.

    We perturb each value xi and compute the estimated directional stretch for both θ=0 and θ=π4. Let μθ be the empirical ratio distw(𝟎,neθ)n, obtained from this round of simulation. Here n 30,000.

    Normalization Step.

    We normalize the values {xi}i=1k by setting xixiμ0μπ4. This scaling ensures that the average stretch along the cardinal and intercardinal directions remains close to 1, thereby facilitating comparisons between distributions.

4.1.2 2-Point Distributions

The best 2-point distribution identified with this method is 𝒟2, given below. Roughly speaking, every edge weight is either 0.41 or 4.75, 44% and 56% of the time, respectively.

𝒟2={(0.44273,0.41401),(0.55727,4.75309)}.

We find that 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟2] empirically approximates Euclidean distances up to stretch 1.00750, i.e., up to (3/4)% error. Figure 7(A) plots the observed stretch distw(𝟎,neθ)/neθ2 as a function of the angle θ[0,π/2). Figure 7(B) shows the set of all grid points whose empirical graph distance from the origin first exceeds n. The resulting boundary is visually close to a Euclidean circle, suggesting that 𝒟2 induces an approximately isotropic metric in expectation.

Refer to caption Refer to caption
(A) (B)
Figure 7: Results on the 2-point distribution 𝒟2.(A) Stretch distw(𝟎,neθ)/neθ2, as a function of the angle θ[0,π2]. (B) The empirical distance-n ball in 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟2].

Note that 𝔼(w0𝒟2)2.83, meaning that distw(𝟎,ne0)n is likely to be realized by a highly non-monotone path, consistent with the observations in Figure 6.

4.1.3 3-Point Distributions

𝒟2 does not leave much room for improvement, but we are able to eke out a slightly better empirical stretch of 1.00622 with a 3-point distribution 𝒟3.

𝒟3 =𝒟({(0.34809,0.20647),(0.25735,2.51586),(0.39456,9.32215)}).

See Figure 8 for visual representations of the empirical stretch of 𝒟3.

Refer to caption Refer to caption
(A) (B)
Figure 8: Results on the 3-point distribution 𝒟3. (A) Stretch distw(𝟎,neθ)neθ2, as a function of θ[0,π2]. (B) The empirical distance-n ball in 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟3].

5 Conclusion

In this paper we asked how well the integer grid graph 𝖦𝗋𝗂𝖽 can approximate Euclidean distances, if weighted appropriately. We gave two deterministic weighting schemes that answer Question 1, the best one achieving a polynomial additive stretch, that is, 𝔼[distw(u,v)]=uv2+O(uv21δ) for δ=1/9. Improving the additive stretch to something subpolynomial uv2o(1) seems to require a new approach to the problem. Our “highway” method seems incapable of achieving subpolynomial additive error, and even if Question 2 is answered affirmatively (choosing weights i.i.d. from some distribution 𝒟), the tail bounds here only give polynomial additive error [2].

We conjecture that no weighting achieves subpolynomial additive error.

Conjecture 13.

The additive error distw(u,v)uv2 of w:E(𝖦𝗋𝗂𝖽)0 is a function of d=uv2.

Weak Conjecture.

There is no w with constant additive error O(1), independent of d.

Strong Conjecture.

There is no w with subpolynomial additive error do(1).

In the randomized setting, Question 2 is equivalent to an old problem in first passage percolation [2, 11] that is unsolved, but has some empirical evidence in its favor. Alm and Deijfen [1] showed that when 𝒟 is a certain Fisher distribution, that 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟] approximates Euclidean distances to less than 1% error. In this paper, we demonstrated that a simple 2-point distribution 𝒟2 achieves 0.75% error, and that a 3-point distribution 𝒟3 achieves 0.622% error. It is an interesting open problem to prove that in 𝖦𝗋𝗂𝖽[w]𝖦𝗋𝗂𝖽[𝒟2], the expected error of distw is less than 1%.

References

  • [1] Sven Erick Alm and Maria Deijfen. First passage percolation on 2: A simulation study. J. Stat. Phys., 161:657–678, 2015. doi:10.1007/s10955-015-1356-0.
  • [2] Antonio Auffinger, Michael Damron, and Jack Hanson. 50 Years of First-Passage Percolation. University Lecture Series. American Mathematical Society, 2017.
  • [3] Alan M. Baker. The theory of linear forms in logarithms. In Transcendence theory: advances and applications (A. Baker, D. W. Masser, Eds.), pages 1–27. Academic Press, London, 1976.
  • [4] Glencora Borradaile and David Eppstein. Near-linear-time deterministic plane Steiner spanners for well-spaced point sets. Comput. Geom., 49:8–16, 2015. doi:10.1016/J.COMGEO.2015.04.005.
  • [5] Yann Bugeaud. Distribution Modulo One and Diophantine Approximation, pages 1–14. Cambridge University Press, 2012.
  • [6] Dmitri Burago and Sergei Ivanov. Uniform approximation of metrics by graphs. Proc. Amer. Math. Soc., 143:1241–1256, 2015.
  • [7] Zixi Cai, Kuowen Chen, Shengquan Du, Arnold Filtser, Seth Pettie, and Daniel Skora. The squishy grid problem. CoRR, abs/2507.23105, 2025. doi:10.48550/arXiv.2507.23105.
  • [8] Hsien-Chih Chang, Robert Krauthgamer, and Zihan Tan. Almost-linear ϵ-emulators for planar graphs. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 1311–1324, 2022. doi:10.1145/3519935.3519998.
  • [9] John H. Conway and Charles Radin. Quaquaversal tilings and rotations. Inventiones Mathematicae, 132:179–188, 1998.
  • [10] J. Theodore Cox and Richard Durrett. Some limit theorems for percolation with necessary and sufficient conditions. Annals of Probability, 9:583–603, 1981. doi:10.1214/aop/1176994364.
  • [11] John M. Hammersley and Dominic J. A. Welsh. First-passage percolation, subadditive processes, stochastic networks, and generalized renewal theory. In Bernoulli 1713, Bayes 1763, Laplace 1813: Anniversary Volume, Proceedings of an International Research Seminar, Statistical Laboratory, University of California, Berkeley, 1963, pages 61–110. Springer, 1965.
  • [12] Harry Kesten. Aspects of first passage percolation. In École d’Été de Probabilités de Saint Flour XIV, Lecture Notes in Mathematics, 1180. Springer, 1986.
  • [13] Lauwerens Kuipers and Harald Niederreiter. Uniform Distribution of Sequences, pages 118–132. Wiley, 1974.
  • [14] János Pach, Richard Pollack, and Joel Spencer. Graph distance and Euclidean distance on the grid. In Topics in Combinatorics and Graph Theory: Essays in Honour of Gerhard Ringel, pages 555–559. Springer, 1990.
  • [15] Charles Radin. The pinwheel tilings of the plane. Annals of Mathematics, 139:661–702, 1994.
  • [16] Charles Radin and Lorenzo Sadun. The isoperimetric problem for pinwheel tilings. Commun. in Math. Phys., 177:255–263, 1996.