A Polynomial Coreset for Furthest Neighbor in Planar Metrics
A furthest neighbor data structure on a metric space $(V,\mathrm{dist})$ and a set $P \subseteq V$ answers the following query: given $v \in V$, output $p \in P$ maximizing $\mathrm{dist}(v,p)$; in the approximate version, it is allowed to report any…
Authors: Kacper Kluk, Hung Le, Wojciech Nadara
A P olynomial Coreset for Furthest Neighbor in Planar Metrics * Kacper Kluk † Hung Le ‡ W ojciech Nadara § Marcin Pilipczuk ¶ Hector Tierno ‖ V inayak ** Abstract A furthest neighbor data structure on a metric space ( V , dist ) and a set P ⊆ V answers the following query: given v ∈ V , output p ∈ P maximizing dist ( v , p ) ; in the approximate version, it is allowed to report any p ∈ P with dist ( v , p ) ≥ ( 1 − ϵ ) max p ′ ∈ P dist ( v , p ′ ) for an accuracy parameter ϵ ∈ ( 0 , 1 ) . A particular type of approximate furthest neighbor data structure is an ϵ -coreset: a small subset Q ⊆ P such that for every query v ∈ V there is a feasible answer p ∈ Q . Our main result is that in planar metrics there always exists an ϵ -coreset for furthest neighbors of size bounded polynomially in ( 1 /ϵ ) . This improves upon an exponential bound of Bourneuf and Pilipczuk [ 9 ] and resolves an open problem of de Berg and Theocharous [ 20 ] for the case of polygons with holes. On the technical side, we develop a connection between ϵ -coreset for furthest neighbors and an invariant of a metric space that we call an ϵ -comatching index — a sibling of ϵ -(semi-)ladder index, a.k.a, ϵ -scatter dimension, as defined by Abbasi et al [ 1 ] . While the ϵ -(semi-)ladder index of planar metrics admits an exponential lower bound, we show that the ϵ -comatching index of planar metrics is polynomial , all in 1 /ϵ . The exponential separation between ϵ -(semi-)ladder and ϵ -comatching is rather surprising, and the proof is the main technical contribution of our work. Building on our new technical ideas, we provide two extensions: 1. W e show an ϵ -coreset for k -center in planar metrics of size polynomial in ( 1 /ϵ ) for fixed k (furthest neighbor coreset is a special case of k -center when k = 1). W e complement this result with an exponential coreset lower bound of 2 Ω ( 1 /ϵ ) for k -center when k = 1 /ϵ . In the regime of fixed k , our result substantially improves the recent ϵ -coreset for k -center of Bourneuf and Pilipczuk [ 9 ] who showed a coreset bound O ( k ) poly ( 1 /ϵ ) . 2. W e extend all our results to metrics induced by graphs of bounded Euler genus, with a polynomial dependency on the genus in the bound on the size of the coreset. W e complement these upper bounds with a lower bound construction showing that, going beyond bounded genus graphs, e.g., minor-free graphs, the comatching index and ϵ -coreset for furthest neighbors must be exponential in 1 /ϵ . * K.K. and Ma.P . are supported by P olish National Science Centre SONA T A BIS-12 grant number 2022 / 46 / E / ST6 / 00143. W .N. is supported by European Union’s Horizon 2020 research and innovation programme, grant agreement No. 948057 — BOBR. H.L., Vinayak, and H.T . are supported by NSF grant CCF -2517033 and NSF CAREER A ward CCF -2237288. † Institute of Informatics, University of W arsaw , P oland. k.kluk@uw.edu.pl ‡ University of Massachusetts, Amherst, USA. hungle@cs.umass.edu § Institute of Informatics, University of W arsaw , P oland. w.nadara@uw.edu.pl ¶ Institute of Informatics, University of W arsaw , P oland. m.pilipczuk@uw.edu.pl ‖ University of Massachusetts, Amherst, USA. htierno@umass.edu ** University of Massachusetts, Amherst, USA. vvinayak@umass.edu Contents 1 Introduction 1 1.1 Our main results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Other results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2.1 Graphs of bounded genus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.2 Coreset for k -center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 Organization of the paper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 Overview of the Proof of Theorem 1.5 9 3 Preliminaries 12 3.1 VC dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.2 T ree decompositions of planar graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3 The routing lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4 F rom Comatching to Coreset: Proof of Theorem 1.4 15 4.1 H I T T I N G S E T LP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.2 The proof . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5 Comatching Bound in Planar Metrics: Proof of Theorem 1.5 17 5.1 Distance profiles and separation toolbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.2 R eduction to local instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3 R eduction to linked noncrossing instances . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3.1 T ree decomposition and separators . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3.2 The easily-coverable spanning tree . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.3.3 Good pairs with noncrossing links . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.4 Bounding linked noncrossing instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.4.1 Equidistant structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.4.2 F orbidden intersections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.4.3 Order around p ′′ and q ′′ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.4.4 A box, T ype A and T ype B pairs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4.5 T ype A and T ype B chains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.4.6 Final contradiction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6 Coreset for k -Center 30 6.1 k -Comatching to k -center ϵ -coreset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.2 R eduction from k -comatching to double ladder . . . . . . . . . . . . . . . . . . . . . . . . 33 7 The Size of Double L adders 34 7.1 Distance profiles and separation toolbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.2 R eduction to local double ladder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.3 R eduction to the linked noncrossing double ladder . . . . . . . . . . . . . . . . . . . . . 37 7.3.1 T ree decomposition and separators . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.3.2 Bounding bad triplets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.3.3 Good triplets with noncrossing links . . . . . . . . . . . . . . . . . . . . . . . . . . 38 7.4 Bounding linked noncrossing double ladder . . . . . . . . . . . . . . . . . . . . . . . . . . 38 7.4.1 Equidistant instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.4.2 F orbidden intersections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 7.4.3 Ordering ribs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 7.4.4 Constructing the final contradiction . . . . . . . . . . . . . . . . . . . . . . . . . . 41 8 P olygon with holes 43 9 Bounded genus graphs 44 10 L ower bounds 46 10.1 Beyond bounded genus graphs: Proof of Theorem 1.7 . . . . . . . . . . . . . . . . . . . 46 10.2 Large comatchings in trees: Proof of Theorem 1.12 . . . . . . . . . . . . . . . . . . . . . 49 10.3 Even larger comatchings in planar graphs: Proof of Theorem 1.13 . . . . . . . . . . . . 50 1 Introduction F urthest neighbor . Nearest neighbor and furthest neighbor searches are basic and well-studied proximity problems in computational geometry . In the furthest neighbor problem, the goal is to preprocess a given set P of points in a metric space ( V , dist ) to quickly answer furthest neighbor queries : for a point v ∈ V , return a point p ∈ P that maximizes dist ( v , p ) [ 3 , 42 , 19 , 46 , 20 ] . In the approximate version, an accuracy parameter ϵ > 0 is fixed and we want to return any p ∈ P with dist ( v , p ) ≥ ( 1 − ϵ ) max p ′ ∈ P dist ( v , p ′ ) . The furthest neighbor problem is closely related to computing the diameter of point sets. In Euclidean spaces, computing approximate furthest neighbors can be efficiently reduced to computing approximate nearest neighbors [ 36 ] . In the graph setting, the distance to the furthest neighbor of a vertex is called the eccentricity of the vertex. Computing the diameter and eccentricities is a fundamental graph problem that has been studied for decades. A natural approach to the furthest neighbor problem is to identify , in the preprocessing phase, a small set Q ⊆ P that correctly represents P : for any v ∈ V , there is a valid answer p ∈ Q . Then, answering a query boils down to a search in Q ; if Q is small, even an exhaustive search can be efficient. Such a set Q is a coreset for the furthest neighbor problem. Definition 1.1 (F urthest Neighbor ϵ -Coreset). Given a metric space ( V , dist ) , a set P ⊆ V and a real ϵ > 0 , a furthest neighbor ϵ -coreset is a subset Q ⊆ P such that for every v ∈ V there exists q ∈ Q such that: dist ( v , q ) ≥ ( 1 − ϵ ) max { dist ( v , p ) | p ∈ P } . In general, a coreset of a dataset is a small subset such that a solution of a problem on the coreset gives a good (approximate) solution for the problem on the original dataset. Coreset has been a very well-studied topic since it offers a simple approach for solving problems in massive datasets: simply construct a coreset of the (big) input and solve the problems on the coreset. A particularly productive line of research is on coresets for clustering problems , specifically k -means, k - median, and ( k , z ) -clustering, for all well-studied metrics, e.g., general metrics [ 32 , 18 , 11 ] , Euclidean metrics [ 32 , 33 , 18 , 11 , 17 ] , doubling metrics [ 32 , 15 , 37 ] , and planar / minor-free metrics [ 4 , 12 , 17 ] . F or these problems, good coresets (of polylogarithmic size or smaller) are known to exist, and known bounds are (nearly) optimal [ 4 ] . Unfortunately , without any additional assumptions, the question for a coreset for the furthest neighbor problem is uninteresting: There exists a very simple set of n points such that any coreset for furthest neighbor of the point set has size Ω ( n ) [ 9 ] . F or Euclidean and doubling metrics, a simple packing bound gives a coreset of size ϵ − O ( d ) , which is optimal up to a small constant factor in the exponent [ 14 ] . Therefore, unlike other clustering counterparts, coresets for furthest neighbor suffer from the curse of dimensionality: the size of the coresets grows exponentially with the dimension. In planar metrics, which are the shortest path metrics of edge-weighted planar graphs, Bourneuf and Pilipczuk [ 9 ] construct an ϵ -coreset for furthest neighbors 1 with an exponential size of 2 poly ( 1 /ϵ ) where poly ( · ) is a polynomial function. Despite its huge size, this result shows that it is possible to construct an ϵ -coreset for furthest neighbors whose size is independent of n . As we will discuss in more detail below , there is a crucial bottleneck in their technique, and the exponential dependency on 1 /ϵ is the barrier . In this work, we overcome this barrier and construct the first ϵ -coreset of size polynomial in 1 /ϵ for planar metrics. Theorem 1.2. Given a point set P in a planar metric ( V , dist ) , and a parameter ϵ ∈ ( 0 , 1 ) , there exists a furthest neighbor ϵ -coreset of size poly ( 1 /ϵ ) for P that can be constructed in polynomial time. Theorem 1.2 implies similar results for many geometric settings in the plane. R ecently , de Berg and Theocharous [ 20 ] studied ϵ -coreset for simple polygon, and constructed an ϵ -coreset of size O ( 1 /ϵ 2 ) . They asked if such a coreset exists for polygon with holes , and suggested that a different 1 Their coreset results are for k -center in which the furthest neighbor coreset is a special case, specifically when k = 1. 1 approach is needed. Theorem 1.2 resolves their question in the affirmative. (W e discuss formally how Theorem 1.2 yields an ϵ -coreset for furthest neighbor in polygon with holes in Section 8 .) Structural invariants of metric spaces. Consider the following very simple greedy algorithm for constructing a furthest neighbor ϵ -coreset: as long as there exists a point v ∈ V that has no ( 1 − ϵ ) -approximate furthest neighbor in Q , then add the furthest neighbor q of v in P to Q ; v is called the witness for (the addition of) q . T o bound the size of Q , let ℓ = | Q | and q 1 , . . . , q ℓ be the points in Q ordered by the greedy algorithm, i.e., q j is added after q i whenever i < j . Let L = { ( q 1 , v 1 ) , . . . , ( q ℓ , v ℓ ) } be the sequence of pairs where v i is witness of q i , i ∈ [ ℓ ] . By a simple bucketing trick, one could assume that the distances dist ( q i , v i ) are roughly the same, for simplicity , say equal to R . (This trick incurs a loss of 1 /ϵ factor in the size of the final ϵ -coreset, which is considered negligible here.) As q j is added after q 1 , . . . , q j − 1 , we have dist ( q i , v j ) < ( 1 − ϵ ) R for every i < j . Abbasi et al. [ 1 ] identified the maximum length of such a structure L as a critical invariant of a metric space that governs the complexity of a natural algorithmic approach to a wide family of clustering problems and called it an ϵ -scatter . Bourneuf and Pilipczuk [ 9 ] observed that the structure L resembles the notion of a semi-ladder in the theory of structurally sparse graphs [ 31 , 48 , 2 ] . The main focus of this theory are classes of graphs that can be defined using first-order logic in classes of sparse graphs [ 7 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 34 , 35 ] , such as planar graphs, graphs ex- cluding a fixed minor , or , more generally , bounded expansion graphs and nowhere dense graphs [ 43 ] . This area experienced rapid growth in the last decade, with the main goal being a full understanding of the limits of efficient first-order model checking algorithms. W e refer to a recent survey [ 47 ] for a broader introduction. Let us make a small detour into the theory of structurally sparse graphs. Let H be a simple unweighted graph. Let L = ( p i , q i ) ℓ i = 1 be a sequence of vertices in H . W e say that L is a semi-ladder if p i q i / ∈ E ( H ) for every i ∈ [ ℓ ] , but p i q j ∈ E ( H ) for every 1 ≤ i < j ≤ ℓ ; a ladder if for every i , j ∈ [ ℓ ] it holds that p i q j ∈ E ( H ) if and only if i < j ; a comatching if for every i , j ∈ [ ℓ ] it holds that p i q j ∈ E ( H ) if and only if i = j . Note that a semi-ladder does not specify adjacency between p i and q j for i > j and none of the above definitions cares about the adjacencies between the p -vertices and between the q -vertices. A simple Ramsey argument shows that a huge semi-ladder contains a large ladder or a large comatching. In the setting of structurally sparse graphs, the graph H is first-order interpreted in some other graph G , that is, its edges represent pairs ( u , v ) of vertices of G satisfying a fixed first-order formula φ ( u , v ) . A classic “benchmark” formula is “the distance between u and v is at most d ” for a constant d . F ollowing this analogy , in our “metric” setting, the graph H represents pairs of vertices that are “close”: whose distance is at most ( 1 − ϵ ) R . This gives the following definition (see Figure 1 ). p 1 q 1 p 2 q 2 p 3 q 3 p 4 q 4 p 5 q 5 (a) ϵ -semi-ladder p 1 q 1 p 2 q 2 p 3 q 3 p 4 q 4 p 5 q 5 (b) ϵ -ladder p 1 q 1 p 2 q 2 p 3 q 3 p 4 q 4 p 5 q 5 (c) ϵ -comatching Figure 1: The dotted line indicates distance ≥ R , and the solid line indicates distance ≤ ( 1 − ϵ ) R . 2 Definition 1.3 (metric ladders). Let ϵ > 0 be an accuracy parameter and let ( V , dist ) be a metric space. A sequence L = ( p i , q i ) ℓ i = 1 of points in V is an ϵ -semi-ladder if for every i ∈ [ ℓ ] we have dist ( p i , q i ) > R while for every 1 ≤ i < j ≤ ℓ we have dist ( p i , q i ) ≤ ( 1 − ϵ ) R for some R > 0 ; an ϵ -ladder if for every i , j ∈ [ ℓ ] we have dist ( p i , q j ) ≤ ( 1 − ϵ ) R if i < j and dist ( p i , q j ) > R otherwise, for some R > 0 ; an ϵ -comatching if for every i ∈ [ ℓ ] we have dist ( p i , q i ) > R while for every i , j ∈ [ ℓ ] , i = j we have dist ( p i , q i ) ≤ ( 1 − ϵ ) R for some R > 0 . The notion of an ϵ -semi-ladder concides with the notion of an ϵ -scatter of [ 1 ] , but we prefer the former name as the name “semi-ladder” is well established in the theory of structurally sparse graphs. F ollowing the nomenclature of structurally sparse graphs, we call the maximum length of an ϵ -semi-ladder , ϵ -ladder , or ϵ -comatching of a metric space ( V , dist ) the ϵ -semi-ladder index , ϵ -ladder index , or ϵ -comatching index , respectively . (The ϵ -semi-ladder index is called an ϵ -scatter dimension in [ 1 ] .) Bourneuf and Pilipczuk [ 9 ] were first to observe the connection between the notions of ϵ -scatter of [ 1 ] and the aforementioned concepts from the theory of structurally sparse graphs. They adopted the crucial tools from the latter to the metric settings and proved that, for any proper minor-closed graph class G , the class of metrics induced by edge-weighted graphs from G has ϵ -semi-ladder index bounded by 2 2 poly G ( 1 /ϵ ) . Note that this result applies to the classes of planar graphs, graphs embeddable on a fixed surface, or graphs of bounded treewidth, since they are all minor-closed. It also immediately implies a 2 poly ( 1 /ϵ ) bound on the size of the furthest neighbor coreset in planar metrics constructed by the aforementioned simple greedy algorithm. Unfortunately , the exponential size is the best possible with this approach: there exists an ϵ -ladder in planar metrics of size 2 Ω ( 1 /ϵ ) as constructed by Sokołowski [ 48 ] . Hence, to bypass the exponential barrier , we need to depart from the greedy approach, which is closely tied to ϵ -semi-ladder index. T o motivate our new approach, consider now the following special case: the metric ( V , dist ) is given by a simple unweighted graph and for every v ∈ V it holds that max p ∈ P dist ( v , p ) = R for some integer R . Furthermore, ϵ < 1 R , that is, ( 1 − ϵ ) R > R − 1. In other words, a furthest neighbor ϵ -coreset Q need to include, for every v ∈ v , at least one p ∈ P with dist ( v , p ) = R . Let Q be an inclusion-wise minimal ϵ -coreset in this special case. By the minimality , for every p ∈ Q there exists v p ∈ V with p being the only point in Q at distance exactly R . W e observe that ( v p , p ) p ∈ Q is an ϵ -comatching in V ! So, planar metrics may have exponential ϵ -ladder index [ 48 ] , but maybe a better coreset for furthest neighbor can be obtained by looking at comatchings? If one wishes to follow this approach, there are two major obstacles: • Obstacle (i). showing that ϵ -comatching index and ϵ -coreset are polynomially related. • Obstacle (ii). bounding the size of ϵ -comatching index as a polynomial function of 1 /ϵ . Obstacle (ii) is clearly the most difficult: ϵ -comatching and ϵ -semi-ladder are very similar (see Definition 1.3 ), and there is currently no evidence to support that an exponential separation between them exists. Nevertheless, we take exactly this approach and resolve both obstacles along the way . 1.1 Our main results Our first result is a formal connection between the ϵ -comatching index and a coreset for furthest neighbor , overcoming obstacle (i). Unfortunately , the above minimality argument stops working if we consider weights. Instead, we devise a new reduction based on linear programming. Specifically , 2 The subscript G in poly G indicates the dependency on the size of the excluded minors of the graph family G . 3 we round a set-cover-like linear program for metrics where the ball set system has a bounded VC- dimension. And luckily , the ball set system of planar metrics has VC-dimension 4. Thus, our reduction from ϵ -coreset to ϵ -comatching exploits planarity in a crucial way via VC -dimension. This contrasts with the reduction from ϵ -coreset to ϵ -semi-ladder in the prior work [ 9 ] , which holds for any metric space. Let B ( v , r ) = { u ∈ V | dist ( u , v ) ≤ r } be a ball of radius r ≥ 0 centered at v . Let B V = ( V , { B ( v , r ) } v ∈ V , r ∈ R + ) be the set system with ground set V , and all the balls as the family of sets. Theorem 1.4 (Coreset to Comatching). Let ( V , dist ) be a metric space, P ⊆ V be a set of points, and a parameter ϵ ∈ ( 0 , 1 ) . Let L ( ϵ ) be the ϵ -comatching index of ( V , dist ) . Let d be the VC -dimension of B V . Then there exists a furthest neighbor ϵ -coreset for P of size O ( d ϵ − 2 · L ( ϵ 2 / 4 ) log L ( ϵ 2 / 4 )) that is computable in polynomial time. If ( V , dist ) is a planar metrics, it is known that B V has VC-dimension at most 4; more generally , for K h -minor-free metrics, the VC-dimension is at most h − 1 [ 16 , 39 ] . Thus, Theorem 1.4 reduces the algorithmic question of finding a coreset to a purely combinatorial question of the ϵ -comatching index of planar metrics. Our next result shows that the ϵ -comatching index of planar metrics is bounded polynomially in 1 /ϵ , fully resolving obstacle (ii). W e found this result rather surprising, given the exponential lower bound for the ϵ -semi-ladder index by Sokołowski [ 48 ] . Theorem 1.5 (Comatching in Planar Metrics). There exists a polynomial L planar such that for every ϵ ∈ ( 0 , 1 ) and every planar metric ( V , dist ) , the ϵ -comatching index of ( V , dist ) is at most L planar ( 1 /ϵ ) . Theorems 1.4 and 1.5 give immediately the main result of this work, namely Theorem 1.2 . Proof (Proof of Theorem 1.2 ): By Theorem 1.5 , we have L ( ϵ ) = poly ( 1 /ϵ ) and hence L ( ϵ 2 / 4 ) = poly ( 1 /ϵ ) . As VC dimension of B V is at most 4 in planar metrics, by Theorem 1.4 , we can construct a furthest neighbor ϵ -coreset of size O ( ϵ − 2 L ( ϵ 2 / 4 ) log L ( ϵ 2 / 4 )) = poly ( 1 /ϵ ) . □ W e give an overview of the proof of Theorem 1.5 in Section 2 . 1.2 Other results W e extend our main results in Section 1.1 in two different directions: 1. W e investigate other minor-closed graph families. W e show that bounded-genus metrics have polynomial ϵ -comatching index. W e also establish exponential lower bounds on ϵ -comatching index for other families, including bounded-treewidth metrics (and therefore, general minor- free metrics). 2. W e extend the coreset for furthest neighbors to k -center , establishing an ϵ -coreset of size poly ( 1 /ϵ ) for a fixed k in planar and bounded-genus metrics, and provide an exponential lower bound of 2 Ω ( 1 /ϵ ) when k = 1 /ϵ . T o get the upper bound, we introduce a variant of ϵ -comatching called ( k , ϵ ) -comatching. The bulk of the technical details is to bound the size of ( k , ϵ ) -comatching. F or ϵ -comatching, there is a clear symmetry between p -points and q -points. However , ( k , ϵ ) -comatching does not have the same symmetry , and hence bounding its size is much more demanding. Our results are summarized in T able 1 . W e start with bounded genus graphs. 4 Problem Graph class Bounds (UB / LB) R eference ϵ -comatching / Furthest neighbor ϵ -coreset Simple polygons O ( 1 /ϵ 2 ) (UB) [ 20 ] Planar poly ( 1 /ϵ ) (UB) Thm. 1.2 Bounded genus g poly ( g , 1 /ϵ ) (UB) Thm. 1.6 T reewidth ≤ 5 2 Ω ( 1 /ϵ ) (LB) Cor . 1.8 K 5 -minor free 2 Ω ( 1 /ϵ ) (LB) Cor . 1.8 H -minor-free 2 poly H ( 1 /ϵ ) (UB) [ 9 ] ϵ -coreset for k -Center T rees Ω ( 2 1 /ϵ ) when k ∼ 1 /ϵ (LB) Thm. 1.11 Planar ( 1 /ϵ ) 2 O ( k ) for fixed k (UB) Thm. 1.10 Ω ( 4 1 /ϵ ) when k ∼ 1 /ϵ (LB) Thm. 1.11 Bounded genus g poly ( g ) · ( 1 /ϵ ) 2 O ( k ) (UB) Thm. 1.18 H -minor-free k poly H ( 1 /ϵ ) (UB) [ 9 ] T able 1: Summary of bounds of ϵ -coreset for furthest neighbor and k -center in various graph classes. (UB) marks upper bounds and (LB) marks lower bounds. 1.2.1 Graphs of bounded genus W e observe that our results for planar metrics generalize to metrics induced by graphs embeddable on any fixed surface. Theorem 1.6. F or any integer g ≥ 0 , ϵ ∈ ( 0 , 1 ) , and a metric space ( V , dist ) induced by a graph embedded in a surface of Euler genus at most g , the ϵ -comatching index of ( V , dist ) is bounded by O ( g 4 ϵ − 8 ) · L planar ( 1 /ϵ ) , where L planar comes from Theorem 1.5 . The proof of Theorem 1.6 follows the standard way of cutting a surface along O ( g ) shortest paths and individual edges. Theorem 1.6 , together with Theorem 1.4 , generalize Theorem 1.2 to metrics induced by graphs embeddable on a fixed surface; the size of the coreset now depends polynomially on 1 /ϵ and the Euler genus of the surface. Beyond surface-embedded graphs: lower bounds. The discussed results so far uncover a surpris- ing separation between ϵ -comatching and ϵ -ladder indices in planar and, more generally , bounded genus metrics. It is natural to ask how wide this phenomenon is, in particular , whether it applies to any proper minor-closed graph class. W e show that actually our results almost completely exhaust the plateau of positive results. As all lower bounds we present in this paper are for unweighted graphs, let us make a handy definition: for an (unweighted) graph G and an integer d ≥ 1, a d -comatching is a family M of pairs of vertices of G such that 1. for every ( p , q ) ∈ M , we have dist ( p , q ) > d ; 2. for every distinct ( p , q ) , ( p ′ , q ′ ) ∈ M , we have dist ( p , q ′ ) ≤ d . 5 Clearly , a d -comatching is an ϵ -comatching for any ϵ < 1 d + 1 . First, we give the following exponential lower bound on the size of d -comatching. Our construction is a modification of the construction of Sokołowski [ 48 ] , with a detailed analysis of its properties. Theorem 1.7 (Lower bound construction for furthest neighbor and comatchings). F or every in- teger k ≥ 3 there exists a graph G k with the following properties: 1. G k contains a ( 2 k − 1 ) -comatching of size 2 k . 2. G k admits a tree decomposition, where every bag is of size at most 6 and every adhesion is of size at most 2 (hence, in particular , it is of constant treewidth); 3. G k is K 3,4 -minor-free; 4. G k is K 5 -minor-free; 5. the Euler genus of G k is between 2 k − 3 and 2 k . Observe that if M is a d -comatching in G and P = { p | ( p , q ) ∈ M } , then for every ϵ < 1 d + 1 , any ϵ -coreset for furthest neighbor needs to store the entire P , as p is the only valid answer for the query q for any ( p , q ) ∈ M . Thus, we obtain the following direct corollary of Theorem 1.7 : Corollary 1.8. There exists a constant c > 0 such that for every ϵ ∈ ( 0 , 1 ) there exists a K 5 -minor-free graph of treewidth at most 5 where any ϵ -coreset for furthest neighbor must have size at least 2 c /ϵ . Note that Corollary 1.8 gives little space left outside graph classes of bounded genus. 1.2.2 Coreset for k -center F or a set X ⊆ ( V , dist ) , we define dist ( v , X ) = min x ∈ X dist ( v , x ) . In the k -center problem, the coreset preserves the maximum distance from any set of k centers to a point in P , as formally defined below . Definition 1.9 ( k -Center ϵ -Coreset). Given a point set P in a metric ( V , dist ) , a k -center ϵ -coreset for P is a subset Q ⊆ P such that for every set X ⊆ V of at most k potential centers, there exists a point q ∈ Q such that d ( q , X ) ≥ ( 1 − ϵ ) max { dist ( p , X ) | p ∈ P } . Observe that for k = 1, the k -center ϵ -coreset is exactly the ϵ -coreset for furthest neighbor . Bourneuf and Pilipczuk [ 9 ] showed that k -center in planar and minor-free metrics admits an ϵ -coreset of size O ( k ) poly ( 1 /ϵ ) ; the dependency on 1 /ϵ is exponential even when k = 1. F or a fixed k , we show that one can get a polynomial dependency on 1 /ϵ . T o complement our upper bound, we show an exponential lower bound when k ∼ 1 /ϵ ; our lower bound holds even for tree metrics . Theorem 1.10. Given a point set P in a planar metric ( V , dist ) , a number of centers k ∈ N , and a parameter ϵ ∈ ( 0, 1 ) , there exists a k -center ϵ -coreset of size 1 /ϵ 2 O ( k ) for P . Theorem 1.11. F or every ϵ ∈ ( 0, 1 / 2 ) , for k : = ⌈ 1 ϵ ⌉ − 2 , there exists 1. a tree metric such that any k -center ϵ -coreset must have size at least 2 1 /ϵ 4 ; 2. a planar metric such that any k -center ϵ -coreset must have size at least 4 1 /ϵ 4 . W e prove Theorems 1.10 and 1.11 by introducing variants of ϵ -comatching and d -matching, called ( k , ϵ ) -comatching and ( k , d ) -comatching , respectively . In a ( k , ϵ ) -comatching, one side, instead of being points, contains sets of points of size k . More precisely , each (ordered) pair in a ( k , ϵ ) - comatching M is of the form ( p , X ) where X is a set of k points. A ( k , d ) -comatching is similar to a d -comatching earlier for a positive integer d where the distance threshold is d . Note that a ( k , d ) -comatching is a ( k , ϵ )-comatching for any ϵ < 1 d + 1 . 6 The lower bound: ( k , d ) -comatching. Our lower bound is established via ( k , d ) -comatching in unweighted planar graphs. Specifically , we show two constructions. The first construction is a simple construction that gives a weaker bound, but constructs a tree; the second one gives a planar graph with a stronger lower bound. Both constructions rule out fully polynomial dependency on k and d . Theorem 1.12. F or every integer k ≥ 1 there exists a tree G k with a ( k , k ) -comatching of size 2 k . Theorem 1.13. F or every integers k , d ≥ 1 there exists a planar graph G k , d with a ( k , d ) -comatching of size at least 2 d k + 2 k if k ≤ d ; 3 k d + 1 d if d ≤ k . (Note that both bounds give 4 k for k = d .) Note that if M is a ( k , d ) -comatching, then for P = { p | ( p , X ) ∈ M } , and any ϵ < 1 d + 1 , any ϵ -coreset for k -center needs to keep the entire P , as p is the only valid answer for the query X for ( p , X ) ∈ M . Thus, by setting k = d = ⌈ 1 ϵ ⌉ − 2, we have ϵ < 1 k + 1 , so our lower bound for ( k , d ) - comaching in Theorem 1.12 implies the exponential lower bound 2 1 /ϵ 4 for tree metrics claimed in Theorem 1.11 . F or planar metrics, Theorem 1.13 implies a slightly better lower bound, of 4 1 /ϵ 4 , when k = d = ⌈ 1 ϵ ⌉ − 2 (so again ϵ < 1 k + 1 ). The upper bound: ( k , ϵ ) -comatching. The upper bound proof of Theorem 1.10 follows the same general structure as the proof of Theorem 1.2 . By a similar reduction as in the case k = 1, based on linear programming and VC-dimension, we could reduce the k -center coreset construction to bounding the maximum size of a ( k , ϵ 2 / 4 ) -comatching. Theorem 1.14. Let ( V , dist ) be a metric space, P ⊆ V be a set of points, and a parameter ϵ ∈ ( 0 , 1 ) . Let L ( k , ϵ ) be the length of the maximum ( k , ϵ ) -comatching in ( V , dist ) . Let d be the VC-dimension of B V . Then there exists a k -center ϵ -coreset for P of size O ( d k log k ϵ − 2 · L ( k , ϵ 2 / 4 ) log L ( k , ϵ 2 / 4 )) . W orking with ( k , ϵ ) -comatchings is more challenging than with ϵ -comatchings as in Theorem 1.5 . The problem here is that the sets on one side of the ( k , ϵ ) -comatching introduce a lot of difficulty due to lack of symmetry , if we were to follow the same approach for bounding the size of ϵ -comatching. Specifically , the ϵ -comatching proof technique crucially exploits the symmetry between pairs: for each ( p , q ) ∈ M , the point q is “close" to every other p i , which is essential for establishing a packing- type contradiction. However , in a ( k , ϵ ) -comatching M ′ , this symmetry disappears, i.e., for some ( p , X ) ∈ M ′ , different points in X can serve as witnesses of closeness to different p i s, and may be far from all other points. This lack of symmetry makes it difficult to restrict the point-set pairs within a topological boundary , and the tools established for comatching no longer apply here. W e re-establish the symmetry using Ramsey-type arguments. Luckily , we are working with set systems of bounded VC-dimension and we can use the recent polynomial Ramsey bounds for graphs of bounded VC -dimension by Nguyen, Scott, and Seymour [ 44 ] . W e establish that a huge ( k , ϵ ) -comatching contains either a large (regular) ( ϵ / 2 ) -comatching or a large ( ϵ / 2 ) -double-ladder defined as follows (see Figure 2 for an illustration). Definition 1.15 ( ϵ -double ladder). Let D = { ( p 1 , b 1 , t 1 ) , ( p 2 , b 2 , t 2 ) , . . . , ( p ℓ , b ℓ , t ℓ ) } ⊆ V 3 be a se- quence of ℓ ordered triplets of points in a metric ( V , dist ) , and ϵ ∈ ( 0 , 1 ) be a parameter . W e say that D is an ϵ -double ladder if there exists R > 0 such that: 1. for every 1 ≤ i ≤ j ≤ ℓ , dist ( p j , t i ) > R and dist ( p i , b j ) > R ; 7 t 1 t 2 t 3 t 4 t 5 p 1 p 2 p 3 p 4 p 5 b 1 b 2 b 3 b 4 b 5 Figure 2: ϵ -double ladder . Again, the dotted line indicates distance ≥ R , and the solid line indicates distance ≤ ( 1 − ϵ ) R . 2. for every 1 ≤ i < j ≤ ℓ , dist ( p i , t j ) ≤ ( 1 − ϵ ) R and dist ( p j , b i ) ≤ ( 1 − ϵ ) R . The sets of points { t 1 , . . . , t ℓ } and { b 1 , . . . , b ℓ } are called the top and bottom of the double ladder 3 , respectively . Observe that an ϵ -double ladder D = ( p i , t i , b i ) ℓ i = 1 is an ( k = 2 , ϵ ) -comatching ( p i , X i ) ℓ i = 1 with X i = { t i , b i } . The vertex t i serves as the “close to p j ” vertex of X i for j < i while b i serves this role for j > i . Theorem 1.16. Let ( V , dist ) be a metric space such that the ball set system B V has VC-dimension at most d . Let ϵ ∈ ( 0 , 1 ) be a parameter . There exists a universal constant c and a polynomial f k , d ( x ) = x ( c · d ) 4 k such that if ( V , dist ) contains a ( k , ϵ ) -comatching of size at least f k , d ( ℓ ) , then it contains either an ( ϵ / 2 ) -comatching or an ( ϵ / 2 ) -double ladder of size ℓ . Using a similar general approach as for Theorem 1.5 (but with significantly different arguments in the last phase of the proof) we establish a polynomial bound on a maximum size of double ladder in a planar graph Theorem 1.17 (Double Ladders in Planar Metrics). There exists a polynomial L ′ planar such that for any ϵ ∈ ( 0, 1 ) , any ϵ -double ladder in planar metrics has size at most L ′ planar ( 1 /ϵ ) . Now Theorem 1.10 is a simple consequence of Theorems 1.5 , 1.14 , 1.16 and 1.17 . Proof (Proof of Theorem 1.10 ): By Theorems 1.5 , 1.16 and 1.17 , the maximum size of a ( k , ϵ ) - comatching is at most f k ,4 ( poly ( 1 /ϵ )) = ( 1 /ϵ ) 2 O ( k ) . Then by Theorem 1.14 , we can construct an ϵ -coreset for k -center of size: O ( ϵ − 2 f k ,4 ( poly ( 1 /ϵ )) · log f k ,4 ( poly ( 1 /ϵ )) = ( 1 /ϵ ) 2 O ( k ) , as claimed. □ Furthermore, we note that the technique we used to generalize from planar metrics to metrics of bounded genus works here as well. Theorem 1.18. F or any integer g ≥ 0 , ϵ ∈ ( 0 , 1 ) , and a metric space ( V , dist ) induced by a graph embedded in a surface of Euler genus at most g , the maximum size of an ϵ -double ladder in ( V , dist ) is bounded by O ( g 4 ϵ − 8 ) · L ′ planar ( 1 /ϵ ) , where L ′ planar comes from Theorem 1.17 . Similarly as for furthest neighbor , Theorem 1.18 generalizes the k -center coreset of Theorem 1.10 to graphs of bounded genus. 3 W e will be using mathfrak font for the top and bottom points of a double ladder 8 1.3 Organization of the paper In Section 2 we give a short overview of the proof of Theorem 1.5 . After preliminaries in Section 3 , we focus on Theorem 1.2 : Section 4 proves Theorem 1.4 and Section 5 proves Theorem 1.5 . Then, we move to k -center: Section 6 proves Theorem 1.14 and Theorem 1.16 while Section 7 proves Theorem 1.17 . In Section 8 , we briefly discuss how to cast polygons with holes onto planar metrics. Extension to bounded genus graphs is discussed in Section 9 . Finally , Section 10 proves our lower bounds, Theorem 1.7 , Theorem 1.12 , and Theorem 1.13 . 2 Overview of the Proof of Theorem 1.5 In this section, we give the high-level ideas of our key technical result, which bounds the size of ϵ -matching in planar metrics by a polynomial function of 1 /ϵ . Our proof is rather involved, and some steps rely heavily on the planar embedding of the graph to narrow down the possible configurations of shortest paths. Since the phenomenon of polynomial bounds for ϵ -comatching index is restricted to planar and bounded genus metrics and is not present in, say , bounded treewidth graphs, the very topological nature of our proof is most likely inevitable. Let L = ( p i , q i ) ℓ i = 1 be an ϵ -comatching in a planar graph G and let R be the witnessing distance, i.e., dist ( p i , q i ) > R but dist ( p i , q j ) ≤ ( 1 − ϵ ) R for i = j . F or every i = j , fix a shortest path J p i q j K between p i and q j in a consistent way , that is, any two shortest chosen shortest paths are either disjoint or intersect in a subpath. Without loss of generality , assume that every edge of G lies on some path J p i q j K . It is easy to see that, as long as ℓ ≥ 3, the diameter of G is bounded by 3 R . Approximate distance profiles. An important tool in the analysis are so-called approximate distance profiles . Denote δ = ϵ 100 R ; we think of δ as a unit of distance, so that an error of a few δ s does not matter . F or vertices u , v ∈ V ( G ) , let d dist ( u , v ) = ⌈ dist ( u , v ) /δ ⌉ . That is, d dist ( u , v ) is the distance from u to v measured in the number of δ s, rounded up. Note that, as the diameter of G is bounded by 3 R , we have d dist ( u , v ) = O ( 1 /ϵ ) . Let Q be a path of length O ( R ) in G . Let P be a set of portals on Q , placed equidistantly at distance δ on Q ; note that | P | = O ( 1 /ϵ ) . The approximate distance profile of a vertex v ∈ V ( G ) is the function mapping P ∋ p 7→ d dist ( v , p ) ∈ N . There are two important observations about distance profiles. First, due to the placement of P along Q , an approximate distance profile of v allows us to deduce, up to an error of 2 δ , the distance from v to any vertex on Q . Second, it follows from the VC -dimension bound on the ball system of planar graphs that the number of different distance profiles is bounded polynomially in 1 /ϵ (note that the naive bound is exponential in | P | = O ( 1 /ϵ ) ). a path in Q p 1 q 2 p 3 q 1 (a) Proof that Q needs to intersect some J p α q β K . a path in Q p α q β p β u > R ≤ ( 1 − ϵ ) R ≈ up to an error of 4 δ (b) The final contradiction. Figure 3: Illustration for the proof of the separation lemma. 9 Separation lemma. Let Q be a family of m paths in G , each of length O ( R ) , and let I ⊆ [ ℓ ] be the set of those indices i ∈ [ ℓ ] such that p i and q i are separated by V ( Q ) , i.e., do not lie in the same connected component of G − V ( Q ) , where V ( Q ) denotes the vertices lying on the paths Q . Assume there exists three indices i 1 , i 2 , i 3 ∈ I such that p i 1 , p i 2 , and p i 3 have the same approximate distance profile to each path in Q . As V ( Q ) separates p i 1 from q i 1 , V ( Q ) needs to intersect somewhere the walk being the concatenation of J p i 1 q i 2 K , J q i 2 p i 3 K , and J p i 3 q i 1 K (see Figure 3a ). That is, for some α , β ∈ [ 3 ] , α = β , the path J p i α q i β K necessarily intersects V ( Q ) ; let u be a vertex of the intersection. W e obtain a contradiction as follows (see also Figure 3b ): R < dist ( p i β , q i β ) ≤ dist ( p i β , u ) + dist ( u , q i β ) ≤ dist ( p i α , u ) + 4 δ + dist ( u , q i β ) = dist ( p i α , q i β ) + 4 δ ≤ ( 1 − ϵ ) R + 4 δ < R (as δ = ϵ 100 R ) Here, the third inequality comes from the assumption that p i α and p i β have the same approximate distance profile to the paths of Q . Hence, the size of | I | is bounded by twice the number of possible approximate distance profiles to the paths in Q , which is bounded polynomially in m /ϵ by the same VC -dimension based argument as for the individual path. (a) Local instance (b) Linked non-crossing instance Figure 4: The plane drawing in (a) depicts a local instance G , and the local property is illustrated by the pair ( p , q ) . Here the edges of G which belong to paths J p j 1 q j 2 K for p j 1 , q j 2 = p , q are drawn as solid lines and any other edges as dotted lines. W e can draw a link (the dashed red curve) in the plane connecting p and q without intersecting any of the solid lines, so ( p , q ) does indeed have the local property . The linked non-crossing instance is shown in (b) with respect to pairs ( p 1 , q 1 ) and ( p 2 , q 2 ) . F or each pair , the link represented by the dashed line does not intersect the solid lines of the same color to show the local property analogously to a). Furthermore the links cannot intersect each other (while maintaining the local property) since the regions in which links can lie are disjoint, as represented, which guarantees the non-crossing property . Phase one: reduction to a local instance. The separation lemma motivates the following re- duction. F or I ⊆ [ ℓ ] and i ∈ [ ℓ ] \ I , we say that I separates i if p i and q i are separated by paths { J p j 1 q j 2 K | j 1 , j 2 ∈ I , j 1 = j 2 } . The separation lemma implies the number of indices I can separate is bounded polynomially in | I | /ϵ . A charging argument implies that if ℓ is huge, there is a large subset J ⊆ [ ℓ ] such that for every i ∈ J , J \ { i } does not separate i . 10 W e henceforth restrict to only pairs in J . That is, we assume that for every i ∈ [ ℓ ] , the set [ ℓ ] \ { i } does not separate i . In other words, we can draw in a plane a link connecting p i with q i in a way that it does not intersect any edge of G that belongs to a path J p j 1 q j 2 K for j 1 , j 2 = i . Let us call such an instance a local instance (see Figure 4 ). Our goal is now to prove that in a local instance, ℓ is bounded polynomially in 1 /ϵ . Phase two: reduction to a linked noncrossing instance. In the second phase, we would like to comb our local instance so that the links do not cross each other . T o this end, we employ again the separation lemma in the following setting. A well-known fact is that every connected planar graph admits a tree decomposition, whose every bag is a union of three shortest path with a common endpoint. This is actually a special case of a more general statement: for every rooted spanning tree T of a planar graph G , there exists a tree decomposition of G whose every bag is a union of three upwards paths in T [ 40 ] . (The first statement is just the application of the second statement to any shortest-path tree in G .) Instead of a shortest path tree, we construct a spanning tree T of G where each upward path can be covered by O ( log ℓ ) paths J p i q j K . In other words, if we obtain a tree decomposition of G from T , then only very few — O ( log ℓ ) — links can intersect a single bag of the decomposition. By recursively separating the graph G with bags of the obtained tree decomposition in a balanced manner , we obtain a large number of indices i whose links are separated by the chosen bags — and thus cannot intersect. Hence, a huge local instance needs to necessarily contain a large set I ⊆ [ ℓ ] whose links pairwise do not intersect. In what follows, we focus only on I : that is, we assume that all links are pairwise disjoint, call such an instance a linked noncrossing instance (see Figure 4 ), and proceed with bounding ℓ in such an instance. p i q i q j p j u > R > R ≤ ( 1 − ϵ ) R ≤ ( 1 − ϵ ) R Figure 5: The contradiction in the proof of Lemma 2.1 . Phase three: topological study of a linked noncrossing instance. In a linked noncrossing instance, we finally have enough topological constraints to employ a detailed case-by-case analysis how such a graph needs to look like in the plane. Beside the hard-earned constraint that links are pairwise disjoint, we make a number of observations in the following flavor (see Figure 5 ): Lemma 2.1. F or every i = j , the paths J p i q j K and J p j q i K are disjoint. Proof: By contradiction, assume that a vertex u lies on both paths. Then we obtain a contradiction as follows: 2 ( 1 − ϵ ) R ≥ dist ( p i , q j ) + dist ( p j , q i ) = dist ( p i , u ) + dist ( u , q j ) + dist ( p j , u ) + dist ( u , q i ) = ( dist ( p i , u ) + dist ( u , q i )) + dist ( p j , u ) + dist ( u , q j ) ≥ dist ( p i , q i ) + dist ( p j , q j ) > 2 R . 11 □ It turns out that the only way to have a somewhat large number of pairs in a comatching in a linked noncrossing instance is to arrange them as in Figure 6 . p 1 q 1 p 2 q 2 p 3 q 3 p 4 q 4 p 5 q 5 p 6 q 6 p 7 q 7 Figure 6: The final picture in the proof of Theorem 1.7 : how a large linked noncrossing instance needs to look like. However , it can be shown that such an arrangement can fit only ℓ = O ( 1 /ϵ ) . This concludes the overview of the proof of Theorem 1.5 . A remark on double-ladders. Our bound on the size of a double-ladder , i.e., Theorem 1.17 , follows the same general outline. The first two phases are analogous, and differ only in minor details. The third phase, however , while also can be summarized as a detailed case-by-case analysis using sufficient amount of topological constraints, is different — the particular arguments and case analysis are very different. A remark on extending to bounded genus graphs. F or Theorems 1.6 and 1.18 , we use a standard tool of cutting open a graph of Euler genus g into a planar graphs by cutting O ( g ) shortest paths and single edges. Observe that the argumentation used in the proof of the separation lemma is also useful in this setting: if we partition the pairs of vertices of a comatching (or triples of vertices of a double ladder) into buckets according to the approximate distance profile to the cutset, then within a single bucket, all shortest paths J p i q j K cannot touch the cutset (or we get a similar contradiction as in the separation lemma), and thus essentially induce a comatching (or a double ladder) in a planar graph. 3 Preliminaries 3.1 VC dimension F or a universe U and a set system A of subsets of U the VC -dimension of A is the maximum size of a subset X ⊆ U that is shattered by A ; a set X is shattered by A if for every Y ⊆ X there exists A ∈ A with A ∩ X = Y . One of the basic properties of set systems of bounded VC dimension is the following. Lemma 3.1 (Sauer-Shelah lemma). The number of sets in a set system A of VC-dimension at most d over a universe U is at most d X i = 0 | U | i = O ( | U | d ) . Let ( V , dist ) be a metric space. F or v ∈ V and r > 0, we define the ball B ( v , r ) = { u ∈ V | dist G ( v , u ) ≤ r } . The set system { B ( v , r ) | v ∈ V ( G ) , r > 0 } of subsets of V is called the ball set system of ( V , dist ) . 12 Graphs with positive edge-weights naturally induce a metric space on their set of vertices via shortest path distances. In such metric spaces, if the underlying graph excludes a small minor , the ball set system has small VC -dimension. Theorem 3.2 ( [ 16 , 10 ] ). Let G be an edge weighted graph with no K h as a minor . Then, the ball set system { B ( v , r ) | v ∈ V ( G ) , r > 0 } has VC -dimension at most h − 1 . F or a metric space ( V , dist ) and Z ⊆ V ( G ) , for every v ∈ V we define the distance profile of v to Z as a function prof Z [ v ] : Z → R defined as prof Z [ v ]( z ) = dist ( v , z ) . With a distance profile prof Z [ v ] we associate a set Z Z [ v ] = { ( z , x ) ∈ Z × R | prof Z [ v ]( z ) ≤ x } . An important property of the set system { Z Z [ v ] | v ∈ V } is that it has small VC -dimension in graphs excluding a fixed minor . Theorem 3.3 (Theorem 3 [ 39 ] ). Let G be an edge weighted graph with no K h as a minor and let Z ⊆ V ( G ) . Then, the set system { Z Z [ v ] | v ∈ V ( G ) } has VC -dimension at most h − 1 . Let A be a set. W e define its k -fold set intersection by A k ⊓ = { A 1 ∩ . . . ∩ A k | A i ∈ A ∀ i ∈ [ k ] } . W e use the following bound on the VC dimension of k -fold set intersection: Lemma 3.4 (L emma 3.2.3. [ 6 ] ). Let ( U , A ) be a set system of VC dimension at most d , then the VC dimension of ( U , A k ⊓ ) is O ( d k log k ) 3.2 T ree decompositions of planar graphs The following theorem encapsulates the main construction leading to the celebrated Lipton- T arjan separator theorem for planar graphs. Theorem 3.5 (see [ 40 ] ). Let G be a plane triangulation (i.e., a simple connected graph embedded in the plane where every face is a triangle) and let H be a spanning tree of G with a designated root r . Let T be a subgraph of the dual of G with V ( T ) being the set of all faces of G and E ( T ) being the duals of all edges of E ( G ) \ E ( H ) . Furthermore, for every t ∈ V ( T ) , let β ( t ) ⊆ V ( G ) consist of the vertex sets of the three upward paths in H from the vertices of the face t to the root r . Then, T is a tree and ( T , β ) is a tree decomposition of G . In particular , for every edge t 1 t 2 ∈ E ( T ) , the adhesion β ( t 1 ) ∩ β ( t 2 ) is the vertex set of the two upward paths in H from the endpoints of the common edge of the faces t 1 and t 2 to the root r . W e will need also the following standard argument. Lemma 3.6. Let k , n > 0 . Let G be a planar graph on n vertices and let ( T , β ) be a tree decomposition of G such that the degree of every vertex in T is at most 3 . Then, for any weight function χ : V ( G ) → { 0, 1 } , one of the following holds: • there is a bag b ∈ V ( T ) such that χ ( β ( b )) ≥ 1 4 k χ ( V ( G )) , or • there exists a subset F ⊆ E ( T ) of k edges such that the union of bags of each connected component of T − F has weight at least 1 4 k χ ( V ( G )) . Proof: Let W = χ ( V ( G )) . Now , by induction, we assume that there is no bag b ∈ V ( T ) such that χ ( β ( b )) ≥ W / 4 k and we have picked i − 1 edges such that each connected component of T − F has weight at least W / 4 k . W e can always find a connected component C of weight at least W / i ≥ W / k . W e now pick the i t h edge in C as follows: start with an arbitrary edge ( u , v ) and check if it separates C into two components of size at least W / 4 k each. If not, let H be the component with higher weight attached to v (w .l.o.g.). The vertex v cannot have degree 1, since then H is a single vertex with weight at least 3 W / 4 k . If v has degree 2, then take the potential cut edge 13 to be ( v , w ) (considering w is the other neighbor of v ). If χ ( V ( C − H ) ∪ { β ( v ) } ) ≥ W / 4 k , we are done. Otherwise, continue with the next edge towards w . If v has degree 3, let v 1 , v 2 be the other neighbors of v , and let T 1 , T 2 resp. be the subtrees corresponding to them. Since χ ( β ( v )) < W / 4 k , we have χ ( V ( T 1 ) ∪ V ( T 2 )) ≥ W / 2 k . This means one of T 1 or T 2 has weight at least W / 4 k . Assume χ ( V ( T 1 )) ≥ W / 4 k . If χ ( C − T 1 ) ≥ W / 4 k , we cut the ( v , v 1 ) edge. If not, we continue towards v 1 and its other neighbors. Note that in this whole procedure, the weight of the lighter component is strictly increasing. Therefore, there must exist a cut edge with separates C into components having weight at least W / 4 k each. W e perform this operation k times to obtain a set of k edges as desired. □ 3.3 The routing lemma W e will also need the following routing lemma. Lemma 3.7. Let G be a graph on n vertices and let T 1 , . . . , T k be a family of trees that are subgraphs of G such that: • V ( T 1 ) ∩ V ( T i ) = ; for every i ∈ [ k ] , • S i ∈ [ k ] V ( T i ) = V ( G ) . Then, there exists a spanning tree H of G rooted at some vertex r , such that for every v ∈ V ( G ) , the path from v to r can be partitioned into O ( log k · log | V ( G ) | ) parts, each being a subpath of one of the trees T 1 , T 2 , ..., T k . Proof: By our assumptions, ∪ i T i spans V ( G ) , and each T i has a non-empty intersection with T 1 . W e start by showing a randomized procedure that generates a spanning tree H which achieves the O ( log k ) bound in expectation. W e choose r as an arbitrary vertex of V ( T 1 ) and root each tree T i in an arbitrary vertex of V ( T 1 ) ∩ V ( T i ) for every i ∈ { 2 , . . . , k } . Let π be a randomly and uniformly chosen permutation π = ( π 2 , π 3 , ..., π k ) of the set { 2 , . . . , k } . F or the sake of simplicity , we put π 1 = 1. Let < π be the linear ordering on { T 1 , . . . , T k } induced by π , i.e., we have T i < π T j iff π − 1 ( i ) < π − 1 ( j ) . F or each v ∈ V ( G ) , we put T v to be the < π -smallest tree T i which contains v . F or v = r , we put e v to be the edge connecting v to its parent in T v . Note that such edge always exists as the roots of all T i belong to V ( T 1 ) and T 1 is < π -smallest. W e define H as the union of all edges e v for all v ∈ V ( G ) − { r } . It’s easy to see that H is indeed a spanning tree of G . Finally , for the proof of the desired property . Pick any v ∈ V ( G ) − { r } and let P v be the path from v to r in H . (W e think of P v as oriented from v to r .) Let T v be the set of trees T i that intersect P v Order T v as T i 1 , . . . , T i ℓ according to the earliest vertex of the intersection with P v , breaking ties arbitrarily . W e say that an index a is important if T i a is < π -minimum among { T i 1 , . . . , T i a } and used if T i a = T u for some u ∈ V ( P v ) . Observe that a used index is necessarily important. Consider the statement A a , v : the index a is important for the vertex v . The crucial observation is that Pr ( A a , v ) ≤ 1 a . Indeed, the path P v up to the intersection with T i a does not depend on the position of the tree T i a in the order π , so all a positions of T i a with respect to { T i 1 , . . . , T i a − 1 } in the order < π are equally probable, and only one makes a important for v . Now , let X v be the random variable for the number of trees T i needed to cover P v . Observe that X v is bounded by the number of used indices for v , as for every u ∈ V ( P v ) \ { r } we can cover the edge going upwards from u with T u . This quantity is, in turn, bounded by the number of important indices for v . Hence, in expectation E π [ X v ] ≤ Σ ℓ a = 1 Pr ( A a , v ) ≤ Σ ℓ a = 1 1 a , which is the harmonic series; the finite harmonic series up to L is known to be bounded by O ( log L ) . Now , we proceed with the deterministic construction. F or a set ; = W ⊆ V ( G ) , let X W be equal to X v assuming we sample v uniformly randomly from W . Again, E [ X W ] = O ( log k ) . By the Markov 14 inequality , P ( X W ≥ 2 E [ X W ]) ≤ 1 2 , hence for at least half of all pairs ( π , v ) , the value of X v assuming π is at most 2 E [ X W ] . In particular , there exists a permutation π 0 s.t. Pr ( X W ≤ 2 E [ X W ] | π = π 0 ) ≥ 1 2 . Thus, fixing π = π 0 , the v -to- r paths for half of the vertices v ∈ W will be covered by fewer than 2 E [ X W ] = O ( log k ) trees. W e perform the above procedure iteratively . W e first put W = V ( G ) , find π 0, V ( G ) and correspond- ing H (according to our randomized procedure), and fix the parent vertex according to H for every v for which we can cover the v -to- r path in H using at most 2 E [ X W ] trees. Afterwards, we restrict W to vertices with parent not yet fixed and repeat this step. At every step, the vertices with parent already fixed form a connected subtree containing r . Every step fixes at least half of the vertices not yet fixed, hence the total number of steps will be at most O ( log | V ( G ) | ) . Any v -to- r path in the final tree obtained this way can be decomposed into O ( log | V ( G ) | ) subpaths, one for each step, and each of those is coverable with O ( log k ) trees, which gives us the desired O ( log k · log | V ( G ) | ) bound. □ 4 F rom Comatching to Coreset: Proof of Theorem 1.4 This section is devoted to the proof of Theorem 1.4 . W e will need a classic tool: an LP rounding approximation algorithm for H I T T I N G S E T in set systems of bounded VC dimension. 4.1 H I T T I N G S E T LP F or a family A of subsets of a universe U , a set X ⊆ U is called a hitting set of A if X ∩ A = ; for every A ∈ A . The H I T T I N G S E T problem, given U and A , asks for a hitting set of minimum possible size. Below is the LP relaxation for the natural formulation of the H I T T I N G S E T problem and its dual (which is a set packing problem). min X u ∈ U x u s.t. X u ∈ A x u ≥ 1 ∀ A ∈ A x u ≥ 0 ∀ u ∈ U max X A ∈ A y A s.t. X A ∈ A | u ∈ A y A ≤ 1 ∀ u ∈ U y A ≥ 0 ∀ A ∈ A W e need the following classic result about rounding the H I T T I N G S E T LP in set systems of bouned VC-dimension. Theorem 4.1 ( [ 45 , 41 ] ). There exists a universal constant c such that every H I T T I N G S E T instance ( U , A ) admits a solution of size at most c · d · τ ∗ · log ( τ ∗ ) , where d is the VC -dimension of A and τ ∗ is the optimum value of the linear programming relaxation. Furthermore, such a solution can be found in polynomial time. 4.2 The proof W e are now ready to prove Theorem 1.4 . Fix ϵ > 0. As for ϵ ≥ 1 the task of finding an ϵ -coreset for furthest neighbor is trivial (just take any vertex), we assume ϵ < 1. Let ( V , dist ) be a metric space, let P ⊆ V ( G ) , and let d be the VC-dimension of the ball set system of ( V , dist ) . W e assume | P | > 1, as otherwise we can just return Q = P . Let ∆ : = max u , v ∈ P dist ( u , v ) be the diameter of P in ( V , dist ) and let δ : = ϵ 4 · ∆ . 15 F or every v ∈ V , pick z v ∈ P to be a vertex maximizing the distance from v , breaking ties arbitrarily . W e first deal with vertices of V that are very far from P . Pick p 0 ∈ P and let V far = { v ∈ V ( G ) | dist ( v , p 0 ) > ϵ − 1 ∆ } . Note that for every v ∈ V far : dist ( v , z v ) − dist ( v , p 0 ) ≤ dist ( z v , p 0 ) ≤ ∆ ≤ ϵ dist ( v , p 0 ) ≤ ϵ dist ( v , z v ) . Hence, to satisfy V far , it suffices to just add p 0 to the constructed coreset. W e partition V \ V far into sets V i for nonnegative integers i ; a vertex v belongs to V i if i δ ≤ dist ( v , z v ) < ( i + 1 ) δ . Note that, as ∆ / 2 ≤ dist ( v , z v ) ≤ ϵ − 1 ∆ , the set V i is nonempty only for ⌊ 2 ϵ − 1 ⌋ ≤ i ≤ ⌊ 4 ϵ − 2 ⌋ . Fix i for which V i = ; . F or v ∈ V i define S v i = { u ∈ P | dist ( v , u ) ≥ ( i − 1 ) δ } . Clearly , z v ∈ S v i . W e consider set system A i = { S v i | v ∈ V i } of subsets of P . First, we observe that it suffices to find a hitting set of A i . Claim 4.2. Any hitting set of A i is also an ϵ -coreset for furthest neighbor of V i . Proof: Let X be a hitting set of A i . Let v ∈ V i and let x ∈ X ∩ S v i , which exists as X is a hitting set. Then, by the definition of S v i , dist ( v , x ) ≥ ( i − 1 ) δ . Hence, dist ( v , z v ) − dist ( v , x ) ≤ 2 δ . On the other hand, dist ( v , z v ) ≥ ∆ / 2. Thus, dist ( v , z v ) − dist ( v , x ) ≤ 2 δ ≤ 4 · δ ∆ · dist ( v , z v ) ≤ ϵ · dist ( v , z v ) . Thus, indeed X is an ϵ -coreset for furthest neighbor of V i . □ By Theorem 4.1 , to bound the size of a hitting set of A i it suffices to bound the optimum value of its LP relaxation; let τ ∗ i be this optimum value. W e connect τ ∗ i to the bound on the size of a comathing in ( V , dist ) via the following simple rounding. Claim 4.3. There exists an ( ϵ 2 / 4 ) -comatching in ( V , dist ) of size ⌊ τ ∗ i / 4 ⌋ . Proof: Consider an optimum solution to the dual LP to H I T T I N G S E T on A i ; for clarity of notation, we use ( y v ) v ∈ V i for the dual variables instead of ( y S v i ) v ∈ V i . Clearly , P v ∈ V i y v = τ ∗ i . Let µ be a probability distribution over V i , where v ∈ V i is sampled with probability y v /τ ∗ i . F or u , v ∈ V i , we say that u threatens v if z v ∈ S u i . Note that any v ∈ V i threatens itself . Let v ∈ V i be fixed and let u be sampled from V i according to µ . Then, P rob ( v is threatened by u ) ≤ X u : z v ∈ S u i y u τ ∗ ≤ 1 τ ∗ i . (1) Indeed, ( 1 ) follows directly from the dual LP constraint for the vertex z v : X w ∈ V i | z v ∈ S w i y w ≤ 1. 16 Let K : = ⌊ τ ∗ i / 4 ⌋ and let v 1 , v 2 , . . . , v 2 K be vertices sampled independently from V i according to the distribution µ . Then, by ( 1 ) , the expected number of pairs ( i , j ) , 1 ≤ i , j ≤ 2 K , i = j such that v i threatens v j is at most 4 K 2 · 1 τ ∗ i ≤ K . Therefore, there exists a choice of v 1 , v 2 , . . . , v 2 K such that the number of such pairs ( i , j ) is at most K . Pick such a choice and, for every pair ( i , j ) , 1 ≤ i , j ≤ 2 K , i = j , such that v i threatens v j , discard v i . W e are left with a set W of at least K vertices of V i such that for every u , v ∈ W , u = v , u does not threaten v . W e claim that { ( v , z v ) | v ∈ W } is the desired ( ϵ 2 / 4 ) -comatching in G for R = i δ ; it clearly has size at least K . Since W ⊆ V i , we have for every v ∈ W dist ( v , z v ) ≥ i δ . On the other hand, for every u , v ∈ W , u = v , as u does not threaten v , we have z v / ∈ S u i so dist ( u , z v ) ≤ ( i − 1 ) δ . As i ≤ ⌊ 4 ϵ − 2 ⌋ , we have i − 1 i ≤ 1 − 1 ⌊ 4 ϵ − 2 ⌋ ≤ 1 − 1 4 ϵ − 2 = 1 − ϵ 2 4 . □ By Claim 4.3 , τ ∗ i ≤ 4 L + 3, where L is the maximum size of an ( ϵ / 4 ) -comatching in ( V , dist ) . Every element of A i is a complement of a ball, and hence A i has VC-dimension at most d . By Theorem 4.1 , there exists a hitting set X i of A i of size O ( d L log L ) and we can find such a hitting set in polynomial time. Claim 4.2 asserts that X i is an ϵ -coreset for furthest neighbor of V i . Hence, for the ϵ -coreset of the whole V , it suffices to take the union of { p 0 } and of O ( ϵ − 2 ) sets X i for which V i is nonempty . This finishes the proof of Theorem 1.4 . 5 Comatching Bound in Planar Metrics: Proof of Theorem 1.5 This section is devoted to the proof of Theorem 1.5 , which bounds the size of ϵ -comatching. W e begin by repeatedly reducing ϵ -comatching, each time paying a polynomial-in- ϵ cost to add new constraints on the topology , in order to isolate pairs ( p , q ) , where p , q are, in a certain sense, close to each other . Then we pick some landmarks from the remaining pairs which, after one more step of reduction where we only keep pairs at the same distances from the landmarks, we will use to define a linear order . At this point we have established the ultimate regime. Here we will identify two symmetric cases on the web of intersections of shortest paths between the pairs. Finally , rearranging the path segments between those intersections, in each case we obtain a combinatorial contradiction on the sum of minimum and maximum lengths of shortest paths between pairs as per the comatching definition. Fix ϵ > 0. W e need some notation. A pair ( G , M ) is an instance if G is a plane edge-weighted graph and M is an ϵ -comatching in G . That is, we assume that G comes with a fixed embedding in a plane. The vertices p and q for ( p , q ) ∈ M are called terminals . W e assume that the lengths of all simple paths are pairwise different. This can be realized by assuming an arbitrarily chosen linear order ⪯ on edges of G and breaking ties between paths of same total weight by taking the one with the set of edges lexicographically ⪯ -smaller than the other . With this assumption, the shortest path between any pair of terminals p 1 , q 2 for any ( p 1 , q 1 ) , ( p 2 , q 2 ) ∈ M is unique. W e will denote this path by J p 1 q 2 K or J q 2 p 1 K . Moreover , for any triple of vertices u , p , q , the shortest paths from u to p and from u to q can share only an initial segment: after branching out for the first time, they remain disjoint. 17 This allows us to define for N ⊆ M an instance I N = ( G N , N ) , where G N is the subgraph of G consisting only of paths J p 1 q 2 K for ( p 1 , q 1 ) , ( p 2 , q 2 ) ∈ N , ( p 1 , q 1 ) = ( p 2 , q 2 ) . F or a pair σ ∈ M , we use G ¬ σ and I ¬ σ as shorthands for G M \{ σ } and I M \{ σ } . It will be convenient not to have any other terminals on a path J p 1 q 2 K except for the endpoints. T o this end, we can perform the following modification: for every ( p , q ) ∈ M , create two fresh vertices p ′ and q ′ , each of degree one connected by edges p p ′ and q q ′ of infinitesimal small weight, and replace ( p , q ) with ( p ′ , q ′ ) in M . The resulting instance will be a ( ϵ ′ ) -comatching for any ϵ ′ < ϵ (formally , for any ϵ ′ < ϵ , we can choose sufficiently small weight of the newly created edges so that we obtain an ( ϵ ′ ) -comatching). Consider the following contraction operation: pick any vertex u of degree 2 connected to vertices x 1 , x 2 with edges of weight respectively w 1 and w 2 ; replace it with a direct edge of weight w 1 + w 2 between x 1 and x 2 . Such operation preserves the distances between any pair of remaining vertices. In particular , if our instance is an ϵ -comatching and has all terminals of degree 1, contracting all vertices of degree 2 in this way results in an instance again being an ϵ -comatching. This modification will allow us to bound the size of our graph polynomially in the size of M , which will be needed in a future section. These observations allow us to introduce the following definition: an instance I = ( G , M ) is clean if • the terminals are pairwise distinct and of degree 1 each; • G contains no vertices of degree 2; • G = G M , that is, every edge of G lies on a path J p 1 q 2 K for some distinct ( p 1 , q 1 ) , ( p 2 , q 2 ) ∈ M . It suffices to prove the bound on the size of M of Theorem 1.5 only for clean instances. Observe that two paths J p a q b K and J p c q d K with pairwise distinct endpoints may either (a) be completely disjoint, (b) share a subpath, but do not cross (i.e., J p c q d K leaves J p a q b K twice on the same side); in this case we say that they touch ; (c) share a subpath, and cross (i.e., J p c q d K leaves J p a q b K on the other sides); in this case we say that they intersect transversally . More formally , if J p a q b K and J p c q d K intersect, let σ be any closed loop containing J p a q b K and not intersecting J p c q d K \ J p a q b K . W e say that J p a q b K and J p c q d K intersect transversally if and only if exactly one of p c and q d is inside the interior of σ . W e note as p c and q d are of degree one, they cannot lie on σ and that suitable σ always exists and that this definition does not depend on the choice of σ as p a and q b are of degree one. Let I = ( G , M ) be a clean instance. Observe that for a pair σ = ( p , q ) ∈ M , the terminals p and q do not belong to G ¬ σ and their drawing in G lie inside some faces of G ¬ σ . W e say that a clean instance I is local if for every σ ∈ M , the terminals of σ lie in the same face of G ¬ σ . The first step of the proof of Theorem 1.5 is a reduction that allows to focus only on local instances. This reduction is presented in Section 5.2 . Lemma 5.1. F or a real ϵ > 0 , let L local ( ϵ ) be the maximum size of a ϵ -comatching in a local instance. Then, the maximum size of a ϵ -comatching in any instance is of O ( L local ( ϵ ) 9 ϵ − 8 ) . Let I = ( G , M ) be a local instance. A curve γ is in good position with regards to G if it starts and ends in a terminal, besides endpoints intersects the drawing of G only in interiors of edges, and for every edge e ∈ E ( G ) , γ intersects the drawing of e in at most one point, and always transversally . F or a pair σ ∈ M , a link is a curve γ σ in good position w .r .t. G , with two endpoints in the two terminals of σ and that does not intersect any edge of G ¬ σ (i.e., γ σ is completely contained in the face of G ¬ σ that contains the terminals of σ ). A linked instance is a pair ( I , Γ ) where I = ( G , M ) is a local instance and Γ is a function that assigns a link Γ ( σ ) to every σ ∈ M . A linked instance is noncrossing if the links { Γ ( σ ) | σ ∈ M ) are pairwise disjoint (as subsets of the plane). The second step of the proof of Theorem 1.5 is a reduction from a local instance to a linked noncrossing instance. This reduction is presented in Section 5.3 . 18 (a) Local instance (b) Linked non-crossing instance Figure 7: The local instance in (a) is depicted with respect to the pair σ = { p , q } . The graph G − σ is shown in red overlayed on G . The linked non-crossing instance is shown in (b). Note that the links γ 1 and γ 2 do not intersect each other as well as G − σ 1 and G − σ 2 respectively . Lemma 5.2. F or a real ϵ > 0 , let L ≍ ( ϵ ) be the maximum size of a ϵ -comatching in a linked noncross- ing instance. Then, the maximum size of a ϵ -comatching in a local instance is of O ( L ≍ ( ϵ ) 2 log 8 L ≍ ( ϵ ) · ϵ − 8 ) . The last and final step is a polynomial-in- ϵ − 1 bound on the maximum size of A linked noncrossing instance via a careful analysis of the topology of paths in such instance. This is presented in Section 5.4 . Lemma 5.3. F or a real ϵ > 0 , the maximum size of a ϵ -comatching in a linked noncrossing instance is at most ϵ − 14 . Combining the above lemmas allows us to prove Theorem 1.5 restated below . Theorem 1.5 (Comatching in Planar Metrics). There exists a polynomial L planar such that for every ϵ ∈ ( 0 , 1 ) and every planar metric ( V , dist ) , the ϵ -comatching index of ( V , dist ) is at most L planar ( 1 /ϵ ) . Proof: Fix any instance I = ( G , M ) . As argued above, we can assume that I is clean. Let L denote the size of its maximum ϵ -comatching. By Lemma 5.1 , L = O ( L local ( ϵ ) 9 ϵ − 8 ) . By Lemma 5.2 , L = O ( L ≍ ( ϵ ) 18 log 72 L ≍ ( ϵ ) · ϵ − 80 ) . Finally , by Lemma 5.3 , L = O ( ϵ − 332 log 72 ( ϵ − 1 )) , which finishes the proof . □ 5.1 Distance profiles and separation toolbox In all the subsequent subsections, we implicitly define I = ( G , M ) to be a clean ϵ -comatching instance with at least three terminal pairs. W e put L = | M | and enumerate M = { ( p 1 , q 1 ) , . . . ( p L , q L ) } . W e will denote R : = min ( p , q ) ∈ M dist ( p , q ) and set δ : = ϵ 100 R . Intuitively , δ will serve as one “unit” of distance, and differences of the order of a few δ s do not matter . In particular , for every distinct ( p i , q i ) , ( p j , q j ) ∈ M , we have dist ( p i , q j ) ≤ ( 1 − ϵ ) R = R − 100 δ . 19 F or two vertices u , v ∈ V ( G ) , by d dist ( u , v ) we denote the unique integer i such that i · δ ≤ dist G ( u , v ) < ( i + 1 ) · δ , that is, d dist ( u , v ) = ⌊ dist G ( u , v ) δ ⌋ . Claim 5.4. The diameter of G is at most 3 R . Proof: Pick any two vertices v 1 , v 2 ∈ V ( G ) . As our instance is clean, they are contained in some paths J p i 1 q j 1 K and J p i 2 , q j 2 K respectively . Since dist ( p i 1 , q j 1 ) + dist ( p i 2 , q j 2 ) < 2 R , either dist ( v 1 , p i 1 ) + dist ( v 2 , p i 2 ) < R or dist ( v 1 , q i 1 ) + dist ( v 2 , q i 2 ) < R . Assume w .l.o.g. the former . Pick any pair ( p i 3 , q i 3 ) ∈ M for some i 3 ∈ { i 1 , i 2 } . There exists a path of form v 1 → p i 1 → q i 3 → p i 2 → v 2 moving along respective paths between endpoints of M . The total length of this path is at most 3 R , which finishes the proof of the lemma. □ As an immediate corollary , we obtain that d dist ( u , v ) ≤ 3 R · δ − 1 = 300 ϵ − 1 for every u , v ∈ V ( G ) . F or a set Z ⊆ V ( G ) , the rounded distance profile of a vertex v ∈ V ( G ) is the function Ô prof Z [ v ] : Z → Z defined as Ô prof Z [ v ]( z ) = d dist ( v , z ) . Theorem 3.3 immediately implies the following. Lemma 5.5. Let Z ⊆ V ( G ) . F or v ∈ V ( G ) , let b Z Z [ v ] = { ( z , i ) ∈ Z × { 0, 1, . . . , ⌊ 300 ϵ − 1 ⌋} | Ô prof Z [ v ]( z ) ≤ i } . Then, the set system { b Z Z [ v ] | v ∈ V ( G ) } has VC -dimension at most 4 . In particular , by the Sauer- Shelah Lemma, its size is bounded by O ( | Z | 4 ϵ − 4 ) . W e need the following observations. Lemma 5.6. Let Z ⊆ V ( G ) and let ( p i , q i ) , ( p j , q j ) ∈ M be two distinct pairs such that p i and p j have the same rounded distance profile to Z . Then, J p i q j K does not contain a vertex that is within distance δ from Z . Proof: Assume the contrary: let u be a vertex on J p i q j K such that there exists z ∈ Z with dist ( z , u ) ≤ δ . As Ô prof Z [ p i ] = Ô prof Z [ p j ] , we have | dist ( p i , z ) − dist ( p j , z ) | < δ . Hence, | dist ( p i , u ) − dist ( p j , u ) | ≤ | dist ( p i , z ) − dist ( p j , z ) | + 2 dist ( u , z ) ≤ 3 δ . As u lies on J p i q j K , which is a shortest path from p i to q j , we infer that dist ( p j , q j ) ≤ dist ( p j , u ) + dist ( u , q j ) ≤ dist ( p i , u ) + dist ( u , q j ) + 3 δ = dist ( p i , q j ) + 3 δ , which is a contradiction to dist ( p j , q j ) ≥ R and dist ( p i , q j ) ≤ R − 100 δ . □ W e will say that the pair ( p i , q i ) is separated by a set X ⊆ V ( G ) if p and q are not in the same connected component of G − X . Lemma 5.7. Let X , Z ⊆ V ( G ) be such that every vertex of X is within distance δ from some vertex of Z and let ( p i , q i ) , ( p j , q j ) , ( p k , q k ) ∈ M be three pairwise distinct pairs. If all three vertices p i , p j , p k have the same rounded distance profile to Z , then neither of these three pairs is separated by X . Proof: Assume the contrary: w .l.o.g., ( p i , q i ) is separated by X . Consider a walk in G being a concatenation of J p i q j K , J q j p k K , and J p k q i K . Since ( p i , q i ) is separated by X , one of this paths intersects X , i.e., contains a vertex within distance δ from Z . This is a contradiction with Lemma 5.6 . □ Claim 5.8. Let X ⊆ V ( G ) be such that X is contained in the union of at most α paths, each of length at most β R for some α , β > 0 . Then, the number of pairs of M separated by X is O ( α 4 ϵ − 4 ( 1 + β ϵ − 1 ) 4 ) . Proof: Since X is contained in the union of at most α paths, each of length at most β R , there exists a set Z ⊆ V ( G ) of size O ( α ( 1 + β ϵ − 1 )) such that every vertex of X is within distance δ from some vertex of Z . By Lemma 5.5 , there are O ( | Z | 4 ϵ − 4 ) = O ( α 4 ϵ − 4 ( 1 + β ϵ − 1 ) 4 ) distinct rounded distance profiles to Z . Group pairs ( p i , q i ) ∈ M according to the rounded distance profile of p i to Z . Lemma 5.7 implies that for group that contains at least three pairs, these pairs are not separated by X . Consequently , the number of pairs separated by X is O ( α 4 ϵ − 4 ( 1 + β ϵ − 1 ) 4 ) . □ 20 5.2 R eduction to local instances In this subsection, we provide a proof of Lemma 5.1 . Consider a function Λ that maps any subset I of ( L local ( ϵ ) + 1) pairs of points from M to a subset of L local ( ϵ ) pairs of points. The mapping is defined as follows: given a subset I of size L local ( ϵ ) + 1, we put Λ ( I ) = I − { ( p a , q a ) } , where ( p a , q a ) ∈ M is an arbitrarily fixed pair such that p a and q a lie on different faces of G I −{ ( p a , q a ) } . Since L local ( ϵ ) is the maximum size of a local instance, such a pair always exists. By pigeonhole principle, there exists a set S ∈ M L local ( ϵ ) such that | Λ − 1 ( S ) | ≥ L L local ( ϵ ) + 1 / L L local ( ϵ ) = L − L local ( ϵ ) L local ( ϵ ) + 1 > L L local ( ϵ ) + 1 − 1 Let us denote this quantity by C = L L local ( ϵ )+ 1 − 1. There exist at least C indices { a 1 , a 2 , ..., a C } such that { p a i , q a i } / ∈ S and G S separates p a i and q a i . Since G S is a union of not more than L local ( ϵ ) 2 paths, each of length at most R , we can ap- ply Claim 5.8 to get C = O ( L local ( ϵ ) 8 ϵ − 8 ) . This in turn implies that L = O ( L local ( ϵ ) 9 ϵ − 8 ) , which finishes the proof of the lemma. 5.3 R eduction to linked noncrossing instances Assume that I is local. W e would like G to be a triangulation, hence we subdivide repeatedly all non-triangular faces by arbitrarily adding new edges of infinite weight inside them. W e will call such edges virtual . Such operation preserves all distances and shortest paths in G , however note that I is no longer clean after that operation. Pick any pair σ = ( p i , q i ) and look at the dual graph G ∗ . Let F p , F q denote arbitrary faces of G (hence vertices in G ∗ ) incident to resp. p i and q i . Since our instance is local, there exists a path from F p to F q in G ∗ which does not cross any edge of G ¬ σ . T ake γ σ to be the drawing of such path, at both ends extended within resp. F p , F q to reach resp. p i and q i . Doing this for each pair σ gives us a linked instance. Moreover , in this instance, each link γ σ visits any face of G at most once. F or the first step of the reduction to linked noncrossing instances we will utilize a classic tree decomposition method. 5.3.1 T ree decomposition and separators W e would like to take the tree decomposition of G as described in Theorem 3.5 . Its every adhesion induces a separator and the idea is to divide the plane using a number of such separators into a disjoint regions and argue that for every such region, there exists a link fully contained in it. R estricting our instance to one such link per region would result in it being non-crossing. Assume we have some spanning tree H of G containing only non-virtual edges of G (hence belonging to some J p i q j K ). Consider a tree decomposition ( T , β ) obtained from Theorem 3.5 for H . Let S be a separator induced by an adhesion of the edge e ∈ E ( T ) in said decomposition. As stated above, S is formed by taking two upward paths of H with endpoints connected via a closing edge of G not contained in H . F or convenience, by S we will refer to the subgraph of G containing the vertices of the separator and with edges restricted only to those two upward paths (with the closing edge excluded). By ξ S we denote the planar loop obtained by taking the drawing of both upward paths along with the closing edge. Consider two connected components into which T splits after removal of e . All the vertices contained in the interior of ξ S belong to bags within only one of those components, and all the vertices contained in the exterior of ξ S belong to bags within the other . W e will say that a pair σ ∈ M is bad with respect to S if the link γ σ intersects ξ S . Our goal is to argue that H can be chosen in a way that results in a very small fraction of pairs being bad with respect to any such separator S . 21 W e consider two cases of bad pairs. W e will say that a pair σ is separated by S if its endpoints are separated by S . W e will say that σ contaminates S if for some edge e ∈ S it holds that e ∈ G ¬ σ . These cases are indeed exhaustive, which is shown in the following claim. Claim 5.9. Every bad pair σ w .r .t. S is either separated by S or contaminates S . Proof: Assume σ is bad but not separated by S . This means that both endpoints of σ lie on the same side of the loop ξ S on the plane, but the link γ σ still intersects ξ S . By our construction, it must cross at least two different edges of ξ S and at most one of those can be the closing edge not contained in S . Thus, for some e ∈ E ( S ) , γ σ crosses e , hence e ∈ G ¬ σ . □ 5.3.2 The easily-coverable spanning tree T o bound the number of both types of bad pairs, we present the construction of a particular spanning tree H , with a property that its every subpath can be covered by a small number of paths J p i q j K . More formally , for each i ∈ [ L ] , we define a tree T i as the union of paths ∪ j : j = i J p i q j K . Such union is indeed a tree, given our guarantee that any two shortest paths remain disjoint after branching out for the first time. Before we show the construction, we will need the following claim. Claim 5.10. The number of vertices of G is of O ( L 4 ) . Proof: Let G ′ be G before it was triangulated. W e clearly have that | V ( G ) | = | V ( G ′ ) | . As the instance corresponding to G ′ is clean, by the definition of it being clean, we have that G ′ is exactly the union of all trees T i . There are 2 L vertices of degree 1 (terminals) and the remaining vertices are of degree at least 3 (again, because our instance is clean). Every vertex of degree at least 3 either has degree at least 3 in one of trees T i , or lies at an intersection of two different shortest paths between terminals, with no common terminals. In the first case, it is well known that in any tree, the number of vertices of degree at least 3 is at most the number of its leaves. Since we have L trees and each of those has at most L leaves, this gives us L 2 such vertices total. In the second case, we have at most L 2 different paths that can intersect. By our unique path assumption, every intersection of any two paths is a single subpath, hence such pair can only contribute to at most 2 vertices of degree 3 in G ′ , i.e., both endpoints of said common subpath. This gives us at most 2 L 4 such vertices total. □ Assuming L ≥ 3, the trees T i satisfy the conditions of Lemma 3.7 : let H be the spanning tree resulting from the lemma. By Claim 5.10 , log | V ( G ) | = O ( log L ) , so in fact any path in H can be decomposed into O ( log 2 L ) paths, each contained in a single tree T i . W e will argue that we can easily bound the number of bad pairs w .r .t. any separator induced by our tree decomposition. Note, that any separator S induced by an adhesion in H is now coverable by O ( log 2 L ) shortest paths in G , each of them being a subpath of some T i . This follows from the fact that all edges of such separator always form two vertex-to-root paths in H . Claim 5.11. There are at most O ( log 8 L · ϵ − 8 ) pairs in M that are separated by S . Proof: Every subpath of any T i is of length at most 2 R . Let α denote the smallest possible size of a collection of subpaths of T i ’s covering whole S ( α = O ( log 2 L ) by our previous observation). The claim now follows by applying Claim 5.8 with said α and β = 2. □ Claim 5.12. There are at most O ( log 2 L ) pairs in M that are contaminating S . 22 Proof: Let T denote the smallest subset of ( T i ) L i = 1 covering whole S . Each path in a tree T i consists of at most two subpaths of terminal to terminal paths (like J p i q j K ) for some j = i ; hence there is a set P of O ( log 2 L ) terminal to terminal paths that cover the whole S . F or any contaminating pair σ , there is an edge e σ ∈ E ( S ) such that e σ ∈ G ¬ σ . The edge e σ needs to be covered by P by a path with endpoint in σ . Since there are at most 2 | P | = O ( log 2 L ) pairs σ with endpoint in P , the claim follows. □ The remaining pairs are good with respect to S , that is, they are neither separated by S nor contaminate S . 5.3.3 Good pairs with noncrossing links W e are now ready to prove the main lemma of the subsection. Here is the main idea behind the proof: because the number of bad pairs is small w .r .t. any separator , if there are sufficiently many pairs in M , then we can choose a balanced separator S of T such that there exists a pair which is good and lies inside ξ S . Furthermore, by our definitions, the link of such pair must be contained entirely within ξ S . In the following proof , we want to find sufficiently many good pairs whose links are disjoint. And, as a direct consequence of the above observation, if we can find good pairs lying on different faces of some separators, then the desired condition will be satisfied. Proof (Proof of Lemma 5.2 ): Consider a spanning tree H produced by Lemma 3.7 and consider a tree decomposition ( T , β ) given by Theorem 3.5 for H . Define a weight function χ : V ( G ) → { 0 , 1 } which assigns 1 to terminals of all pairs in M and assigns 0 to all other vertices. The total weight over all vertices is then 2 L . Since we assign a positive weight only to leaf vertices, the weight of every bag is at most 3. W e will fix a parameter α , roughly of order L 1 / 2 , the value of which will be derived later . W e use Lemma 3.6 to split T in a balanced way w .r .t. χ . That is, we find a set F ⊆ E ( T ) of α edges such that the union of bags of each connected component of T − F has weight at least χ ( V ( G )) 4 α = L 2 α . The other case, where one bag is of weight at least 1 4 α χ ( V ( G )) , cannot hold if L is large enough. F or f ∈ F , put S f as the separator induced by the adhesion of f , as defined at the beginning of the subsection. Put X = S f ∈ F V ( S f ) . Fix any connected component C of T − F . Look at the set V C of vertices defined as the union of bags of C minus the vertices of X . W e argue that V C contains both terminals of at least one good pair . By Claim 5.11 and 5.12 , there are at most α · O ( log 8 L · ϵ − 8 ) pairs which are not good w .r .t. to any S f , hence twice as much terminal vertices belonging to any such pair . Moreover , every set V ( S f ) is a union of two paths on non-virtual edges, hence contains at most 2 vertices of originally degree 1, hence at most 2 terminal vertices. Therefore, the total number of terminal vertices in V C which are either bad or in X is at most α · c · log 8 L · ϵ − 8 , where c is some universal constant. The number of all terminal vertices in V C is χ ( V C ) ≥ L 2 α , hence if we set α such that 4 · α 2 · c ≤ L log − 8 L · ϵ 8 , then every V C − X will contain at least one terminal of a pair , say σ C , which will be good w .r .t. all S f . Now , consider any two components C 1 , C 2 and their corresponding pairs σ C 1 , σ C 2 . There is some edge f ′ ∈ F separating them in T , hence they lie on different sides of the loop ξ f ′ . In particular , the links σ C 1 , σ C 2 are separated by ξ f ′ , and hence are nonintersecting. This way , we have picked α = Θ ( L 1 / 2 log − 4 L · ϵ 4 ) pairs with pairwise nonintersecting links, one per each component of T − F . R estricting our instance to these pairs gives us a noncrossing instance, hence α ≤ L ≍ ( ϵ ) , and therefore L = O ( L ≍ ( ϵ ) 2 log 8 L ≍ ( ϵ ) · ϵ − 8 ) , which finishes the proof . □ 23 5.4 Bounding linked noncrossing instances Let I = ( G , M ) be a linked non-crossing instance. W e will frequently use the following uncrossing argument. Claim 5.13. Let σ a , σ b , σ c , σ d ∈ M be not necessarily distinct. If J p a q b K ∩ J p c q d K = ; , then dist ( p a , q b ) + dist ( p c , q d ) ≥ dist ( p a , q d ) + dist ( p c , q b ) . Proof: Let u be a vertex in the intersection of J p a q b K and J p c q d K . Split both J p a q b K and J p c q d K at u and observe that the subpath of J p a q b K from p a to u and the subpath of J p c q d K from u to q d form a walk from p a to q d while the remaining parts, i.e., the subpath of J p c q d K from p c to u and the subpath of J p a q b K from u to q b form a walk from p c to q b . The claim follows. □ The first immediate corollary is the following: Claim 5.14. J p i q j K ∩ J p j q i K = ; , ∀ σ i , σ j ∈ M . Proof: Suppose, for contradiction, that J p i q j K intersects J p j q i K . Then, by Claim 5.13 , 2 ( 1 − ϵ ) R ≥ dist ( p i , q j ) + dist ( p j , q i ) ≥ dist ( p i , q i ) + dist ( p j , q j ) ≥ 2 R . This is a contradiction. □ 5.4.1 Equidistant structure W e now filter M to get the following substructure. Definition 5.15. An equidistant structure in I is a triple ( σ ′ = ( p ′ , q ′ ) , σ ′′ = ( p ′′ , q ′′ ) , N ) where σ ′ , σ ′′ ∈ M , σ ′ = σ ′′ , N ⊆ M \ { σ ′ , σ ′′ } and the following holds: 1. F or every σ = ( p , q ) ∈ N , d dist ( p , q ′ ) = d dist ( p ′′ , q ′ ) and d dist ( q , p ′ ) = d dist ( q ′′ , p ′ ) . 2. F or every σ 1 = ( p 1 , q 1 ) , σ 2 = ( p 2 , q 2 ) ∈ N , d dist ( p 1 , q ′′ ) = d dist ( p 2 , q ′′ ) and d dist ( q 1 , p ′′ ) = d dist ( q 2 , p ′′ ) . 3. F or every distinct σ 1 = ( p 1 , q 1 ) , σ 2 = ( p 2 , q 2 ) ∈ N , the path J p 1 q 2 K does not intersect J p ′ q ′′ K nor J p ′′ q ′ K . The size of the equidistant structure ( σ ′ , σ ′′ , N ) is | N | . Lemma 5.16. Assume I does not contain an equidistant structure of size larger than L . Then, | M | = O ( L ϵ − 12 ) . Proof: Pick arbitrary σ ′ = ( p ′ , q ′ ) ∈ M . T ag each σ = ( p , q ) ∈ M \ { σ ′ } with the following tuple: ( d dist ( p , q ′ ) , d dist ( q , p ′ )) . There are O ( ϵ − 2 ) possible tags. Let M 1 ⊆ M \ { σ ′ } be a subset of pairs with the same tag. Pick arbitrary σ ′′ = ( p ′′ , q ′′ ) ∈ M 1 and re-tag each pair σ = ( p , q ) ∈ M 1 \ { σ ′′ } with the new tuple ( d dist ( p , q ′′ ) , d dist ( q , p ′′ )) . Again, there are O ( ϵ − 2 ) possible tags and let M 2 ⊆ M 1 \ { σ ′′ } be a subset of pairs with the same tag. Let Z be a set of O ( ϵ − 1 ) vertices such that every vertex of J p ′ q ′′ K ∪ J p ′′ q ′ K is within distance δ from a vertex of Z . By Lemma 5.5 , there are O ( ϵ − 8 ) possible rounded distance profiles to Z . By Lemma 5.6 , if σ 1 = ( p 1 , q 1 ) , σ 2 = ( p 2 , q 2 ) ∈ M 2 are such that the rounded distance profiles of p 1 and p 2 to Z are equal, then J p 1 q 2 K does not intersect J p ′ q ′′ K nor J p ′′ q ′ K . Consequently , if N ⊆ M 2 is a set of pairs ( p , q ) with the same rounded distance profile of p to Z , then ( σ ′ , σ ′′ , N ) is an equidistant structure. The lemma follows. □ Fix an equidistant structure ( σ ′ = ( p ′ , q ′ ) , σ ′′ = ( p ′′ , q ′′ ) , N ) in I . Our goal is to bound L = | N | by O ( ϵ − 2 ) . 24 5.4.2 F orbidden intersections W e now make a number of observations about disjointness of some paths in the equidistant structure ( σ ′ , σ ′′ , N ) . Note that J p ′ q ′′ K ∩ J q ′ p ′′ K = ; based on Claim 5.14 . Claim 5.17. F or every σ = ( p , q ) ∈ N , we have J q ′′ p K ∩ J q ′ p ′′ K = ; and J p ′′ q K ∩ J p ′ q ′′ K = ; . Proof: By contradiction, assume that J q ′′ p K and J q ′ p ′′ K intersect. By Claim 5.13 , ( 1 − ϵ ) R + dist ( q ′ , p ′′ ) ≥ dist ( q ′′ , p ) + dist ( q ′ , p ′′ ) ≥ dist ( q ′′ , p ′′ ) + dist ( q ′ , p ) ≥ R + dist ( q ′ , p ) . However , from the definition of an equidistant structure, d dist ( q ′ , p ′′ ) = d dist ( q ′ , p ) , which implies | dist ( q ′ , p ′′ ) − dist ( q ′ , p ) | < δ , a contradiction. The proof of J p ′′ q K ∩ J p ′ q ′′ K = ; is symmetrical. □ Claim 5.17 motivates the following definition. Let ˆ γ ′ be a minimal part of the link of σ ′ that connects J p ′ q ′′ K with J q ′ p ′′ K and let γ ′ be a curve from q ′′ to p ′′ consisting of the subpath of J p ′ q ′′ K from q ′′ to the endpoint of ˆ γ ′ , the curve ˆ γ ′ , and the subpath of J q ′ p ′′ K from the endpoint of ˆ γ ′ to p ′′ . As for ( p , q ) ∈ N we have that J q ′′ p K intersects with J q ′′ p ′ K only on its prefix, does not intersect with ˆ γ ′ (as the link of σ ′ does not intersect G ¬ σ ′ , which contains J q ′′ p K ) and does not intersect J q ′ p ′′ K (per Claim 5.17 ), we conclude that the only intersection of J q ′′ p K with γ ′ is the common prefix of J q ′′ p K and J q ′′ p ′ K . Similarly , the only intersection of J p ′′ q K with γ ′ is the common prefix of J p ′′ q K and J p ′′ q ′ K . Furthermore, the definition of an equidistant structure ensures that for every distinct σ 1 = ( p 1 , q 1 ) , σ 2 = ( p 2 , q 2 ) ∈ N , the path J p 1 q 2 K is disjoint with γ ′ . Intuitively , in what follows, one should think of γ ′ as a “rupture” in the plane that connects q ′′ and p ′′ . W e note that we defined γ ′ this way , instead of possibly more natural connection consisting of J q ′′ p ′ K , the link of σ ′ and J q ′ p ′′ K , because the latter one might have self-intersections, while γ ′ cannot. W e will argue about relative positions of different objects with respect to γ ′ . Before we continue, we make one more observation. Claim 5.18. F or every distinct σ 1 = ( p 1 , q 1 ) , σ 2 = ( p 2 , q 2 ) ∈ N , the path J p 1 q 2 K does not intersect J q ′′ p 2 K nor J p ′′ q 1 K . Proof: By contradiction, assume that J p 1 q 2 K and J q ′′ p 2 K intersect. By Claim 5.13 , ( 1 − ϵ ) R + dist ( q ′′ , p 2 ) ≥ dist ( p 1 , q 2 ) + dist ( q ′′ , p 2 ) ≥ dist ( q ′′ , p 1 ) + dist ( p 2 , q 2 ) ≥ dist ( q ′′ , p 1 ) + R . However , from the definition of an equidistant structure, d dist ( q ′′ , p 1 ) = d dist ( q ′′ , p 2 ) , which implies | dist ( q ′′ , p 1 ) − dist ( q ′′ , p 2 ) | < δ , a contradiction. The proof for J p ′′ q 1 K is symmetrical. □ 5.4.3 Order around p ′′ and q ′′ At this stage, we now have a sufficient toolbox to reason about the order on the pairs of N . Consider the shortest path tree with the root q ′′ and leaves { p | ( p , q ) ∈ N } ∪ { p ′ } . Since every terminal has only one incident edge of finite weight (i.e., not a virtual one), there is a well-defined clockwise cyclic order of the leaves { p | ( p , q ) ∈ N } ∪ { p ′ } . Let us transform this cyclic order into a linear order by declaring p ′ as its first element, and then delete p ′ from this order , obtaining as a result a linear clockwise ordering of { p | ( p , q ) ∈ N } ; we denote the induced ordering of N as π q ′′ . W e define the order π q ′′ analogously . The following claim unifies the two orders: Claim 5.19. π p ′′ = π q ′′ . 25 Proof: Assume, contrary to our claim that π p ′′ = π q ′′ . Let σ 1 = ( p 1 , q 1 ) , σ 2 = ( p 2 , q 2 ) ∈ N be such that σ 1 is before σ 2 in π p ′′ but σ 1 is after σ 2 in π q ′′ . W e consider a closed curve consisting of paths: J q ′′ p 1 K , J p 1 q 2 K , J q 2 p ′′ K , and the curve γ ′ . Since I is a linked noncrossing instance, the link of σ ′ does not intersect the paths J q ′′ p 1 K , J p 1 q 2 K , J q 2 p ′′ K . The properties of the equidistant structure ensure that J p 1 q 2 K does not intersect J p ′ q ′′ K ∪ J p ′′ q ′ K . W e infer that the paths J q ′′ p 1 K , J p 1 q 2 K , J q 2 p ′′ K , and the curve γ ′ form a closed curve without self-intersections, which we call γ . Observe that the path J q ′′ p 2 K does not intersect J p 1 q 2 K (Claim 5.18 ), nor J q 2 p ′′ K (Claim 5.14 ), nor J p ′′ q ′ K (Claim 5.17 ), nor the link of σ ′ . Furthermore, it may share a prefix starting at q ′′ with J q ′′ p ′ K and J q ′′ p 1 K , but then departs so that the clockwise order in the shortest path tree rooted at q ′′ is p 2 , p 1 , p ′ . Symmetrically , the path J p ′′ q 1 K does not intersect J p 1 q 2 K (Claim 5.18 ), nor J p 1 q ′′ K (Claim 5.14 ), nor J q ′′ p ′ K (Claim 5.17 ), nor the link of σ ′ . Furthermore, it may share a prefix starting at p ′′ with J p ′′ q ′ K and J p ′′ q 2 K , but then departs so that the clockwise order in the shortest path tree rooted at p ′′ is q ′ , q 1 , q 2 . This implies that q 1 and p 2 lie on different sides of the closed curve without self-intersections γ . Consider now the path J q 1 p 2 K . It does not intersect J p 1 q 2 K (Claim 5.14 ), nor J p ′′ q 2 K nor J q ′′ p 1 K (Claim 5.18 ), nor J p ′ q ′′ K nor J q ′ p ′′ K (equidistant structure) nor the link of σ ′ (linked noncrossing instance I ). Hence, it cannot intersect γ . This is a contradiction. □ Claim 5.19 allows us to enumerate N as σ 1 , σ 2 , . . . , σ L according to π p ′′ = π q ′′ . F or brevity , let σ i = ( p i , q i ) for 1 ≤ i ≤ L . 5.4.4 A box, T ype A and T ype B pairs Let 1 ≤ i ≤ L . Let ˆ γ i be a minimal part of the link of σ i that connects J p i q ′′ K with J q i p ′′ K . Let γ i be a curve consisting of a subpath of J q ′′ p i K from q ′′ to the endpoint of ˆ γ i , the curve ˆ γ i , and a subpath of J p ′′ q i K from the endpoint of ˆ γ i to p ′′ . Finally , let γ ◦ i be the concatenation of γ ′ and γ i . By Claim 5.17 , Claim 5.14 and the assumption that our instance is a linked noncrossing one, we deduce that γ ◦ i is a closed curve without self -intersections (only parts of J q ′′ p ′ K and J q ′′ p i K may share a prefix and J p ′′ q ′ K and J p ′′ q i K may share a prefix). W e call γ ◦ i the box of i . As γ ◦ i is a closed curve without self-intersections, it splits the plane into two regions. Without loss of generality , we can fix the face immediately clockwise after the first edge of J q ′′ p ′ K , looking from q ′′ , as the outerface of the embedding; this defines the inside and outside of γ ◦ i . (This is only so that the names “inside” and “outside” are natural; we could as well go with “the same side as the said face” and “the other side as the said face”.) Note that for every j = i , the path J q ′′ p j K needs to leave J q ′′ p i K before the endpoint of ˆ γ i , because our instance is linked noncrossing. Note that the path J q ′′ p j K leaves J q ′′ p i K towards the inside of γ ◦ i for j > i and towards the outside for j < i . Similarly , the path J p ′′ q j K leaves J p ′′ q i K to the inside of γ ◦ i for j < i and to the outside for j > i . W e observe that the link of σ j cannot intersect the box γ ◦ i as it does not intersect links of σ ′ and σ i (as our instance is linked noncrossing) and does not intersect J p ′ q ′′ K , J q ′′ p i K , J q i p ′′ K and J p ′′ q ′ K as all these paths are contained within G ¬ σ j . This leads to the conclusion that there are two ways two pairs σ i , σ j can be drawn for i < j , which we denote T ype A and T ype B; see Figure 8 . 1. If the link of σ j lies outside of the box γ ◦ i , the relation i < j is of T ype A, which we denote i < A j . 2. If the link of σ j lies inside of the box γ ◦ i , the relation i < j is of T ype B, which we denote i < B j . W e make the following observation: 26 (a) The box of σ i (b) T ype A R elationship (c) T ype B R elationship Figure 8: The dotted lines represent links. (a) γ i is the pink right-open trapeze shape, γ ′ is the orange left-open trapeze shape, and γ ◦ i is the concatenation of the two. γ i is drawn curly about p i , q i to highlight the reason for taking the minimal crossing component for the box, instead of the whole link. Shortest paths from p ′′ to later q s leave γ ◦ i to the outside, and shortest paths to earlier q s leave to the inside. Likewise, shortest paths from q ′′ to later p s, earlier p s leave γ ◦ i resp. to the inside, outside. (b) σ i , σ j are two pairs with i < A j . Note that J q ′′ p j K (green) intersects J p ′′ q i K (pink dotted) transversally , and J p ′′ q j K (blue dotted) does not intersect J q ′′ p i K (black). (c) Here i < B j instead. Symmetrically , J p ′′ q j K (blue) intersects J q ′′ p i K (black) transversally , and J q ′′ p j K (green) does not intersect J p ′′ q i K (pink). Claim 5.20. Let 1 ≤ i < j ≤ L . If i < A j , then J q ′′ p j K intersects J p ′′ q i K transversally , while J p ′′ q j K does not intersect J q ′′ p i K transversally (i.e., they touch or are disjoint). Symmetrically , if i < B j , then J p ′′ q j K intersects J q ′′ p i K transversally , while J q ′′ p j K does not intersect J p ′′ q i K transversally . Proof: Assume i < A j , that is, the link of σ j is outside γ ◦ i . The path J q ′′ p j K leaves J q ′′ p i K to the inside of γ ◦ i , does not intersect transversally J q ′′ p ′ K , does not intersect the link of σ ′ nor the link of σ i , and does not intersect J p ′′ q ′ K (Claim 5.17 ). Hence, to reach p j outside of γ ◦ i , it needs to intersect J p ′′ q i K transversally . Similarly , J p ′′ q j K leaves J p ′′ q i K to the outside of γ ◦ i , does not intersect transversally J p ′′ q ′ K , and does not intersect the links of σ ′ nor σ i nor J q ′′ p ′ K (Claim 5.17 ). Hence, to reach q j outside γ ◦ i , the path J p ′′ q j K cannot cross J q ′′ p i K transversally . The proof for i < B j is symmetrical. □ 5.4.5 T ype A and T ype B chains W e now show that T ypes A and B do not mix well. Claim 5.21. If 1 ≤ i < j < k ≤ L , then: 1. i < A j < A k = ⇒ i < A k , 2. i < B j < B k = ⇒ i < B k . Proof: W e start with the first point. F or contradiction, suppose that i < A j < A k , but not i < A k . The path J q ′′ p k K leaves J q ′′ p j K to the inside of γ ◦ j and leaves J q ′′ p i K to the inside of γ ◦ i . By Claim 5.20 : • the path J p ′′ q j K does not contain any point inside γ ◦ i (as i < A j ), • the path J q ′′ p k K does not contain any point outside γ ◦ i (as i < B k ), 27 • the path J q ′′ p k K needs to intersect J p ′′ q j K transversally (as j < A k ). This is a contradiction. The second point is symmetric, but let us outline it for completeness. F or contradiction, suppose that i < B j < B k , but not i < B k . The path J p ′′ q k K leaves J p ′′ q j K to the outside of γ ◦ j and leaves J p ′′ q i K to the outside of γ ◦ i . By Claim 5.20 : • the path J q ′′ p j K does not contain any point outside γ ◦ i (as i < B j ), • the path J p ′′ q k K does not contain any point inside γ ◦ i (as i < A k ), • the path J p ′′ q k K needs to intersect J q ′′ p j K transversally (as j < B k ). This is again a contradiction. □ Let S = { ( i , i ) | 1 ≤ i ≤ L } ∪ { ( i , j ) | 1 ≤ i < j ≤ L ∧ i < A j } . (T ype A is chosen arbitrarily here, T ype B would work equally well.) Claim 5.21 implies the following. Claim 5.22. S is a partial order on { 1, 2, . . . , L } . Proof: Clearly ≤ A is a homogeneous relation. Then what remains is to verify the three axioms: reflexivity , anti-symmetry , and transitivity . • R eflexivity: Immediate as we explicitly added { ( i , i ) | 1 ≤ i ≤ L } to S . • Anti-symmetry: Immediate as ( i , j ) ∈ S implies i ≤ j . • T ransitivity: This axiom is equivalent to Claim 5.21 . (In this case specifically 1 . , and 2 . for the analogous type B argument.) □ The remainder of the argument of this subsection relies on Dilworth’s theorem, a fundamental result in the theory of partially ordered sets, presented below . A set I ⊆ { 1 , . . . , L } is type-homogeneous if either for every i , j ∈ I with i < j , we have i < A j , or for every i , j ∈ I with i < j , we have i < B j . Theorem 5.23 (Dilworth’s Theorem). In every finite partially ordered set, the size of a maximal antichain equals the size of a minimum chain cover . Claim 5.24. If | N | = L ≥ 1 + ( K − 1 ) 2 for an integer K , then there exists a set I ⊆ { 1 , . . . , L } of size K that is type-homogeneous. Proof: Consider the partially ordered set ( { 1 , . . . , L } , S ) . If it contains a chain of length at least K , then any K elements of this chain form a set I such that for every i , j ∈ I with i < j we have i < A j . Otherwise, any minimum chain cover needs to contain at least ⌈ L / ( K − 1 ) ⌉ ≥ K chains. By Dilworth’s theorem, there exists an antichain of size at least K . Then, any K elements of this antichain form a set I such that for every i , j ∈ I with i < j , we have i < B j . □ 5.4.6 Final contradiction The time has come to show the final contradiction, thereby completing the proof of Lemma 5.3 . In the following claim we bound the size of a type-homogeneous set. The main intuition is as follows: Claim 5.20 implies that the intersections of paths J q ′′ p i K and J p ′′ q i K look as in Figure 9 (for T ype A; the case of T ype B is symmetric). W e show how to cut 2 | I | paths of length at most ( 1 − ϵ ) R each and arrange them into 2 | I | − 4 paths that connect terminals of the same pair; thus they are of length at least R . This implies | I | = O ( ϵ − 1 ) , as desired. 28 (a) Intersections of P aths J q ′′ p i K and J p ′′ q i K (b) Key Construction for Claim 5.25 Figure 9: i < A j < A k are three consecutive indices of I . (a) The paths J q ′′ p i K , J p ′′ q i K form a web like structure which can mostly be covered by long paths (of length at least R), shown here as greens and reds. The arrows are explained by: (b) The long paths P j (pink) connecting p j and q j , and Q j (green) connecting p ′′ and q ′′ , are constructed in Claim 5.25 following the direction of the arrows. It’s clear from the picture that the intersections v i , j , v i , k , and v j , k can be equal for consecutive indices without breaking either P j or Q j . Claim 5.25. Let I ⊆ { 1, . . . , L } be a type-homogeneous set. Then, | I | = O ( ϵ − 1 ) . Proof: W e consider the case of T ype A, that is, for every i , j ∈ I with i < j it holds that i < A j . the case of T ype B is symmetric (with swapping the roles of terminals p with terminals q ). By Claim 5.20 , for every i , j ∈ I with i < j , the paths J q ′′ p j K and J p ′′ q i K intersect transversally . Let v i , j be any vertex of this intersection. Pick arbitrary i , j , k ∈ I with i < j < k . R ecall that, by Claim 5.20 , J q ′′ p j K and J q ′′ p k K both intersect J p ′′ q i K transversally , and also J q ′′ p k K intersects J p ′′ q j K transversally . As the clockwise order of the leaves of the shortest path tree rooted at q ′′ is p i , p j , p k (and then the curve γ ′ ), on the path J p ′′ q i K the intersection with J q ′′ p j K lies closer to q i than the intersection with J q ′′ p k K (these intersections may be the same single vertex). Consequently , on J p ′′ q i K the vertices v i , j for j > i , j ∈ I lie in the increasing order of the index j if we traverse the path from p i to q ′′ (the vertices v i , j may be equal for consecutive indices j ∈ I ). Similarly , as the clockwise order of the leaves of the shortest path tree rooted at p ′′ is q i , q j , q k (and then the curve γ ′ ), on the path J q ′′ p k K the intersection with J p ′′ q j K lies closer to p k than the intersection with J p ′′ q i K (these intersections may be the same single vertex). Consequently , on J q ′′ p k K the vertices v i , k for i < k , i ∈ I lie in the increasing order of the index i if we traverse the path from q ′′ to p k (the vertices v i , k may be equal for consecutive indices i ∈ I ). W e now perform the rearrangement. Let i < j < k be three consecutive indices of I . W e construct a path P j connecting p j and q j as follows: start in p j , continue along J p j q ′′ K to v i , j then along J q i p ′′ K in the direction of p ′′ to v i , k , then along J q ′′ p k K in the direction of p k to v j , k , and finally along J p ′′ q j K to q j . W e construct a path Q j connecting p ′′ and q ′′ as follows: start in q ′′ , continue along J q ′′ p k K to v i , k , and then along J p ′′ q i K to p ′′ . There are | I | − 2 paths P j and | I | − 2 paths Q j , and each path P j or Q j is of length at least R . In the rearrangement we only used edges of paths J p ′′ q i K and J q ′′ p i K for i ∈ I and we do not use the same edge twice. Each of these paths is of length at most ( 1 − ϵ ) R . Hence, 2 | I | · ( 1 − ϵ ) R ≥ ( 2 | I | − 4 ) · R . This implies | I | ≤ 2 ϵ − 1 , as desired. □ This finishes the proof of Lemma 5.3 . 29 6 Coreset for k -Center In this section we build on the ideas developed so far to show a coreset for k -C E N T E R . W e first show a reduction from ( k , ϵ ) -Comatching to k -Center ϵ -Coreset, by mimicking the proof of Theorem 1.4 shown in Section 4 . However , ( k , ϵ ) -Comatching is still not a sufficiently structured object to analyze directly . T o address this, we apply a Ramsey-like argument which extracts either a comatching or double ladder from a large ( k , ϵ ) -Comatching. Since we already analyzed the size of comatching, we dedicate Section 7 to bound the size of double ladder . W e now recall the notion of k -Center ϵ -coreset, stated here in a slightly more convenient form. This definition is equivalent to Definition 1.9 , since ( 1 − ϵ ) − 1 ≈ 1 + ϵ , for small ϵ > 0. Definition 6.1 ( k -Center ϵ -coreset). A k -Center ϵ -coreset in a metric space ( V , dist ) is a subset C of V such that for every set X of at most k potential centers, it holds that max v ∈ V dist ( v , X ) ≤ ( 1 + ϵ ) max v ∈ C dist ( v , X ) 6.1 k -Comatching to k -center ϵ -coreset In this section, we prove Theorem 1.14 restated below . Theorem 1.14. Let ( V , dist ) be a metric space, P ⊆ V be a set of points, and a parameter ϵ ∈ ( 0 , 1 ) . Let L ( k , ϵ ) be the length of the maximum ( k , ϵ ) -comatching in ( V , dist ) . Let d be the VC-dimension of B V . Then there exists a k -center ϵ -coreset for P of size O ( d k log k ϵ − 2 · L ( k , ϵ 2 / 4 ) log L ( k , ϵ 2 / 4 )) . W e start by mimicking the proof of Theorem 1.4 to link the size of a coreset with an appropriately adapted notion of a comatching. Definition 6.2 ( ( k , ϵ ) -comatching). F or a real ϵ > 0 , a ( k , ϵ ) -comatching in a metric space ( V , dist ) is a set M ⊆ V × V k such that there exists a real R > 0 such that: 1. for every ( p , X ) ∈ M , we have dist ( p , X ) > R , and 2. for every distinct ( p 1 , X 1 ) , ( p 2 , X 2 ) ∈ M , we have dist ( p 1 , X 2 ) ≤ ( 1 − ϵ ) R and dist ( p 2 , X 1 ) ≤ ( 1 − ϵ ) R . Proof (Proof of Theorem 1.14 ): This proof follows very closely the proof of Theorem 1.4 . As we are now studying coresets for k -center , some individual vertices become sets of at most vertices; it will be more convenient to think of them as ordered tuples of k vertices, i.e., elements of V k . Fix 0 < ϵ < 1 and positive integers k , d . Let ( V , dist ) be a metric space such that the VC-dimension of the ball set system of ( V , dist ) is at most d . Let P ⊆ V . Without loss of generality , assume | P | > k + 1, as otherwise we can just take the entire P as a coreset. F or every tuple α of vertices of V , pick z α ∈ P to be a vertex maximizing the distance from α , breaking ties arbitrarily . W e start by taking care of the analog of the set V far from the proof of Theorem 1.4 , that is, tuples of k vertices that are terrible k -centers. Construct a tuple α 0 = ( v 0 1 , v 0 2 , . . . , v 0 k + 1 ) as follows. Let v 0 1 ∈ P be arbitrary . F or i = 2 , 3 , . . . , k + 1, let v 0 i = z ( v 0 1 ,..., v 0 i − 1 ) . Let ∆ = dist ( α 0 , z α 0 ) . Note that ∆ > 0 as | P | > k + 1. By the construction of α 0 , for every 1 ≤ a < b ≤ k + 1, dist ( v 0 a , v 0 b ) ≥ ∆ . Consequently , every ball of radius less than ∆ / 2 can contain at most one vertex of α 0 , so for every α ∈ V k we have dist ( α , z α ) ≥ ∆ / 2. On the other hand, for every v ∈ P there exists i ∈ [ k + 1 ] with dist ( v , v 0 i ) ≤ ∆ , so for every α ∈ V k we have max v ∈ P dist ( v , α ) ≤ ∆ + max i ∈ [ k + 1 ] dist ( v 0 i , α ) . 30 Let V = { α ∈ V k | dist ( α , z α ) ≤ ϵ − 1 ∆ } . W e infer that for every α ∈ V k \ V , max i ∈ [ k + 1 ] dist ( v 0 i , α ) ≥ max v ∈ P dist ( v , α ) − ∆ ≥ ( 1 − ϵ ) max v ∈ P dist ( v , α ) . Hence, { v 0 i | i ∈ [ k + 1 ] } is a k -center ϵ -coreset of size k + 1 for tuples not in V . In the remainder of the proof we focus on tuples of V . Let δ : = ϵ 4 · ∆ . W e partition V into sets V i for nonnegative integers i ; a tuple α belongs to V i if i δ ≤ dist ( α , z α ) < ( i + 1 ) δ . Note that, as ∆ / 2 ≤ dist ( α , z α ) ≤ ϵ − 1 ∆ for α ∈ V , the set V i is nonempty only for ⌊ 2 ϵ − 1 ⌋ ≤ i ≤ ⌊ 4 ϵ − 2 ⌋ . Fix i for which V i = ; . F or α ∈ V i define S α i = { u ∈ P | dist ( α , u ) ≥ ( i − 1 ) δ } . Clearly , z α ∈ S α i . W e consider set system A i = { S α i | α ∈ V i } of subsets of V . First, we observe that it suffices to find a hitting set of A i . Claim 6.3. Any hitting set of A i is also a k -center ϵ -coreset for furthest neighbor of V i . Proof: The proof is identical to the proof of Claim 4.2 . W e copy-paste it below for completeness. Let X be a hitting set of A i . Let α ∈ V i and let x ∈ X ∩ S α i , which exists as X is a hitting set. Then, by the definition of S α i , dist ( α , x ) ≥ ( i − 1 ) δ . Hence, dist ( α , z α ) − dist ( α , x ) ≤ 2 δ . On the other hand, dist ( α , z α ) ≥ ∆ / 2. Thus, dist ( α , z α ) − dist ( α , x ) ≤ 2 δ ≤ 4 · δ ∆ · dist ( α , z α ) ≤ ϵ · dist ( α , z α ) . Thus, indeed X is a k -center ϵ -coreset for furthest neighbor of V i . □ T o use Theorem 4.1 , we need to bound the VC -dimension of A i . Claim 6.4. The VC -dimension of A i is O ( d k log k ) . Proof: Observe that every set in A i is an intersection of k complements of balls in ( V , dist ) . Since taking complements of all sets in a set system does not change its VC-dimension, the claim follows from Lemma 3.4 . □ Consequently , by Theorem 4.1 , to bound the size of a hitting set of A i it suffices to bound the optimum value of its LP relaxation; let τ ∗ i be this optimum value. W e connect τ ∗ i to the bound on the size of a ( k , ϵ ) -comatching in ( V , dist ) via the following simple rounding. Claim 6.5. There exists a ( k , ϵ 2 / 4 ) -comatching in ( V , dist ) of size ⌊ τ ∗ i / 4 ⌋ . 31 Proof: The proof is identical to the proof of Claim 4.3 . W e copy-paste it below for completeness. Consider an optimum solution to the dual LP to H I T T I N G S E T on A i ; for clarity of notation, we use ( y α ) α ∈ V i for the dual variables instead of ( y S α i ) α ∈ V i . Clearly , P α ∈ V i y α = τ ∗ i . Let µ be a probability distribution over V i , where α ∈ V i is sampled with probability y α /τ ∗ i . F or β , α ∈ V i , we say that β threatens α if z α ∈ S β i . Note that any α ∈ V i threatens itself. Let α ∈ V i be fixed and let β be sampled from V i according to µ . Then, P rob ( α is threatened by β ) ≤ X β : z α ∈ S β y β τ ∗ i ≤ 1 τ ∗ i . (2) Indeed, ( 2 ) follows directly from the dual LP constraint for the vertex z α : X β ∈ V i | z α ∈ S β i y β ≤ 1. Let K : = ⌊ τ ∗ i / 4 ⌋ and let α 1 , α 2 , . . . , α 2 K be vertices sampled independently from V i according to the distribution µ . Then, by ( 2 ) , the expected number of pairs ( i , j ) , 1 ≤ i , j ≤ 2 K , i = j such that α i threatens α j is at most 4 K 2 · 1 τ ∗ i ≤ K . Therefore, there exists a choice of α 1 , α 2 , . . . , α 2 K such that the number of such pairs ( i , j ) is at most K . Pick such a choice and, for every pair ( i , j ) , 1 ≤ i , j ≤ 2 K , i = j , such that α i threatens α j , discard α i . W e are left with a set W of at least K tuples of V i such that for every β , α ∈ W , β = α , β does not threaten α . W e claim that { ( z α , α ) | α ∈ W } is the desired ( k , ϵ 2 / 4 ) -comatching in G ; it clearly has size at least K . Since W ⊆ V i , we have for every α ∈ W dist ( α , z α ) ≥ i δ . On the other hand, for every β , α ∈ W , β = α , as β does not threaten α , we have z α / ∈ S β i so dist ( z α , β ) ≤ ( i − 1 ) δ . As i ≤ ⌊ 4 ϵ − 2 ⌋ , we have i − 1 i ≤ 1 − 1 ⌊ 4 ϵ − 2 ⌋ ≤ 1 − 1 4 ϵ − 2 = 1 − ϵ 2 4 . □ By Claim 6.5 , τ ∗ i ≤ 4 L + 3, where L is the maximum size of an ( ϵ 2 / 4 ) -comatching in ( V , dist ) . By Theorem 4.1 and Claim 6.4 , there exists a hitting set X i of A i of size O ( d k log k · L log L ) . Claim 6.3 asserts that X i is a k -center ϵ -coreset for furthest neighbor of V i . Hence, for the k -center ϵ -coreset of the whole V k , it suffices to take the { v 0 1 , . . . , v 0 k + 1 } and the union of O ( ϵ − 2 ) sets X i for which V i is nonempty . This finishes the proof of Theorem 1.14 . R emark 1. The running time in the construction of Theorem 1.14 is n O ( k ) since we need to solve a H I T T I N G S E T LP with n O ( k ) constraints, one for each k -tuple. W e can reduce n to k O ( poly ( 1 /ϵ )) by applying the coreset for k -center of in planar metrics by Bourneuf and Pilipczuk [ 9 ] ; this coreset can be constructed in n O ( 1 ) time. Now we run our algorithm on the planar metrics induced by the coreset of Bourneuf and Pilipczuk. The running time is now ( 2 O ( poly ( k /ϵ )) + n O ( 1 ) ) . 32 6.2 R eduction from k -comatching to double ladder In this section, we reduce bounding the size of k -comatchings to bounding the size of double ladders as stated in Theorem 1.16 . Theorem 1.16. Let ( V , dist ) be a metric space such that the ball set system B V has VC-dimension at most d . Let ϵ ∈ ( 0 , 1 ) be a parameter . There exists a universal constant c and a polynomial f k , d ( x ) = x ( c · d ) 4 k such that if ( V , dist ) contains a ( k , ϵ ) -comatching of size at least f k , d ( ℓ ) , then it contains either an ( ϵ / 2 ) -comatching or an ( ϵ / 2 ) -double ladder of size ℓ . First, we recall the definition of a double ladder . Definition 1.15 ( ϵ -double ladder). Let D = { ( p 1 , b 1 , t 1 ) , ( p 2 , b 2 , t 2 ) , . . . , ( p ℓ , b ℓ , t ℓ ) } ⊆ V 3 be a se- quence of ℓ ordered triplets of points in a metric ( V , dist ) , and ϵ ∈ ( 0 , 1 ) be a parameter . W e say that D is an ϵ -double ladder if there exists R > 0 such that: 1. for every 1 ≤ i ≤ j ≤ ℓ , dist ( p j , t i ) > R and dist ( p i , b j ) > R ; 2. for every 1 ≤ i < j ≤ ℓ , dist ( p i , t j ) ≤ ( 1 − ϵ ) R and dist ( p j , b i ) ≤ ( 1 − ϵ ) R . The sets of points { t 1 , . . . , t ℓ } and { b 1 , . . . , b ℓ } are called the top and bottom of the double ladder 4 , respectively . T o prove Theorem 1.16 , we will use the polynomial Ramsey bounds for graphs of bounded VC-dimension of Nguyen, Scott, and Seymour [ 44 ] . A VC -dimension of an (undirected, simple) graph G is the VC -dimension of the set system of open neighborhoods, that is, { N G ( v ) | v ∈ V ( G ) } . Theorem 6.6 (Theorem 1.2 of [ 44 ] ). F or every d ≥ 1 , there exists δ > 0 such that every n -vertex graph G of VC -dimension at most d contains either a clique or an independent set of size at least n δ . Proof (Proof of Theorem 1.16 .): Fix positive integers k , d and a real ϵ > 0. Let ( V , dist ) be a metric space whose ball set system has VC-dimension at most d and let M be a ( k , ϵ ) -comatching in ( V , dist ) of size L > 1. Enumerate M as M = { ( p 1 , X 1 ) , ( p 2 , X 2 ) , . . . , ( p L , X L ) } . Furthermore, for each j ∈ [ L ] , enumerate X j as ( q 1 j , q 2 j , . . . , q k j ) . Let R be the distance from the definition of the ( k , ϵ ) -comatching M . F or every i ∈ [ k ] , we define four graphs H → i , H ← i , ¯ H → i , ¯ H ← i as follows. The vertex set of all four graphs is [ L ] . F or 1 ≤ a < b ≤ L , we have a b ∈ E ( H → i ) if and only if dist ( p a , q i b ) ≤ ( 1 − ϵ ) R and a b ∈ E ( ¯ H → i ) if and only if dist ( p a , q i b ) ≤ ( 1 − ϵ / 2 ) R . Similarly , for 1 ≤ a < b ≤ L , we have a b ∈ E ( H ← i ) if and only if dist ( p b , q i a ) ≤ ( 1 − ϵ ) R and a b ∈ E ( ¯ H ← i ) if and only if dist ( p b , q i a ) ≤ ( 1 − ϵ / 2 ) R (Note the difference of ϵ vs ϵ / 2 between H and ¯ H .) Claim 6.7. F or every i ∈ [ k ] , the VC-dimension of H ← i , H → i , ¯ H ← i , ¯ H → i is O ( d ) . Proof: Observe that every neighborhood in any of the four aforementioned graphs can be constructed by means of basic set operations from a constant number of sets being either balls in ( V , dist ) , which has VC -dimension d , or sets of consecutive indices in [ L ] , and the family of such sets has VC - dimension O ( 1 ) . The claim follows from bounds on VC-dimension under basic set operations, as shown in [ 6 ] . □ 4 W e will be using mathfrak font for the top and bottom points of a double ladder 33 Let δ = δ ( d ) be the exponent of Theorem 6.6 for the VC -dimension bound of Claim 6.7 . R epeated application of Theorem 6.6 to every H ← i , H → i , ¯ H ← i , ¯ H → i , yields a set I ⊆ [ L ] of size at least L δ 4 k such that for every i ∈ [ k ] , each of the graphs H ← i [ I ] , H → i [ I ] , ¯ H ← i [ I ] , ¯ H → i [ I ] , is a clique or an independent set. In the remainder of the proof , we will show that ( V , dist ) admits either an ( ϵ / 2 ) -comatching or an ( ϵ / 2 ) -double ladder of size | I | ≥ L δ 4 k . This will conclude the proof . Note that as L > 1, we have | I | > 1. Consider first the case where there exists i ∈ [ k ] such that both ¯ H ← i [ I ] and ¯ H → i [ I ] are cliques. Then, { ( p j , q i j ) | j ∈ I } is an ( ϵ / 2 ) -comatching of size | I | ≥ L δ 4 k and we are done. Assume then that no such i exists. By the definition of a comatching, for every a , b ∈ I , a < b , we have dist ( p a , X b ) ≤ ( 1 − ϵ ) R and dist ( p b , X a ) ≤ ( 1 − ϵ ) R . As | I | > 1, this implies that there exists i → ∈ [ k ] such that H → i → [ I ] is a clique and there exists i ← ∈ [ k ] such that H ← i ← [ I ] is a clique. Clearly , ¯ H → i → [ I ] and ¯ H ← i ← [ I ] are also cliques. By the case excluded in the previous paragraph, i ← = i → and, furthermore, both ¯ H → i ← [ I ] and ¯ H ← i → [ I ] are independent sets. In other words, for every a , b ∈ I , a < b , we have dist ( p b , q i ← a ) ≤ ( 1 − ϵ ) R , dist ( p b , q i → a ) > ( 1 − ϵ / 2 ) R , dist ( p a , q i → b ) ≤ ( 1 − ϵ ) R , dist ( p a , q i ← b ) > ( 1 − ϵ / 2 ) R . R ecall that, from the definition of a ( k , ϵ ) -comatching, for every a ∈ I we have dist ( p a , q i ← a ) > R and dist ( p a , q i → a ) > R . This implies that the sequence ( p a , q i ← a , q i → a ) | a ∈ I forms an ( ϵ / 2 ) -double ladder (for the distance ( 1 − ϵ / 2 ) R ) of size | I | ≥ L δ 4 k in ( V , dist ) . This finishes the proof of Theorem 1.16 . □ Note that degree of the polynomial f k , d of Theorem 1.16 is δ − 4 k , where δ is the degree of Theo- rem 6.6 for VC-dimension O ( d ) . A close inspection of [ 44 ] reveals that the dependency of δ − 1 on the VC -dimension is exponential; hence, the degree of f k , d depends exponentially on k and d . 7 The Size of Double L adders This section is devoted to the proof of Theorem 1.17 , which establishes a bound on the size of ϵ -double ladder . The structure of this section closely parallels that of Section 5 , with most arguments applying on the set of triplets D = { ( p i , b i , t i ) } L i = 1 in place of the pairs M = { ( p i , q i ) } L i = 1 . The analysis diverges slightly during the final contradiction involving some topological case analysis, but the overall strategy remains the same. Consequently , the resulting bound differs from the ϵ -comatching bound by a poly ( ϵ − 1 ) factor . Fix ϵ > 0. W e will use a notation and definitions analogous to that introduced for ϵ -comatchings in Section 5 . A pair ( G , D ) is an instance if G is a plane edge-weighted graph and D is an ϵ -double ladder . Again, we assume that G comes with a fixed embedding in a plane. The vertices p , b , t for any triple ( p , b , t ) ∈ D are called terminals . Similarly to the proof for comatchings, we assume that the lengths of all paths are pairwise different, and that the shortest paths between any pairs of terminals ( p 1 , t 2 ) and ( p 1 , b 2 ) are unique. Again, we assume that our instance is clean , that is, that all the terminals are of degree 1, that G 34 contains no vertices of degree 2, and that every edge lies on some shortest path between either ( p i , t j ) or ( p j , b i ) for some triples ( p i , b i , t i ) , ( p j , b j , t j ) ∈ D with i < j . W e use the same notation: J p 1 t 2 K , J p 1 b 2 K to denote the shortest paths between terminals; G D 0 for D 0 ⊆ D to denote the subgraph of G consisting only on shortest paths between terminals of D 0 ; and G ¬ σ as a shorthand for G D −{ σ } for any σ ∈ D . W e say that an instance ( G , D ) is local if for every σ ∈ D , the terminals of σ lie in the same face of G ¬ σ . F or a triple σ = ( p , b , t ) ∈ D , a link is a curve in good position w .r .t. G, connecting p to either b or t , which does not intersect any edge of G ¬ σ . A linked instance is an instance ( G , D ) with two links between resp. p and t , and p and b , fixed for every ( p , b , t ) ∈ D . A linked instance is noncrossing if all links are pairwise disjoint. The proof of Theorem 1.17 will, similarly to comathing case, consist of the three following steps. Lemma 7.1. F or a real ϵ > 0 , let L # local ( ϵ ) be the maximum size of a ϵ -double ladder in a local instance. Then, the maximum size of a ϵ -double ladder in any instance is of O ( L # local ( ϵ ) 9 ϵ − 8 ) . Lemma 7.2. F or a real ϵ > 0 , let L # ≍ ( ϵ ) be the maximum size of a ϵ -double ladder in a linked noncrossing instance. Then, the maximum size of a ϵ -double ladder in a local instance is of O ( L # ≍ ( ϵ ) 2 log 8 L # ≍ ( ϵ ) · ϵ − 8 ) . Lemma 7.3. F or a real ϵ > 0 , the maximum size of a ϵ -double ladder in a linked noncrossing instance is at most O ( ϵ − 4 ) . Putting these three lemmas together immediately gives the proof of Theorem 1.17 . 7.1 Distance profiles and separation toolbox W e start by introducing the notation for distance-based arguments, analogous to the one used in the case of comatching. W e additionally restate and prove some separation lemmas adapted to our current setting. F or the remainder of the proof , ( G , D ) is a clean ϵ -double ladder instance with at least three terminal triplets. W e put L = | D | , enumerate D = { ( p 1 , b 1 , t 1 ) , . . . , ( p L , b L , t L ) } and put R : = min ( p , b , t ) ∈ D min ( dist ( p , t ) , dist ( p , b )) , δ : = ϵ 100 R . R ecall that δ serves as one “unit” of distance, and differences of the order of a few δ s do not matter . Claim 7.4. If L ≥ 3 , then the diameter of G is at most 8 ( 1 − ϵ ) R . Proof: R ecall that the instance is clean, that is, every vertex lies on a path J p i 1 t i 2 K or J b i 1 p i 2 K for some i 1 < i 2 . Fix 1 ≤ i 1 < i 2 ≤ L . Every vertex on J p i 1 t i 2 K is within distance at most 2 ( 1 − ϵ ) R from p 1 , as the lengths of J p i 1 t i 2 K and J p 1 t i 2 K are at most ( 1 − ϵ ) R each. Similarly , every vertex on J b i 1 p i 2 K is within distance at most 2 ( 1 − ϵ ) R from p L , as J b i 1 p i 2 K and J b i 1 p L K are at most ( 1 − ϵ ) R each. Finally , the distance between p 1 and p L is at most 4 ( 1 − ϵ ) R , as they are connected by paths J p 1 t 3 K , J t 3 p 2 K , J p 2 b 1 K , J b 1 p L K , each of length at most ( 1 − ϵ ) R . □ As an immediate corollary , we obtain that d dist ( u , v ) ≤ 8 R · δ − 1 = 800 ϵ − 1 for every u , v ∈ V ( G ) . Analogously to the comatching case, for a set Z ⊆ V ( G ) , the rounded distance profile of a vertex v ∈ V ( G ) is the function Ô prof Z [ v ] : Z → Z defined as Ô prof Z [ v ]( z ) = d dist ( v , z ) . Again, Theorem 3.3 immediately implies the following. 35 Lemma 7.5. Let Z ⊆ V ( G ) . F or v ∈ V ( G ) , let b Z Z [ v ] = { ( z , i ) ∈ Z × { 0, 1, . . . , ⌊ 800 ϵ − 1 ⌋} | Ô prof Z [ v ]( z ) ≤ i } . Then, the set system { b Z Z [ v ] | v ∈ V ( G ) } has VC -dimension at most 4 . In particular , by the Sauer- Shelah Lemma, its size is bounded by O ( | Z | 4 ϵ − 4 ) . The following observations are restated, but require some different arguments to prove in our new setting. Lemma 7.6. Let Z ⊆ V ( G ) and ( p i , b i , t i ) , ( p j , b j , t j ) be two distinct triplets of D such that i < j . Then neither J p i t j K , nor J p j b i K contains a vertex that is within distance δ from Z . Proof: F or contradiction, let u be a vertex on J p i t j K such that there exists z ∈ Z with dist ( z , u ) ≤ δ . As Ô prof Z [ p i ] = Ô prof Z [ p j ] , we have | dist ( p i , z ) − dist ( p j , z ) | < δ . Hence, | dist ( p i , u ) − dist ( p j , u ) | ≤ | dist ( p i , z ) − dist ( p j , z ) | + 2 dist ( u , z ) ≤ 3 δ . W e infer that dist ( p j , t j ) ≤ dist ( p i , t j ) + 3 δ , which is a contradiction to dist ( p j , t j ) ≥ R and dist ( p i , t j ) ≤ R − 100 δ . □ Lemma 7.7. Let X , Z ⊆ V ( G ) be such that every vertex of X is within distance δ from some vertex of Z , and ( p i , b i , t i ) , ( p j , b j , t j ) , ( p k , b k , t k ) ∈ D be three distinct triplets with i < j < k . If p i , p j , p k all have the same rounded distance profile to Z , then ( p j , b j , t j ) is not separated by X . Proof: p i cannot be separated by X from either of t j , t k , because otherwise J p i t j K (likewise J p i t k K ) intersects X , which is a contradiction with Lemma 7.6 . By the same reasoning, p j is not separated by X from b i , t k and p k is not separated by X from b i , b j . Cumulatively , p i , b i , p j , t j , b j , p k , t k are in one connected component of G − X , henceforth denoted by C . Therefore, only t i and / or b k can be separated by X from C . □ Claim 7.8. Let X ⊆ V ( G ) be such that X is contained in the union of at most α paths, each of length at most β R for some α , β > 0 . Then, the number of triplets of D separated by X is O ( α 4 ϵ − 4 ( 1 + β ϵ − 1 ) 4 ) . Proof: Since X is contained in the union of at most α paths, each of length at most β R , there exists a set Z ⊆ V ( G ) of size O ( α ( 1 + β ϵ − 1 )) such that every vertex of X is within distance δ from some vertex of Z . By Lemma 5.5 , there are O ( | Z | 4 ϵ − 4 ) = O ( α 4 ϵ − 4 ( 1 + β ϵ − 1 ) 4 ) distinct rounded distance profiles to Z . Group triplets ( p i , b i , t i ) ∈ D according to the rounded distance profile of p i to Z . F or any group that has at least three triplets, say s triplets, order the them with respect to their indices, and relabel them as ∪ 1 ≤ i ≤ s ( p i , b i , t i ) . F or k ∈ s , s − 1 , . . . , 3 we consider the set { ( p k − 2 , b k − 2 , t k − 2 ) , ( p k − 1 , b k − 1 , t k − 1 ) , ( p k , b k , t k ) } . A t step k , Lemma 7.7 implies that ( p k − 1 , b k − 1 , t k − 1 ) cannot be separated by X .Thus, in the group, only ( p 1 , b 1 , t 1 ) and ( p s , b s , t s ) can be separated by X . Consequently , the number of pairs separated by X is O ( α 4 ϵ − 4 ( 1 + β ϵ − 1 ) 4 ) . □ 7.2 R eduction to local double ladder In this subsection, we provide a proof of Lemma 7.1 . The proof is essentially the same as the proof of Lemma 5.1 , with the only minor technical difference that we look at triples, instead of pairs of terminals, hence we need to substitute the paths separation lemma with its generalization to triplets, i.e., Claim 7.8 . The rest of the proof remains exactly the same. W e repeat it for completeness. Consider a function Λ that maps any subset I of ( L # local ( ϵ ) + 1) triples of points from D to a subset of L # local ( ϵ ) triples of points. The mapping is defined as follows: given a subset I of size L # local ( ϵ ) + 1, we put Λ ( I ) = I − { σ a } , where σ a ∈ D is an arbitrarily fixed triple such that σ a is separated by the vertices of G I −{ σ a } . Since L # local ( ϵ ) is the maximum size of a local instance, such a pair always exists. 36 By pigeonhole principle, there exists a set S ∈ D L # local ( ϵ ) such that | Λ − 1 ( S ) | ≥ L # L # local ( ϵ ) + 1 / L # L # local ( ϵ ) = L # − L # local ( ϵ ) L # local ( ϵ ) + 1 > L # L # local ( ϵ ) + 1 − 1 Let us denote this quantity by C = L # L # local ( ϵ )+ 1 − 1. There exist at least C indices { a 1 , a 2 , ..., a C } such that σ a ∈ S and G S separates σ a for each i ∈ [ C ] . Since G S is a union of not more than L # local ( ϵ ) 2 paths, each of length at most R , we can ap- ply Claim 7.8 to get C = O ( L # local ( ϵ ) 8 ϵ − 8 ) . This in turn implies that L # = O ( L # local ( ϵ ) 9 ϵ − 8 ) , which finishes the proof of the lemma. 7.3 R eduction to the linked noncrossing double ladder In this subsection, we prove Lemma 7.2 . Many of the following arguments are borrowed directly or adapted from the proof of Lemma 5.2 ; in light of this, we will often simply restate claims or lemmas, omitting their proofs, and keep discussions brief , until the point where we deviate from the prior . Let ( G , D ) be a local double ladder instance. Fix a triangulation G ′ of G obtained by repeatedly subdividing non-triangular faces of G by arbitrarily adding virtual edges. T o make our instance linked, we iteratively assign a link to every triplet via the following process. Pick any unassigned σ = ( p , b , t ) , and let F p , F t and F b denote arbitrary faces of G incident resp. to p , t , b . T race a path from F t to F p in G ∗ which does not cross any edge of G ¬ σ (existence guaranteed by locality), and extend the endpoints of the drawing within F t , F p to reach resp. t and p . The curve γ p , t traced this way is a link for σ . W e trace γ p , b between p and b exactly the same way . Both paths share an endpoint at p , hence γ p , t , γ p , b can be drawn such that their intersection is just the point p . 7.3.1 T ree decomposition and separators F or each i ∈ [ L ] , define tree T i to be the union of union of paths ∪ j : j < i J p i b j K ∪ ∪ j : j > i J p i t j K . F or L ≥ 3 the trees T i satisfy the assumptions of Lemma 3.7 if we use T 2 in the role of the first tree: the tree T 2 intersects T 1 at t L and every tree T i for i ≥ 3 at b 1 . Let H be the result of applying Lemma 3.7 . Applying Theorem 3.5 to triangulation G ′ , we obtain ( T , β ) , a tree decomposition of G . R ecall that with the decomposition obtained this way , its every adhesion is a separator formed by a union of two upward paths of H , whose endpoints are connected via a closing edge of E ( G ′ ) − E ( H ) . F or the sake of convenience, we use S to refer to the subgraph of G containing the vertices of such separator and with edges restricted only to those two paths. By ξ S we denote the planar loop obtained by taking the drawing of both paths plus the closing edge. W e will say that a triplet σ = ( p , b , t ) ∈ D is bad with respect to S if either of the links γ p , t , γ p , b intersects ξ S . There are only two ways for a triplet to be bad: either it is separated by S , here meaning that any pair of its terminals is separated by S , or it contaminates S ( ∃ e ∈ S s.t. e / ∈ G ¬ σ ). These two cases are indeed exhaustive: this follows from the analogue of Claim 5.9 , and its proof in the double ladder setting remains the same, the only difference being that instead of a single link γ σ per pair , we look at the union of two links γ p , b , γ p , t . As before, our aim is to bound the number of bad pairs w .r .t to a separator , so that we can take a number of separators, pick a good pair from each component, and in the end obtain a non-crossing instance of reasonable size. 7.3.2 Bounding bad triplets W e continue to mirror the proof of Lemma 5.2 and now seek to bound the number of each type of bad triplets. Since our instance is clean, we can argue that G has O ( L 4 ) vertices. The argument follows the proof of Claim 5.10 line by line, the only difference being that trees T i now have 2 L leaves, 37 instead of L , and that there are 3 L vertices of degree 1, instead of 2 L . The bound asymptotically remains the same. W e reuse the Claim 5.12 to bound the number of triples contaminating S . W e restate the claim here for completeness. Its proof remains exactly the same, as we retain the property that every separator S is covered by a family of O ( log 2 L ) terminal to terminal paths. Claim 7.9. There are at most O ( log 2 L ) triples in D that are contaminating S . The bound on the number of separated triplets is trivial given our previous separation lemmas. Claim 7.10. There are O ( log 8 L · ϵ − 8 ) triples in D that are separated by S . Proof: Every subpath of T i is of length at most 2 R . By Lemma 3.7 , S can be covered by α = O ( log 2 L ) subpaths of some T i s. Thus the claim holds as a direct result of Claim 7.8 with α and β = 2. □ 7.3.3 Good triplets with noncrossing links W e are finally ready to prove Lemma 7.2 . Again, the intuition here remains the same as in the comatching case and the proof follows the one of Lemma 5.2 very closely . W e retell it here for the sake of completeness, although in a more concise way . R efer to the proof of Lemma 5.2 for a more detailed explanation. Lemma 7.2. F or a real ϵ > 0 , let L # ≍ ( ϵ ) be the maximum size of a ϵ -double ladder in a linked noncrossing instance. Then, the maximum size of a ϵ -double ladder in a local instance is of O ( L # ≍ ( ϵ ) 2 log 8 L # ≍ ( ϵ ) · ϵ − 8 ) . Proof (Proof of Lemma 7.2 ): W e define the weight function χ : V ( G ) → { 0 , 1 } which assigns 1 to the terminals of all triples of D , and 0 otherwise. W e fix parameter α , roughly of order L 1 / 2 . W e use Lemma 3.6 to obtain a set F ⊆ E ( T ) which splits T in a balanced way w .r .t. χ . Fix any connected component C of T − F and look at the set V C of vertices defined as the union of bags of C minus all separators S f corresponding to adhesions of all f ∈ F . By Claim 7.9 , and Claim 7.10 , there are at most α · O ( log 8 L · ϵ − 8 ) triples which are not good with respect to some S f . Moreover , by the structure of our separators, at most O ( α ) terminals belong to some S f . Hence, the total number of terminal vertices in the union of bags of C which are either bad or in some S f is at most α · c · log 8 L · ϵ − 8 , where c is some universal constant. The number of all terminal vertices in such union is at least L / 2 α , due to Lemma 3.6 . Putting α such that 4 α 2 · c ≤ L log − 8 L · ϵ 8 , we get that every such component C contains a triple σ C good w .r .t. all separators S f . The links of such triples are pairwise-nonintersecting, hence restricting our instance to those only gives us a noncrossing instance of size α , which finishes the proof . □ 7.4 Bounding linked noncrossing double ladder In this section we develop the following bound. Lemma 7.3. F or a real ϵ > 0 , the maximum size of a ϵ -double ladder in a linked noncrossing instance is at most O ( ϵ − 4 ) . Let I = ( G , D ) be a linked non-crossing double ladder instance, where D = ( σ i | 1 ≤ i ≤ L ) and σ i = ( p i , b i , t i ) for i ∈ [ L ] . W e have the following initial observation. Claim 7.11. Let a , b , c , d ∈ [ L ] with a < b ≤ d and a ≤ c < d . Then, J p a t b K and J b c p d K do not intersect. 38 Proof: If these two paths intersect, then 2 ( 1 − ϵ ) R ≥ dist ( p a , t b ) + dist ( b c , p d ) ≥ dist ( p a , b c ) + dist ( p d , t b ) ≥ 2 R . This is a contradiction. □ 7.4.1 Equidistant instance (a) Rib Cage (b) T ype T (c) T ype B Figure 10: The dashed lines represent links. F or visual clarity , we assume that the links do not intersect any paths ( γ ′ a = Γ ( σ a ) ). (a) Each pair σ a forms a rib as the concatenation of a subpath of J p 1 t a K from p 1 to the endpoint of γ ′ a , the curve γ ′ a , and the subpath of J b a p L K from the second endpoint of γ ′ a to p L . Ribs may share a prefix or suffix, in this picture ribs γ L − 1 and γ L − 2 share a prefix, and γ 1 , γ 2 share a suffix. (b) σ a is a pair where T ype T holds, that is J b 1 p a K (thick pink line) intersects transversally every path J p 1 t b K for a < b < L (green dotted lines), in the decreasing order of indices b , and does not intersect transversally any path J p L b b K for 1 < b < a (blue dotted lines). (here we have only drawn 5 pairs other than σ 1 , σ L ). (c) Here σ a is instead a pair where T ype B holds, Meaning, J b 1 p a K (thick pink line) intersects transversally every path J p 1 t b K for a < b < L (green dotted lines) and does not intersect transversally any path J p L b b K for 1 < b < a (blue dotted lines). W e now filter D to get the following substructure. Definition 7.12. A double ladder D ′ = ( σ ′ i ) i ∈ [ L ′ ] where σ ′ i = ( p i ′ , b i ′ , t i ′ ) is called equidistant if for every 1 < i < L ′ we have the following: d dist ( p ′ 1 , t ′ i ) = d dist ( p ′ 1 , t ′ L ′ ) and d dist ( b ′ 1 , p ′ i ) = d dist ( b ′ 1 , p ′ L ′ ) . Note that for every I ⊆ [ L ] , the double ladder D restricted only to triplets σ i for i ∈ I is a double ladder again (with the same R ). W e call this the double ladder induced by I and denote by D [ I ] . Lemma 7.13. Let L ′ be the maximum size of a set I ⊆ [ L ] such that D [ I ] is equidistant. | D | = O ( L ′ ϵ − 2 ) . Proof: T ag each 1 < i ≤ | D | with the following tuple: ( d dist ( p 1 , t i ) , d dist ( b 1 , p i )) . There are O ( ϵ − 2 ) possible tags. Let I 1 ⊆ { 2 , 3 , . . . , L } be a nonempty subset of pairs with the same tag. Let r be the maximum element of I 1 . Observe now that I : = { 1 , r } ∪ I 1 induces an equidistant structure. The lemma follows. □ Lemma 7.13 allows us to restrict to the case when D is equidistant (and aim for an O ( ϵ − 2 ) bound). Hence, in what follows we assume that D is equidistant. 39 7.4.2 F orbidden intersections A special case of Claim 7.11 is the following: Claim 7.14. F or every 1 < a ≤ L and 1 ≤ b < L we have J p 1 t a K ∩ J b b p L K = ; . Claim 7.14 motivates the following definition. F or 1 < a < L , let γ ′ a be a minimal part of the link of Γ ( σ a ) that connects J p 1 t a K with J b a p L K , and let γ a be a concatenation of a subpath of J p 1 t a K from p 1 to the endpoint of γ ′ a , the curve γ ′ a , and the subpath of J b a p L K from the second endpoint of γ ′ a to p L . Then, two curves γ a and γ b for 1 < a < b < L can share only a prefix starting at p 1 or a suffix ending at p L , but otherwise are disjoint and form a “rib cage” structure; see Figure 10a . Before we proceed further with cleaning the rib cage, we infer from the fact that D is equidistant that some more pairs of paths are disjoint. Claim 7.15. F or every 1 < a ≤ b < L we have J p 1 t a K ∩ J p b t L K = ; and J b 1 p a K ∩ J b b p L K = ; Proof: W e prove the first claim; the proof of the second one is analogous. By contradiction, assume that J p 1 t a K and J p b t L K intersect. By Claim 5.13 , ( 1 − ϵ ) R + dist ( p 1 , t a ) ≥ dist ( p b , t L ) + dist ( p 1 , t a ) ≥ dist ( p b , t a ) + dist ( p 1 , t L ) ≥ R + dist ( p 1 , t L ) . However , from the definition of an equidistant structure, d dist ( p 1 , t a ) = d dist ( p 1 , t L ) , which implies | dist ( p 1 , t a ) − dist ( p 1 , t L ) | ≤ δ , a contradiction. □ 7.4.3 Ordering ribs R ecall that the double ladder D is assumed to be equidistant. R ecall also that all paths J p 1 t a K for 1 < a ≤ L form a shortest path tree rooted at p 1 , with all terminals t a having degree 1 in G , and hence this tree imposes a cyclic (say , clockwise) order on the indices { 2 , 3 , . . . , L } . An analogous statement holds for all paths J b 1 p a K for 1 < a ≤ L . The fact that the ribs γ a do not cross transversally and may only share a prefix or a suffix imply that these orders, restricted to { 2 , 3 , . . . , L − 1 } , are reversions of each other . The classic Erd ˝ os-Szekeres theorem allows us to find a large monotonous subsequence in this order . Theorem 7.16 (Erd ˝ os-Szekeres [ 29 ] ). F or r , s ∈ Z > 0 , any sequence of distinct real numbers with length at least ( r − 1 )( s − 1 ) + 1 contains either a monotonically increasing subsequence of length r or a monotonically decreasing subsequence of length s . W e say that a subset I ⊆ { 2 , . . . , L − 1 } of size | I | ≥ 3 is ordered if the indices of I appear either in increasing or in decreasing order in the clockwise order of paths J p 1 t a K around p 1 (equivalently , paths J b 1 p a K around b 1 ) and, furthermore, if i and j are the minimum and maximum elements of I , respectively , then the terminals t L and b 1 lie in the area enclosed by the concatenation of γ i and γ j that does not contain γ a for a ∈ I \ { i , j } . Claim 7.17. There exists an ordered set I ⊆ { 2, . . . , L − 1 } of size Ω ( p L ) . Proof: By the Erd ˝ os-Szekeres theorem, there exists a subset I 0 ⊆ { 2 , . . . , L − 1 } of size at least p L − 2 such that the indices of I 0 lie monotonously in the cyclic order of paths J p 1 T a K around p 1 and in the reversed cyclic order of paths J T 1 p a K around T 1 . This cyclic order is split into three parts by (1) the position of J p 1 T L K in the order around p 1 , (2) the position of J B 1 p L K in the order around p L , and (3) the place between the maximum and the minimum element of I 0 . By choosing the largest of these three parts we get the desired set I of size at least 1 3 p L − 2. □ Claim 7.17 allows us to focus on ordered sets. Somewhat abusing the notation, in what follows we will assume that the entire { 2, . . . , L − 1 } is ordered (and aim for an O ( ϵ − 1 ) bound on L ). 40 (a) T ype T Key Construction (b) T ype B K ey Construction Figure 11: Rearrangements which lead to a bounds on | I T | , | I B | similarly to the end of the comatching analysis. (a) i < j < k are three consecutive indices of I T . W e construct paths P j (thick pink lines) and Q j (thick green lines) in Claim 7.19 following the direction of the arrows in the picture from p j , p 1 to t j , b 1 respectively , then combining the traversed path segments. Clearly the picture will not be much different if consecutive intersections v a , b are equal. (b) Here i < j < k are three consecutive indices of I B instead. Symmetrically to the T ype T case, for Claim 7.21 we construct paths P j (pink) and Q j (green) following the direction of the arrows in the picture from p j , b 1 to b j , p L respectively , and concatenating each visited path segment. 7.4.4 Constructing the final contradiction The final contradiction will be obtained by looking at how the paths J b 1 p a K for 1 < a < L behave. Fix 1 < a < L . Observe the following. • F or every 1 < b ≤ a , J b 1 p a K does not intersect J p 1 t b K due to Claim 7.11 . • F or every a ≤ b < L , J b 1 p a K does not intersect J p L b b K due to Claim 7.15 . Because the instance is ordered, for every b 1 , b 2 with 1 < b 1 < a < b 2 < L , the concatenation of γ b 1 and γ b 2 is a closed loop that separates b 1 from p a . Hence, J b 1 p a K intersects either J p L b b 1 K or J p 1 t b 2 K . Furthermore, because of the ordering, one of the following options hold: T ype T : J b 1 p a K intersects transversally every path J p 1 t b K for a < b < L , in the decreasing order of indices b if one goes from b 1 to p a , and does not intersect transversally any path J p L b b K for 1 < b < a . T ype B: J b 1 p a K intersects transversally every path J p L b b K for 1 < b < a , in the increasing order of indices b if one goes from b 1 to p a , and does not intersect transversally any path J p 1 t b K for a < b < L . Let I T and I B be the set of indices of { 2 , . . . , L − 1 } for which option T or B holds, respectively . W e now separately analyze I T and I B ; the analyses are similar , but not exactly the same. Analysis of T ype T . F or two indices a , b ∈ I T , a < b , let v a , b be any vertex of the intersection of J b 1 p a K and J p 1 t b K . W e have already established that for fixed a ∈ I T , the vertices v a , b for b ∈ I T , b > a , lie on J b 1 p a K in the decreasing order , if one goes from b 1 to p a (two consecutive vertices v a , b may be equal). W e observe that the same holds along J p 1 t b K . 41 Claim 7.18. F or every b ∈ I T , the vertices v a , b for a ∈ I T , a < b , are ordered in the increasing order on J p 1 t b K if one traverses this path from p 1 to t b (two consecutive vertices v a , b may be equal). Proof: Assume the contrary: for some a 1 < a 2 < b , a 1 , a 2 ∈ I T , the vertex v a 1 , b is closer to t b on J p 1 t b K than v a 2 , b . Then, the path J b 1 p a 1 K crosses at v a 1 , b the closed loop γ without self-intersections consisting of the concatenation of (i) part of γ b from p L to v a 2 , b , (ii) subpath of J b 1 p a 2 K from v a 2 , b to p a 2 , (iii) Γ ( σ a 2 ) from p a 2 to b a 2 ; (iv) J b a 2 p L K . Because of the ordering, γ separates vertices p a for L > a > a 2 from vertices p a for 1 < a < a 2 , and a 1 is on the other side. This is a contradiction. □ This allows us to obtain a bound on | I T | similarly as in the end of the comatching analysis. (See also Figure 11a .) Claim 7.19. | I T | = O ( ϵ − 1 ) . Proof: Let i < j < k be three consecutive indices of I T . W e construct a path P j connecting p j and t j as follows: start in p j , continue along J p j b 1 K to v j , k then along J p 1 t k K in the direction of p 1 to v i , k , then along J b 1 p i K in the direction of p i to v i , j , and finally along J p 1 t j K to t j . W e construct a path Q j connecting p 1 and b 1 as follows: start in b 1 , continue along J b 1 p i K to v i , k , and then along J p 1 t k K to p 1 . There are | I T | − 2 paths P j and | I T | − 2 paths Q j , and each path P j or Q j is of length at least R . In the rearrangement we only used edges of paths J p 1 t i K and J b 1 p i K for i ∈ I T and we do not use the same edge twice. Each of these paths is of length at most ( 1 − ϵ ) R . Hence, 2 | I T | · ( 1 − ϵ ) R ≥ ( 2 | I T | − 4 ) · R . This implies | I T | ≤ 2 ϵ − 1 , as desired. □ Analysis of T ype B. F or two indices a , b ∈ I B , b < a , let v a , b be any vertex of the intersection of J b 1 p a K and J p L b b K . W e have already established that for fixed a ∈ I B , the vertices v a , b for b ∈ I B , b < a , lie on J b 1 p a K in the increasing order , if one goes from b 1 to p a (two consecutive vertices v a , b may be equal). W e observe that the same holds along J p L b b K . Claim 7.20. F or every b ∈ I B , the vertices v a , b for a ∈ I B , a > b , are ordered in the decreasing order on J p L b b K if one traverses this path from p L to b b (two consecutive vertices v a , b may be equal). Proof: Assume the contrary: for some b < a 1 < a 2 , a 1 , a 2 ∈ I B , the vertex v a 1 , b is closer to p L on J p L b b K than v a 2 , b . Then, the path J b 1 p a 2 K crosses at v a 2 , b the closed loop γ without self-intersections consisting of the concatenation of (i) part of γ b from p 1 to v a 1 , b , (ii) subpath of J b 1 p a 1 K from v a 1 , b to p a 1 , (iii) Γ ( σ a 1 ) from p a 1 to t a 1 ; (iv) J p 1 t a 1 K . Because of the ordering, γ separates vertices p a for L > a > a 1 from vertices p a for 1 < a < a 1 , and a 2 is on the other side. This is a contradiction. □ This allows us to obtain a bound on | I B | similarly as in the end of the comatching analysis. (See also Figure 11b .) Claim 7.21. | I B | = O ( ϵ − 1 ) . Proof: Let i < j < k be three consecutive indices of I B . W e construct a path P j connecting p j and b j as follows: start in p j , continue along J p j b 1 K to v i , j then along J p L b i K in the direction of p L to v i , k , then along J b 1 p k K in the direction of p k to v j , k , and finally along J p L b j K to b j . W e construct a path Q j connecting b 1 and p L as follows: start in b 1 , continue along J b 1 p i K to v i , k , and then along J p L b k K to p L . There are | I B | − 2 paths P j and | I B | − 2 paths Q j . Each path P j is of length at least R , while each path Q j is of length at least dist ( b 1 , p L ) . Furthermore, as the instance is equidistant, we have | dist ( b 1 , p L ) − dist ( b 1 , p j ) | ≤ δ for every j ∈ I B . 42 In the rearrangement we only used edges of paths J p L b i K and J b 1 p i K for i ∈ I B and we do not use the same edge twice. Hence, X i ∈ I B dist ( b 1 , p i ) + dist ( p L , b i ) ≥ ( | I B | − 2 ) R + ( | I B | − 2 ) dist ( b 1 , p L ) . Each of the distances in the left hand side above is at most ( 1 − ϵ ) R , and the length of the paths J b 1 p i K do not differ from dist ( b 1 , p L ) by more than δ . Hence, ( | I B | + 2 )( 1 − ϵ ) R + ( | I B | − 2 ) δ ≥ ( | I B | − 2 ) R . This implies | I B | = O ( ϵ − 1 ) , as desired. □ This concludes the proof of Lemma 7.3 . 8 P olygon with holes Here we show a polynomial coreset bound for furthest neighbors of points in a polygon with holes. This follows from Lemma 8.1 below and Theorem 1.2 . Lemma 8.1. Let f ( ϵ ) be the maximum size of ϵ -coresets for furthest neighbors in planar metrics for any ϵ ∈ ( 0 , 1 ) . Then we can construct an ϵ -coreset of size f ( ϵ / 8 ) for furthest neighbors of any point set in a polygon with holes. Proof: Let P be a polygon with holes on the plane, and P be a set of points in P . Let dist P be the geodesic distance function between points in P . Let ∆ be the diameter of P . Let P + be the set of points that are within distance ∆ /ϵ from P . Observe that for any point q ∈ V \ P + , any point p ∈ P is an ( 1 − ϵ ) -approximate furthest neighbor of q . Thus, as long as the coreset is non-empty , points in V \ P + are taken care of . Herein, we focus on points in P + . Let Q be an ( ϵ ∆ / 8 ) -net of P + . That is, every point x ∈ P + has a point y ∈ Q such that dist P ( x , y ) ≤ ϵ ∆ / 8 and every two points x , y ∈ Q has dist P ( x , y ) > ϵ ∆ / 8. W e say that a subset C ⊆ P is a furthest ( ϵ / 8 ) -coreset for P restricted to Q if for every q ∈ Q , there exists a point p ∈ C such that: dist P ( p , q ) ≥ ( 1 − ϵ ) dist P ( p ∗ , q ) where p ∗ is the furthest neighbor of q in p . That is, C only preserves the furthest neighbors of points in Q . The following claim shows that it suffices to restrict to Q ; the proof will be delayed until later . Claim 8.2. Let C be a furthest neighbor ( ϵ / 8 ) -coreset of P restricted to Q . Then C is a furthest neighbor ϵ -coreset for P restricted to P + . Let G = ( V , E , w ) be an edge-weighted planar graph such that (i) the vertex set satisfies Q ∪ P ⊆ V ⊆ P , (ii) dist G ( x , y ) = dist P ( x , y ) for all x , y ∈ P ∪ Q , and (iii) for every edge E = ( u , v ) , w ( u , v ) = dist P ( u , v ) . Such a graph G exists [ 5 ] . (The basic idea to construct G is to take the geodesics connecting all pairs of points in Q , and place a vertex at the intersection of any two geodesics; the graph is planar by the planarity of the polygon.) Next we construct a furthest neighbor ( ϵ / 8 ) -coreset C ⊆ P of size f ( ϵ / 8 ) for the shortest path metrics of G . Since G preserves pairwise distances between points in P ∪ Q , C is an ϵ -coreset for P restricted to Q . Thus, by Claim 8.2 , C is a furthest neighbor ϵ -coreset for P restricted to P + and hence the whole domain P . □ Now we show Claim 8.2 , which is simply an application of the triangle inequality . 43 Proof (Proof of Claim 8.2 ): Let x be a point in P + and y be a point in Q such that dist P ( x , y ) ≤ ϵ ∆ / 8; y exists by the definition of Q . Let x ∗ and y ∗ be the furthest neighbors of x and y in P . Since the diameter of P is at most ∆ , by triangle inequality: dist P ( x , x ∗ ) , dist P ( y , y ∗ ) ≥ ∆ / 2 Since C is an ( ϵ / 8 ) -coreset restricted to Q , there exists a point ˆ y ∈ C such that: dist P ( y , ˆ y ) ≥ ( 1 − ϵ / 8 ) dist P ( y , y ∗ ) Our goal is to show that ˆ y is a ( 1 − ϵ ) -approximate furthest neighbor of x , as follows: dist P ( x , ˆ y ) ≥ dist P ( y , ˆ y ) − dist P ( x , y ) (triangle inequality) ≥ ( 1 − ϵ / 8 ) dist P ( y , y ∗ ) − dist P ( x , y ) (by definition of ˆ y ) ≥ ( 1 − ϵ / 8 ) dist P ( y , x ∗ ) − dist P ( x , y ) (since y ∗ is furthest neighbor of y ) ≥ ( 1 − ϵ / 8 )( dist P ( x , x ∗ ) − dist P ( x , y )) − dist P ( x , y ) (triangle inequality) ≥ ( 1 − ϵ / 8 ) dist P ( x , x ∗ ) − 2 dist P ( x , y ) ≥ ( 1 − ϵ / 8 ) dist P ( x , x ∗ ) − ϵ ∆ / 4 (since dist P ( x , y ) ≤ ϵ ∆ / 8) ≥ ( 1 − ϵ / 8 ) dist P ( x , x ∗ ) − ( ϵ / 2 ) dist P ( x , x ∗ ) (since dist P ( x , x ∗ ) ≥ ∆ / 2) ≥ ( 1 − ϵ ) dist P ( x , x ∗ ) , (3) as desired. □ 9 Bounded genus graphs The upper bounds for metrics induced by graphs embeddable in surfaces of bounded Euler genus will follow from a reduction to planar metrics via the use of cut-graphs . W e will reuse below some of the formalism defined for a similar argument in [ 38 ] . F or a surface Σ , a graph H embedded in Σ is its simple cut-graph if it has a single face homeomor- phic to an open disc. In particular , the surface Σ q H obtained from Σ by cutting along the embedding of the edges of H is a disk. Let G be a graph embedded in Σ and let H be its subgraph that is a simple cut-graph of Σ . W e define G q H as the graph embedded in Σ q H obtained from G as follows. First, let σ be the (unique) facial walk of H . Each edge e of H is contained exactly twice in σ and each vertex v of H is contained in σ as many times as the degree of v in H . T o obtain G q H , we replace H with a simple cycle C σ whose vertex set is the set of copies of vertices of H and whose edge set is the set of copies of edges of H defined the obvious way . Notice that σ also prescribes for every edge u v of G between a vertex u ∈ V ( G ) \ V ( H ) and a vertex v ∈ V ( H ) , to which copy of v in G q H the vertex u should be adjacent to in G q H . The key component of our reduction is the following well-known result; see, e.g. [ 8 , 13 , 30 ] . Lemma 9.1. F or every integer k ≥ 1 and for every edge-weighted connected graph G embedded on a surface Σ of Euler genus at most g and every vertex u ∈ V ( G ) , there is a subgraph H of G with the following properties: • H is a simple cut-graph of Σ , and • V ( H ) is the union of the vertex sets of O ( g ) shortest paths in G that have u as a common endpoint. In particular , if G has diameter ∆ , then the set of copies of the vertices of H in G q H can be covered with O ( g ) paths of length at most ∆ in G q H . 44 The upper bound proofs for ϵ -comatchings and ϵ -double ladders follow a very similar structure; hence, we will define the following notion of an ϵ -double semi-ladder to capture both structures. Definition 9.2 ( ϵ -double semi-ladder). Let D = { ( p 1 , b 1 , t 1 ) , ( p 2 , b 2 , t 2 ) , . . . , ( p ℓ , b ℓ , t ℓ ) } ⊆ V 3 be a sequence of ℓ ordered triplets of points in a metric ( V , dist ) , and ϵ ∈ ( 0 , 1 ) be a parameter . W e say that D is an ϵ -double semi-ladder if there exists R > 0 such that: 1. for every 1 ≤ i < j ≤ ℓ , dist ( p i , t j ) ≤ ( 1 − ϵ ) R and dist ( p j , b i ) ≤ ( 1 − ϵ ) R . 2. for every 1 ≤ i ≤ ℓ , dist ( p i , t i ) > R and dist ( p i , b i ) > R ; An ϵ -double semi-ladder instance is a pair ( G , D ) where G is a graph and D is an ϵ -double semi-ladder in the graph metric induced by G . Note that this notion generalizes both ϵ -comatchings and ϵ -double ladders: the former can be obtained by putting b i = t i = q i and the latter is a special case where we also require the distances dist ( p j , t i ) , dist ( p i , b j ) for 1 ≤ i < j ≤ ℓ to be large. The reduction itself is realized by the following lemma. Lemma 9.3. Fix any integer g ≥ 0 and ϵ ∈ ( 0 , 1 ) . Let ( G , D = { ( p i , b i , t i ) } i ∈ [ L ] ) be an ϵ -double semi-ladder instance such that G is embeddable in a surface of Euler genus at most g . Then, there exists a set of indices j 1 , . . . , j L ′ ∈ [ L ] , a planar graph G ′ and a map η : V ( G ) → V ( G ′ ) such that: • dist G ′ ( η ( p j x ) , η ( t j y )) ≥ dist G ( p j x , t j y ) and dist G ′ ( η ( p j x ) , η ( b j y )) ≥ dist G ( p j x , b j y ) for x , y ∈ [ L ′ ] , • dist G ′ ( η ( p j x ) , η ( t j y )) = dist G ( p j x , t j y ) for 1 ≤ x < y ≤ L ′ , • dist G ′ ( η ( p j y ) , η ( b j x )) = dist G ( p j y , b j x ) for 1 ≤ x < y ≤ L ′ , • L = O ( g 4 ϵ − 8 ) · L ′ . Proof: Let R : = min i ∈ [ L ] min ( dist ( p i , b i ) , dist ( p i , t i )) and set δ : = ϵ R / 100. W .l.o.g. we can assume that every edge of G lies on either a path J p i t j K or J p j , b i K for some 1 ≤ i < j ≤ L , and so by the same argument as in Claim 7.4 , that the diameter of G is at most 8 R . Let u ∈ V ( G ) be an arbitrary vertex of V ( G ) . Let H be a subgraph of G obtained by applying Lemma 9.1 to G with an endpoint u . F or v ∈ V ( G ) , let µ ( v ) denote all vertices of G q H into which v is split after performing the cut. In particular , µ ( v ) = { v } if v ∈ V ( H ) . F or any u , v ∈ V ( G ) and u ′ ∈ µ ( u ) , v ′ ∈ µ ( v ) , we have dist G q H ( u ′ , v ′ ) ≥ dist G ( u , v ) , that is, the cutting procedure can only increase the distances between the vertices. Moreover , if dist G q H ( u ′ , v ′ ) > dist G ( u , v ) , then the shortest path from u to v in G must cross V ( H ) . From each µ ( v ) we select one vertex arbitrarily and call it η ( v ) . Let D ′ be a projection of D onto G q H , that is, D ′ = { ( η ( p i ) , η ( b i ) , η ( t i )) : i ∈ [ L ] } . Note that all pairs ( η ( p i ) , η ( b i )) and ( η ( p i ) , η ( t i )) are still at distance at least R , however , some pairs ( η ( p i ) , η ( t j )) or ( η ( p j ) , η ( b i )) close in D possibly also ended up far apart after cutting. Let X = S v ∈ V ( H ) µ ( v ) . Since V ( H ) was contained in a union of O ( g ) shortest paths in G , which are of length at most 8 R , the same holds for X in G q H . In particular , there is a set Z of size O ( g ϵ − 1 ) such that every x ∈ X is at distance at most δ in G q H from some z ∈ Z . Group triples ( p , b , t ) ∈ D ′ by the rounded distance profile of p to Z in G q H . Since G q H is planar , by Lemma 7.5 we get that the 45 number of such groups is of O ( g 4 ϵ − 8 ) . In particular , there is a subset D 0 ⊆ D such that vertices p i over all ( p i , b i , t i ) ∈ D 0 share the rounded distance profile to X , and such that L = O ( | D 0 | · g 4 ϵ − 8 ) . Let j 1 , . . . , j L ′ be the indices of triples ( η ( p j i ) , η ( b j i ) , η ( t j i )) in D 0 . W e want to argue, that indices ( j i ) i ∈ [ L ′ ] , graph G q H and the map η satisfy the lemma statement. The condition dist G q H ( η ( v ) , η ( u )) ≥ dist G ( v , u ) follows immediately for all v , u ∈ V ( G ) and L = O ( g 4 ϵ − 8 L ′ ) follows from the way we chose D 0 . Assume by contradiction that we have two indices j x < j y such that dist G q H ( η ( p j x ) , η ( t j y )) or dist G q H ( η ( p j y ) , η ( b j x )) is larger than ( 1 − ϵ ) R . W .l.o.g. assume the former . W e have dist G ( p j x , t j y ) ≤ ( 1 − ϵ ) R , hence the path J p j x t j y K crosses V ( H ) . Let u be the first vertex of V ( H ) on a path from p j x to t j y . In particular , there is u ∗ ∈ µ ( u ) ⊆ X such that dist G ( p j x , u ) = dist G q H ( η ( p j x ) , u ∗ ) . Let z ∈ Z be the vertex at distance at most δ in G q H from u ∗ . W e have dist G ( p j y , u ) ≤ dist G q H ( η ( p j y ) , u ∗ ) ≤ dist G q H ( η ( p j y ) , z ) + δ ≤ ≤ dist G q H ( p j x , z ) + 2 δ ≤ dist G q H ( p j x , u ∗ ) + 3 δ = dist G ( p j x , u ) + 3 δ , where all inequalities follow from the triangle inequality plus the fact that η ( p j x ) , η ( p j y ) share the rounded distance to z . Thus, dist G ( p j y , t j y ) ≤ dist G ( p j y , u )+ dist G ( p j x , t j y ) − dist G ( p j x , u ) ≤ dist G ( p j x , u )+ 3 δ +( 1 − ϵ ) R − dist G ( p j x , u ) < R , which contradicts that D is an ϵ -double ladder in G . Therefore, our choice of j i and ν satisfies the lemma statement, which finishes the proof . □ Proof (Proof of Theorem 1.6 ): Let { ( p i , q i ) } i ∈ [ L ] be an ϵ -comatching in G of Euler genus at most g . Let R = min i ∈ [ L ] dist ( p i , q i ) . The set { ( p i , q i , q i ) } i ∈ [ L ] is an ϵ -double semi-ladder in G . T ake a planar graph G ′ , indices j 1 , . . . , j L ′ ∈ [ L ] and map η : V ( G ) → V ( G ′ ) given by Lemma 9.3 applied to ( G , { ( p i , q i , q i ) } i ∈ [ L ] ) . W e have: • dist G ′ ( η ( p j x ) , η ( q j x )) ≥ dist G ( p x , q x ) > R for x ∈ [ L ′ ] , and • dist G ′ ( η ( p j x ) , η ( q j y )) = dist G ( p x , q y ) ≤ ( 1 − ϵ ) R for x , y ∈ [ L ′ ] , x = y , hence { ( η ( p j i ) , η ( q j i )) } i ∈ [ L ′ ] is an ϵ -comatching in G ′ and by Theorem 1.5 is of size at most L planar ( ϵ − 1 ) . Thus, L ≤ O ( g 4 ϵ − 8 ) · L planar ( ϵ − 1 ) which finishes the proof . □ Proof (Proof of Theorem 1.18 ): Let D = { ( p i , b i , t i ) } i ∈ [ L ] be an ϵ -double ladder in G of Euler genus at most g . Let R = min i ∈ [ L ] min ( dist ( p i , b i ) , dist ( p i , t i )) . T ake a planar graph G ′ , indices j 1 , . . . , j L ′ ∈ [ L ] and map η : V ( G ) → V ( G ′ ) given by Lemma 9.3 applied to ( G , D ) . W e have: • dist G ′ ( η ( p j x ) , η ( t j y )) = dist G ( p j x , t j y ) ≤ ( 1 − ϵ ) R for 1 ≤ x < y ≤ L ′ , • dist G ′ ( η ( p j y ) , η ( b j x )) = dist G ( p j y , b j x ) ≤ ( 1 − ϵ ) R for 1 ≤ x < y ≤ L ′ , • dist G ′ ( η ( p j y ) , η ( t j x )) ≥ dist G ( p j y , t j x ) > R for 1 ≤ x ≤ y ≤ L ′ , • dist G ′ ( η ( p j x ) , η ( b j y )) ≥ dist G ( p j x , b j y ) > R for 1 ≤ x ≤ y ≤ L ′ , hence { ( η ( p j i ) , η ( b j i ) , η ( t j i )) } i ∈ [ L ′ ] is an ϵ -double ladder in G ′ , hence by Theorem 1.17 is of size at most L ′ planar ( ϵ − 1 ) . Thus, L ≤ O ( g 4 ϵ − 8 ) · L ′ planar ( ϵ − 1 ) which finishes the proof . □ 10 L ower bounds 10.1 Beyond bounded genus graphs: Proof of Theorem 1.7 Let us first restate Theorem 1.7 : 46 Theorem 1.7 (Lower bound construction for furthest neighbor and comatchings). F or every in- teger k ≥ 3 there exists a graph G k with the following properties: 1. G k contains a ( 2 k − 1 ) -comatching of size 2 k . 2. G k admits a tree decomposition, where every bag is of size at most 6 and every adhesion is of size at most 2 (hence, in particular , it is of constant treewidth); 3. G k is K 3,4 -minor-free; 4. G k is K 5 -minor-free; 5. the Euler genus of G k is between 2 k − 3 and 2 k . Proof: F or a nonnegative integer k , let us define an undirected integer-weighted graph G k in the following way . First, let us create two complete binary trees T 1 and T 2 with roots r 1 and r 2 , both of height of k edges and let I : V ( T 1 ) → V ( T 2 ) be an arbitrary isomorphisms between them. Let S : V ( T 1 ) → V ( T 1 ) ∪ {⊥} be a function that for a vertex v of T 1 returns its unique sibling (with the exception of the root r 1 , for which S ( r 1 ) = ⊥ ). Then, in addition to the edges of the binary trees, add all edges of the form ( v , I ( B ( v ))) for v = r (which we will call matching edges ). Moreover , all edges of T 1 and T 2 have unit weight and each edge ( v , I ( B ( v ))) has a weight 2 dist ( r 1 , v ) − 1. R efer to Figure 12 for an illustrative example of G 3 . W e will show that G k satisfies all of the required properties. 1. Let M be the set of all pairs ( l , I ( l )) , where l is a leaf of the upper tree T 1 . As T 1 has 2 k leaves, this set is of size 2 k . Claim 10.1. M is a ( 2 k − 1 ) -comatching. This claim will subsequently prove Item 1 . Proof: Let us consider a pair of leaves ( l , m ) , where l ∈ V ( T 1 ) and m ∈ V ( T 2 ) . W e aim to prove that dist ( l , m ) ≤ 2 k − 1 ⇔ I ( l ) = m . An observant reader may inspect the distances from the leftmost leaf of the upper tree on Figure 12 and notice that their patterns easily generalize to higher values of k , but we will opt for a more detailed proof anyway . Let p : V ( G k ) → V ( G k ) ∪ {⊥} be a function that for a vertex returns its parent in the tree it belongs to (except for roots r 1 and r 2 , where p ( r 1 ) = p ( r 2 ) = ⊥ ). Let us consider sequences P l = ( l , p ( l ) , p 2 ( l ) , . . . , p k ( l )) and P m = ( m , p ( m ) , p 2 ( m ) , . . . , p k ( m )) . As we have that p k ( l ) = r 1 , p k ( m ) = r 2 and I ( r 1 ) = r 2 , there exists a smallest index c such that I ( p c ( l )) = p c ( m ) . If m = I ( l ) , then c > 0 and I ( p c − 1 ( l )) is a sibling of p c − 1 ( m ) , hence there is a matching edge between p c − 1 ( l ) and p c − 1 ( m ) . That edge has length 2 ( k − ( c − 1 )) − 1, hence the path l , p ( l ) , . . . , p c − 1 ( l ) , p c − 1 ( m ) , p c − 2 ( m ) , . . . , p ( m ) , m has length 2 k − 1 showing that m = I ( l ) ⇒ dist ( l , m ) ≤ 2 k − 1. Let us now consider any path from l to I ( l ) . It has to contain a matching edge — let it be ( x , I ( B ( x ))) . W e have that the weight of ( x , I ( B ( x ))) is 2 dist ( x , r 1 ) − 1, that dist ( l , x ) + dist ( x , r 1 ) ≥ dist ( l , r 1 ) = k , that dist ( I ( l ) , I ( B ( x ))) + dist ( I ( B ( x )) , r 2 ) ≥ dist ( I ( l ) , r 2 ) = k , and that dist ( x , r 1 ) = dist ( I ( B ( x )) , r 2 ) . Hence, the length of the considered path is at least dist ( l , x ) + 2 dist ( x , r 1 ) − 1 + dist ( I ( B ( x )) , I ( l )) ≥ ( k − dist ( x , r 1 )) + 2 dist ( x , r 1 ) − 1 + ( k − dist ( I ( B ( x )) , r 2 ) = 2 k − 1. However , for the equality to hold, all of the considered inequalities would need to become equalities. Consequently , it would imply that x is an ancestor of l and that I ( B ( x )) is an ancestor of I ( l ) . But if x is an ancestor of l , then B ( x ) is not an ancestor of l and I ( B ( x )) is not an ancestor of I ( l ) , which gives a contradiction proving that dist ( l , I ( l )) > 2 k − 1, concluding that M is indeed a ( 2 k − 1 ) -comatching. □ 47 2. Let us now focus on providing a tree decomposition of G k that will prove Item 2 and aid in proving Item 3 and Item 4 . Let T denote the induced subgraph of T 1 on all of its non-leaves. W e set our tree decomposition to be T = ( T , B ) , where B is a bag function such that B ( v ) is a bag containing six vertices v , s 1 , s 2 , I ( v ) , I ( s 1 ) , I ( s 2 ) , where s 1 and s 2 are the children of v in T 1 . It is easy to verify that this in fact really is a tree decomposition of G k . It also clearly satisfies that its bags are of size 6 and that its adhesions are of size 2, proving Item 2 . 3. F or the proof of Item 3 , let us assume by a contradiction that K 3,4 is a minor of G k . In other words, there exist disjoint subsets L 1 , L 2 , L 3 , R 1 , R 2 , R 3 and R 4 of V ( G k ) such that each of them induces a connected subgraph of G k and for each pair ( L i , R j ) there exists an edge connecting a vertex of L i with a vertex of R j . Let T L 1 , . . . , T R 4 be subgraphs of T , where T X is a subgraph of T induced on vertices v such that B ( v ) ∩ X = ; . As L 1 , . . . , R 4 induce connected subgraphs of G k , consequently we have that T L 1 , . . . , T R 4 are connected as well. By a known property , if it had been the case that all pairs of them intersected, there would have to be a single bag that intersects all of them. However , that cannot be the case as that bag would have to have size at least seven, while all bags in T have size six. Hence, there is a pair ( X , Y ) of subsets L 1 , . . . , R 4 , such that T X and T Y do not intersect. This pair cannot be of the form ( L i , R j ) , because then there would be no edge connecting L i and R j contradicting our assumptions. Let us firstly assume that this is a pair of the form ( L i , L j ) . There exists a unique shortest path P in T that connects T L i and T L j and it has at least one edge. All of T R 1 , . . . , T R 4 have to intersect both T L i and T L j and consequently they all have to contain P . However , this implies that adhesions along P are all of size at least four , which is a contradiction with the fact that adhesions in T are of size at most two. The case, where the not connected pair is of the form ( R i , R j ) is analogous, with the difference that in the final argument we get adhesions of size at least three, instead of four , which is still a contradiction. That concludes the proof of Item 3 . 4. By a contradiction with Item 4 , let us assume that K 5 is a minor of G k , that is, there exist five disjoint subsets V 1 , V 2 , V 3 , V 4 and V 5 (called branch sets ) of V ( G k ) such that each of them induces a connected subgraph of G k and for each pair of them, there exists an edge connecting this pair of subsets. Through a folklore argument, there has to be a bag of T that contains at least one vertex for each of the five branch sets let ˆ B be such a bag. As ˆ B induces a C 6 there are at most 6 pairs of branch sets that can be connected by an edge within ˆ B . Let ( V i , V j ) be a pair that is not connected by an edge within ˆ B . There have to be at least | E ( K 5 ) | − | E ( G k [ ˆ B ]) | = 10 − 6 = 4 pairs like this. If they are not connected by an edge within ˆ B , there exists another bag containing vertices from both of them, which implies that there exists an adhesion of ˆ B with one of its neighboring bags that contains vertices from both V i and V j . However , each adhesion is of size two and the degrees of all vertices in T are at most three, hence there are at most three pairs like that, showing a contradiction with the fact that there needed to be at least four pairs like this. That concludes the proof of Item 4 . 5. F or the proof of Item 5 let us note that G 3 contains a topological minor of K 3,3 , as shown on the Figure 13 , showing that its Euler genus is at least 1. As G k for k ≥ 3 contains 2 k − 3 disjoint copies of G 3 (ignoring weights) and each of them has Euler genus at least 1, it follows that the Euler genus of G k is at least 2 k − 3 . On the other hand, if for each v ∈ V ( T 1 ) \ { r 1 } we add a cross-cap to an embedding as in Figure 12 to accommodate an intersection of the edges ( v , I ( B ( v ))) and ( B ( v ) , I ( v )) , we obtain an embedding of G k into a surface of Euler genus equal to the number of such pairs, which is 2 k − 1. Hence, the Euler genus of G k is at most 2 k − 1, proving our claim. 48 3 2 4 1 3 5 5 0 2 4 4 6 6 6 6 4 5 3 6 4 4 4 7 5 5 5 5 5 5 5 1 1 3 3 3 3 5 5 5 5 5 5 5 5 Figure 12: A drawing of G 3 . The isomorphism I corresponds to mirroring the upper tree with respect to a horizontal line. Matching edges are drawn in red and their weights are displayed. T o each vertex we associate its distance from the leftmost leaf of the upper tree. 10.2 Large comatchings in trees: Proof of Theorem 1.12 W e restate Theorem 1.12 : Theorem 1.12. F or every integer k ≥ 1 there exists a tree G k with a ( k , k ) -comatching of size 2 k . Proof: Let k ≥ 1 be an integer . The graph G k is constructed as follows. First, start with a full binary tree T k of depth k . Let r be the root of T k . Then, for every vertex v = r of T k , if h is the distance from v to r in T k , then we attach to v a path P v of length h to v and denote by ˆ v the other endpoint of P v . This completes the description of the graph G k . Let L be the set of leaves of T k . F or every v ∈ L , let Q v be the path from v to r in T k . Let Y v = N T k ( V ( Q v )) , that is, the set of neighbors in T k of the vertices on Q v . (In other words, to construct Y v , we go from v towards r and insert into Y v the sibling of every visited vertex. Finally , let X v = { ˆ u | u ∈ Y v } . W e claim that ( v , X v ) v ∈ L satisfies the desired properties. Clearly , | L | = 2 k . The analysis of the distances between the vertices of L and the vertices ˆ u is encapsulated in the following lemma. Lemma 10.2. Let v ∈ L and u ∈ V ( T k ) . Then, dist ( v , ˆ u ) = k + 2 dist ( u , V ( Q v )) . Proof: Let h = dist ( u , r ) . Clearly , u lies on the unique path in G k from v to ˆ u . Let w be the lowest common ancestor of u and v in T k ; note that w is also the closest to u vertex of Q v and dist ( w , r ) = h − dist ( u , w ) . Hence, dist ( v , ˆ u ) = dist ( v , w ) + dist ( w , u ) + dist ( u , ˆ u ) = ( k − h + dist ( u , w )) + dist ( u , w ) + h = k + 2 dist ( u , V ( Q v )) . This finishes the proof . □ Lemma 10.2 implies that for every v ∈ L and ˆ u ∈ X v we have dist ( v , ˆ u ) = k + 2 as u is within distance exactly 1 from V ( Q v ) by definition. 49 Figure 13: A drawing of G 3 with a topological minor model of K 3,3 highlighted. 1 2 3 4 Figure 14: P art of the graph G k of Theorem 1.12 for k = 4: the tree T k and selected paths P u . Blue circle denotes one v ∈ L , blue squares denote the elements ˆ u of its corresponding X v and black squares denote the corresponding vertices u . Furthermore, consider two distinct v 1 , v 2 ∈ L . Let w be the lowest common ancestor of v 1 and v 2 in T k and let u 1 (resp. u 2 ) be the child of w that is an ancestor of v 1 (resp. v 2 ). Then, u 1 ∈ V ( Q v 1 ) and ˆ u 1 ∈ X v 2 . This implies that dist ( v 1 , X v 2 ) ≤ dist ( v 1 , ˆ u 1 ) = k by Lemma 10.2 . Theorem 1.12 follows. 10.3 Even larger comatchings in planar graphs: Proof of Theorem 1.13 Firstly , we restate Theorem 1.13 : Theorem 1.13. F or every integers k , d ≥ 1 there exists a planar graph G k , d with a ( k , d ) -comatching of size at least 2 d k + 2 k if k ≤ d ; 3 k d + 1 d if d ≤ k . (Note that both bounds give 4 k for k = d .) Proof: Let k , d ≥ 1 be integers. Let h ≤ min ( k , d ) and let k = k 1 + k 2 + . . . + k h , d = d 1 + d 2 + . . . d h such that each k i and d i is a positive integer . F or these integers, we construct a graph G as follows. 50 The cycle gadget. Let i ∈ [ h ] and consider a cycle C i of length 1 + k i ( 2 d i + 1 ) . F or every vertex v ∈ V ( C i ) , let X i v be constructed as follows: split the path C i \ { v } into k i paths of length 2 d i + 1 each and insert into X v the middle vertex of each of the path. Clearly , | X i v | = k i and dist C i ( v , X i v ) = d i + 1 ∀ v ∈ V ( C i ) , dist C i ( v , X i u ) ≤ d i ∀ u , v ∈ V ( C i ) , u = v . (4) The local gadget. Let i ∈ [ h ] . A local gadget H i consists of: • a cycle C i ; • a root vertex r connected to every vertex of the cycle C i with a path of length d i ; • for every v ∈ C i , a pendant vertex ˆ v , connected to v with a path of length P i − 1 j = 1 d j (note that for i = 1 we have just ˆ v = v ). Note that the connections to the root r do not distort the distances between vertices v ∈ V ( C i ) in cycle gadgets and sets X u , so ( 4 ) still holds in a local gadget. Arranging in a tree-like fashion. W e now arrange local gadgets in a tree-like fashion. A subtree of level h is just a local gadget H h and the root of the subtree is the root of H h . F or 1 ≤ i < h , a subtree of level i consists of a local gadget H i plus, for every v on the cycle C i in H i , a copy of the subtree of level i + 1 with its root identified with v . The root of the subtree of level i is the root of the local gadget H i used in its construction. A subtree of level 1 is the final graph G . Note that G is planar , as the blocks of G are local gadgets H i that are trivially planar . Comatching definition. Let L be the union of all vertices on cycles C h in all level- h local gadgets in the construction. Note that | L | = h Y i = 1 ( 1 + k i ( 2 d i + 1 )) . (5) F or a vertex v ∈ L , we denote v h = v and for 1 ≤ i < h by v i we denote the root of the local gadget H i + 1 on the path upwards from v in the construction. As the shortest path from v to v i consists of the paths from v j to v j − 1 (which is of length d j ) for j = h , h − 1, . . . , i + 1, we have dist ( v , v i ) = h X j = i + 1 d j . (6) F or every v ∈ L , construct a set X v as follows. F or every i ∈ [ h ] , look at the local gadget H i on the path upwards from v in the construction. Let C i be the cycle in H i . F or every u ∈ X i v i , insert ˆ u into X v . Observe that | X v | = h X i = 1 k i = k . (7) W e claim that ( v , X v ) v ∈ L is a ( k , d ) -comatching. W e verify this in the next two lemmata. Lemma 10.3. F or every v ∈ L , dist ( v , X v ) ≥ d + 1 . Proof: Let ˆ u ∈ X v . Assume that ˆ u is the pendant vertex attached to a vertex u of the cycle C i in a local gadget H i on the upward path from v in the construction. Note that both v i and u separate v from ˆ u in G , thus dist ( v , ˆ u ) = dist ( v , v i ) + dist ( v i , u ) + dist ( u , ˆ u ) . 51 The first term is computed in ( 6 ). F or the second term, by ( 4 ), as u ∈ X i v i , dist ( v i , u ) ≥ d i + 1. Finally , the path from u to ˆ u is of length dist ( u , ˆ u ) = i − 1 X j = 1 d j . The lemma follows as d = P h j = 1 d j . □ Lemma 10.4. F or every two distinct v , w ∈ L , we have dist ( v , X w ) ≤ d . Proof: Let H i be the local gadget that is the lowest common ancestor of v and w in the construction. As v = w , we have v i = w i . By ( 4 ) , there exists u ∈ X i w i with dist ( v i , u ) ≤ d i . W e claim that dist ( v , ˆ u ) ≤ d ; this proves the lemma as ˆ u ∈ X w . Clearly , dist ( v , ˆ u ) ≤ dist ( v , v i ) + dist ( v i , u ) + dist ( u , ˆ u ) . The first term is computed in ( 6 ) . The second term is at most d i by the choice of u . Finally , the path from u to ˆ u is of length dist ( u , ˆ u ) = i − 1 X j = 1 d j . The lemma follows as d = P h j = 1 d j . □ Choosing t , k i and d i . F or the final bound of Theorem 1.13 , we choose h = min ( k , d ) and split k into k i s and d into d i s as evenly as possible. Then, if k ≤ d , we have h = k , k i = 1 for each i ∈ [ h ] , and 1 + k i ( 2 d i + 1 ) = 2 d i + 2 ≥ 2 d k + 2. Otherwise, if d ≤ k , we have h = d , d i = 1 for each i ∈ [ h ] , and 1 + k i ( 2 d i + 1 ) = 1 + 3 k i ≥ 3 k d + 1. The size of the constructed comatching follows from ( 5 ). AI Disclosure The example of Theorem 1.13 , presented in Section 10.3 , has been found by ChatGPT 5.4 Pro. W e have found the example of Theorem 1.12 by hand and asked ChatGPT to look for an improvement in the regime where k and d differ significantly . ChatGPT autonomously found the “local gadget” used in the construction. W e have verified the correctness of the construction; the write-up is also done by the authors. Acknowledgments. H.L. would like to thank Lazar Milenkovi ´ c, Arnold Filtser , and Omrit Filtser for helpful discussions in the early stage of this work. 52 R eferences [ 1 ] F ateme Abbasi, Sandip Banerjee, Jarosław Byrka, P arinya Chalermsook, Ameet Gadekar , Kam- yar Khodamoradi, Dániel Marx, R oohani Sharma, and Joachim Spoerhase. P arameterized approximation schemes for clustering with general norm objectives. In 2023 IEEE 64th Annual Symposium on F oundations of Computer Science , FOCS ’23, pages 1377–1399, 2023. [ 2 ] Hans Adler and Isolde Adler . Interpreting nowhere dense graph classes as a classical notion of model theory . European Journal of Combinatorics , 36:322–330, 2014. [ 3 ] Boris Aronov , Steven F ortune, and Gordon W ilfong. The furthest-site geodesic Voronoi diagram. In Proceedings of the 4th annual symposium on Computational geometry , pages 229–240, 1988. [ 4 ] Daniel Baker , Vladimir Braverman, Lingxiao Huang, Shaofeng H-C Jiang, Robert Krauthgamer , and Xuan W u. Coresets for clustering in graphs of bounded treewidth. In International Conference on Machine Learning , pages 569–579. PMLR, 2020. [ 5 ] Sujoy Bhore, Balázs K eszegh, Andrey Kupavskii, Hung Le, Alexandre Louvet, Dömötör Pálvölgyi, and Csaba D Tóth. Spanners in planar domains via Steiner spanners and non-Steiner tree covers. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms , SODA ’25, pages 4292–4326. SIAM, 2025. [ 6 ] Anselm Blumer , Andrzej Ehrenfeucht, David Haussler , and Manfred K. W armuth. Learnability and the Vapnik-Chervonenkis dimension. J. ACM , 36(4):929–965, 1989. [ 7 ] Édouard Bonnet, Samuel Braunfeld, Ioannis Eleftheriadis, Colin Geniet, Nikolas Mählmann, Michal Pilipczuk, W ojciech Przybyszewski, and Szymon T orunczyk. Separability properties of monadically dependent graph classes. In Keren Censor-Hillel, F abrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, Aarhus, Denmark, July 8-11, 2025 , volume 334 of LIPIcs , pages 147:1–147:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. [ 8 ] Glencora Borradaile, Erik D. Demaine, and Siamak T azari. P olynomial-time approximation schemes for subset-connectivity problems in bounded-genus graphs. Algorithmica , 68(2):287– 311, 2014. [ 9 ] R omain Bourneuf and Marcin Pilipczuk. Bounding ϵ -scatter dimension via metric sparsity . In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithm , SODA ’25, pages 3155–3171, 2025. [ 10 ] Nicolas Bousquet and Stéphan Thomassé. Vc-dimension and erd ˝ os-pósa property . Discret. Math. , 338(12):2302–2317, 2015. [ 11 ] Vladimir Braverman, V incent Cohen-Addad, H-C Shaofeng Jiang, R obert Krauthgamer , Chris Schwiegelshohn, Mads Bech T oftrup, and Xuan W u. The power of uniform sampling for coresets. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS) , pages 462–473. IEEE, 2022. [ 12 ] Vladimir Braverman, Shaofeng H-C Jiang, R obert Krauthgamer , and Xuan W u. Coresets for clustering in excluded-minor graphs and beyond. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 2679–2696. SIAM, 2021. [ 13 ] Sergio Cabello, Éric Colin de V erdière, and Francis Lazarus. Algorithms for the edge-width of an embedded graph. Computational Geometry , 45(5):215–224, 2012. Special issue: 26th Annual Symposium on Computation Geometry at Snowbird, Utah, USA. 53 [ 14 ] Amir Carmel, Chengzhi Guo, Shaofeng H.-C. Jiang, and R obert Krauthgamer . Coresets for 1-center in ℓ 1 metrics. In Proceedings of 16th Innovations in Theoretical Computer Science Conference , ITCS ’25, pages 28:1–28:20, 2025. [ 15 ] Ke Chen. On coresets for k-median and k-means clustering in metric and euclidean spaces and their applications. SIAM Journal on Computing , 39(3):923–947, 2009. [ 16 ] V ictor Chepoi, Bertrand Estellon, and Y ann V axes. Covering planar graphs with a fixed number of balls. Discrete Comput. Geom. , 37(2):237–244, F ebruary 2007. [ 17 ] V incent Cohen-Addad, Andrew Draganov , Matteo R usso, David Saulpic, and Chris Schwiegelshohn. A tight VC-dimension analysis of clustering coresets with applications. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 4783–4808. SIAM, 2025. [ 18 ] V incent Cohen-Addad, David Saulpic, and Chris Schwiegelshohn. A new coreset framework for clustering. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing , STOC ’21, page 169–182, 2021. [ 19 ] Mark De Berg, Otfried Cheong, Marc V an Kreveld, and Mark Overmars. Computational geometry: algorithms and applications . Springer , 2008. [ 20 ] Mark de Berg and Leonidas Theocharous. A coreset for approximate furthest-neighbor queries in a simple polygon. In 40th International Symposium on Computational Geometry , volume 293 of SoCG ’24 , pages 16:1–16:16, 2024. [ 21 ] Jan Dreier . Lacon-, shrub- and parity-decompositions: Characterizing transductions of bounded expansion classes. Log. Methods Comput. Sci. , 19(2), 2023. [ 22 ] Jan Dreier , Ioannis Eleftheriadis, Nikolas Mählmann, R ose McCarty , Michal Pilipczuk, and Szymon T orunczyk. First-order model checking on monadically stable graph classes. In 65th IEEE Annual Symposium on F oundations of Computer Science, FOC S 2024, Chicago, IL, US A, October 27-30, 2024 , pages 21–30. IEEE, 2024. [ 23 ] Jan Dreier , Jakub Gajarský, Sandra Kiefer , Michal Pilipczuk, and Szymon T orunczyk. T reelike decompositions for transductions of sparse graphs. In Christel Baier and Dana Fisman, editors, LICS ’22: 37th Annual ACM / IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022 , pages 31:1–31:14. ACM, 2022. [ 24 ] Jan Dreier , Jakub Gajarský, and Michal Pilipczuk. Efficient reversal of transductions of sparse graph classes. CoRR , abs / 2601.14906, 2026. [ 25 ] Jan Dreier , Nikolas Mählmann, and Sebastian Siebertz. First-order model checking on struc- turally sparse graph classes. In Barna Saha and R occo A. Servedio, editors, Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, Orlando, FL, US A, June 20-23, 2023 , pages 567–580. ACM, 2023. [ 26 ] Jan Dreier , Nikolas Mählmann, Sebastian Siebertz, and Szymon T orunczyk. Indiscernibles and flatness in monadically stable and monadically NIP classes. In Kousha Etessami, Uriel F eige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, P aderborn, Germany , July 10-14, 2023 , volume 261 of LIPIcs , pages 125:1–125:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023. [ 27 ] Jan Dreier , Nikolas Mählmann, and Szymon T orunczyk. Flip-breakability: A combinatorial dichotomy for monadically dependent graph classes. In Bojan Mohar , Igor Shinkar , and R yan O’Donnell, editors, Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, V ancouver , BC, Canada, June 24-28, 2024 , pages 1550–1560. ACM, 2024. 54 [ 28 ] Jan Dreier and Szymon T orunczyk. Merge-width and first-order model checking. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025 , pages 1944–1955. ACM, 2025. [ 29 ] P aul Erdös and George Szekeres. A combinatorial problem in geometry . Compositio mathematica , 2:463–470, 1935. [ 30 ] Jeff Erickson and Kim Whittlesey . Greedy optimal homotopy and homology generators. In Proc. of the 16th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2005 , pages 1038–1046. SIAM, 2005. [ 31 ] Grzegorz F abia ´ nski, Michał Pilipczuk, Sebastian Siebertz, and Szymon T oru ´ nczyk. Progressive algorithms for domination and independence. arXiv preprint , 2018. [ 32 ] Dan F eldman and Michael Langberg. A unified framework for approximating and clustering data. In Proceedings of the 43rd Annual ACM Symposium on Theory of Computing , STOC ’11, page 569–578, 2011. [ 33 ] Dan F eldman, Melanie Schmidt, and Christian Sohler . T urning big data into tiny data: Constant- size coresets for k-means, pca, and projective clustering. SIAM Journal on Computing , 49(3):601– 657, 2020. [ 34 ] Jakub Gajarský, Stephan Kreutzer , Jaroslav Nesetril, P atrice Ossona de Mendez, Michal Pilipczuk, Sebastian Siebertz, and Szymon T orunczyk. First-order interpretations of bounded expansion classes. ACM T rans. Comput. Log. , 21(4):29:1–29:41, 2020. [ 35 ] Jakub Gajarský, Nikolas Mählmann, R ose McCarty , Pierre Ohlmann, Michal Pilipczuk, W ojciech Przybyszewski, Sebastian Siebertz, Marek Sokolowski, and Szymon T orunczyk. Flipper games for monadically stable graph classes. In Kousha Etessami, Uriel F eige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, P aderborn, Germany , July 10-14, 2023 , volume 261 of LIPIcs , pages 128:1–128:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023. [ 36 ] Ashish Goel, Piotr Indyk, and Kasturi R V aradarajan. R eductions among high dimensional proximity problems. In S OD A , volume 1, pages 769–778, 2001. [ 37 ] Lingxiao Huang, Shaofeng H-C Jiang, Jian Li, and Xuan W u. Epsilon-coresets for clustering (with outliers) in doubling metrics. In 2018 IEEE 59th Annual Symposium on F oundations of Computer Science (FOCS) , pages 814–825. IEEE, 2018. [ 38 ] Kacper Kluk, Marcin Pilipczuk, Michal Pilipczuk, and Giannos Stamoulis. F aster diameter computation in graphs of bounded euler genus. In Keren Censor-Hillel, F abrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, Aarhus, Denmark, July 8-11, 2025 , volume 334 of LIPIcs , pages 109:1–109:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. [ 39 ] Hung Le and Christian W ulff-Nilsen. VC set systems in minor-free (di)-graphs and applications. In Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms , SOD A ’24, pages 5332–5360, 2024. [ 40 ] Richard J. Lipton and R obert Endre T arjan. Applications of a planar separator theorem. SIAM J. Comput. , 9(3):615–627, 1980. [ 41 ] Ji ˇ rí Matoušek. Lectures on Discrete Geometry . Springer , 2002. [ 42 ] Kurt Mehlhorn, Stefan Meiser , and R onald Rasch. Furthest site abstract voronoi diagrams. International Journal of Computational Geometry & Applications , 11(06):583–616, 2001. 55 [ 43 ] Jaroslav Nešet ˇ ril and P atrice Ossona de Mendez. Sparsity - Graphs, Structures, and Algorithms , volume 28 of Algorithms and combinatorics . Springer , 2012. [ 44 ] T ung Nguyen, Alex Scott, and P aul Seymour . Induced subgraph density . VI. Bounded VC- dimension, 2024. [ 45 ] János P ach and P ankaj K. Agarwal. Combinatorial Geometry . John Wiley and Sons, Inc., 2005. [ 46 ] Rasmus P agh, Francesco Silvestri, Johan Sivertsen, and Matthew Skala. Approximate furthest neighbor with application to annulus query . Information Systems , 64:152–162, 2017. [ 47 ] Michal Pilipczuk. Graph classes through the lens of logic. CoRR , abs / 2501.04166, 2025. [ 48 ] Marek Sokołowski. Bounds on half graph orders in powers of sparse graphs. In Extended Abstracts EuroComb 2021: European Conference on Combinatorics, Graph Theory and Applications , pages 248–254. Springer , 2021. 56
Original Paper
Loading high-quality paper...
Comments & Academic Discussion
Loading comments...
Leave a Comment