arXiv:2610.32806cs.CGOct 2026

Manuscript Offprint

arXiv:2610.32806

Low-Crossing Spanning Paths via Quasi-Uniform Sampling and their Applications

Mónika Csikós, Nabil H Mustafa

Abstract

Given a set system (X,S)(X, \mathcal{S}), we consider the problems of constructing perfect matchings and spanning paths (also known as Welzl orders) of XX with low crossing numbers with respect to S\mathcal{S}. Matchings with low crossing numbers were originally introduced in the late 1980s in the seminal works of Welzl [29, 30] and Chazelle-Welzl [7], who showed that any set system (X,S)(X, \mathcal{S}) with bounded dual VC-dimension dd has a matching with crossing number O(∣X∣1−1/d)O\left(|X|^{1-1/d}\right), which is optimal.

Low-crossing matchings and spanning paths have found several applications outside of their initial realm of computational geometry, including algorithmic graph theory, model checking, and game theory. In many of these applications, ∣S∣|\mathcal{S}| is near-linear in ∣X∣|X|, which motivated the search for an improved construction for this regime. However, the proposed new algorithms provided only average-case bounds or sub-optimal crossing number guarantees for d≥2d \geq 2 [5, 12].

We propose a new quasi-uniform sampling based framework. This allows us to obtain a simple algorithm with expected running time of O~(∣X∣2+∣S∣⋅∣X∣)\tilde{O}\left(|X|^2 + |\mathcal{S}| \cdot |X|\right), which improves upon the previous-best running time of O~(∣X∣2+2/d+∣S∣⋅∣X∣2/d)\tilde{O}\left(|X|^{2+2/d} + |\mathcal{S}| \cdot |X|^{2/d}\right) [9] when ∣S∣=o(∣X∣1+2/d)|\mathcal{S}| = o\left(|X|^{1+2/d}\right).

Our result has several immediate consequences, including new faster algorithms for constructing low-crossing spanning paths for set systems induced by balls, as well as for neighborhood set systems of graphs. Moreover, we get the first quadratic-time algorithm for combinatorial discrepancy, with nearly optimal discrepancy (up to a log factor), for bounded dual VC-dimension set systems. Beyond these applications, we believe that our idea could be applied to other algorithms that use the multiplicative weight update method.

2012 ACM Subject Classification Theory of computation → Randomness, geometry and discrete structures

Keywords and phrases Low-crossing spanning paths, Welzl orders, quasi-uniform sampling, VC-dimension

Digital Object Identifier 10.4230/LIPIcs...

AI usage The authors declare that they did not use generative AI tools to obtain their results or to write this article. An LLM was used to check the manuscript before submission, leading to minor technical and grammatical corrections.

© M. Csikós and N. H. Mustafa; licensed under Creative Commons License CC-BY 4.0 Leibniz International Proceedings in Informatics LIPICS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

Figure

XX:2 Low-Crossing Spanning Paths via Quasi-Uniform Sampling and their Applications

1 Introduction

Let (X,S)(X, \mathcal{S}) be a set system (also known as hypergraph, concept class, or range space), where X is a finite set of n elements and S is a collection of m subsets of X. To distinguish the sets of S from arbitrary subsets of X, we will refer to the elements of S as ranges.

A perfect matching of a set XX is a partition of XX into ∣X∣/2|X|/2 disjoint pairs1^1. Given a set system (X,S)(X, \mathcal{S}), we say that a set S∈SS \in \mathcal{S} crosses a pair {x,y}⊆X\{x, y\} \subseteq X iff ∣S∩{x,y}∣=1|S \cap \{x, y\}| = 1. The crossing number of a perfect matching MM with respect to S\mathcal{S} is defined to be the maximum number of edges of MM crossed by any S∈SS \in \mathcal{S}.

Matchings with low crossing numbers were originally introduced by Welzl [29, 30] for the special case where X is a set of points in Rd\mathbb{R}^d and S is induced on X by half-spaces. Welzl's result was then generalized by Chazelle and Welzl [7] to a broader class of set systems using the notion of the dual shatter function.

▶ Definition (dual shatter function). For a set system (X,S)(X, \mathcal{S}), the dual shatter function πS∗\pi_{\mathcal{S}}^{*} of (X,S)(X, \mathcal{S}) is defined as follows. For any k≤∣S∣k \leq |\mathcal{S}|, πS∗(k)\pi_{\mathcal{S}}^{*}(k) denotes the maximum number of equivalence classes on XX defined by a kk-element subfamily R⊆S\mathcal{R} \subseteq \mathcal{S}, where x,y∈Xx, y \in X are equivalent2^2 w.r.t. R\mathcal{R} iff xx belongs to the same sets of R\mathcal{R} as yy.

Remark. The family of set systems with dual-shatter function bounded polynomially in kk includes set systems with bounded dual VC-dimension. In particular, a set system with dual VC-dimension at most dd has dual shatter function upper bounded by O(kd)O\left(k^{d}\right) [27, 28]. It also includes most of the commonly-studied geometric set systems such as the primal and dual set systems induced by half-spaces, balls, intersections/unions of bounded complexity geometric objects and more generally, algebraic varieties (see [24]).

The method of Chazelle and Welzl, together with Haussler's packing lemma bound [18] led to the following fundamental theorem on the existence of matchings with low crossing numbers.

▶ Theorem A ([7, 18]). Let (X,S)(X, \mathcal{S}) be a set system with n=∣X∣n = |X|, m=∣S∣m = |\mathcal{S}|, and dual shatter function πS∗(k)=O(kd)\pi_{\mathcal{S}}^{*}(k) = O(k^{d}). Then there exists a perfect matching on XX with crossing number O(n1−1/d+ln⁡m)O\left(n^{1-1/d} + \ln m\right).

Theorem A has had numerous applications for geometric set systems, including range searching, low-discrepancy colorings, near-optimal sized epsilon-approximations, to name a few. We refer the reader to these books [6, 23, 26] for proofs and applications of Theorem A. Moreover, the generality of Theorem A makes possible applications in several other fields of computer science: communication complexity and learning theory [2], algorithmic graph theory [13], logic and verification [11], or game theory [19].

Low-crossing matchings are a key algorithmic tool, and improving their algorithmic complexity has been an active area of research [16, 4, 14, 9, 13, 10]. For geometric set systems, the current best algorithms rely on spatial partitioning tools such as cuttings [4] or polynomial partitioning [1]. However, these geometric techniques cannot give improved algorithms for

1^{1} If ∣X∣|X| is odd, then we partition X into ∣X∣/2|X|/2 disjoint pairs plus a singleton set.

2^{2} In other words, the number of equivalence classes for a given R⊆S\mathcal{R} \subseteq \mathcal{S}, is the number of non-empty cells, with respect to XX, in the Venn diagram of the sets of R\mathcal{R}.

XX:3

Theorem A in its abstract generality. For the general case of set systems with polynomially bounded dual shatter functions, the current-best algorithm for computing a matching of crossing number O(n1−1/d)O\left(n^{1-1/d}\right) takes expected time O(mn2/d+n2+2/d)O\left(mn^{2/d} + n^{2+2/d}\right) [9]. One can get faster algorithms at the cost of a sub-optimal crossing number. In particular, Csikós and Mustafa [10] showed that for any α∈(0,1]\alpha \in (0,1], it is possible to compute matchings with crossing number O(n1−α/d)O\left(n^{1-\alpha/d}\right) in time O~(n1+α+2αd+∣S∣⋅n2αd)\tilde{O}\left(n^{1+\alpha+\frac{2\alpha}{d}} + |\mathcal{S}| \cdot n^{\frac{2\alpha}{d}}\right). Recently, Dreier and Kuske [12] proposed an algorithm in the more restricted setting of set systems with primal and dual shatter functions in O(kd)O(k^d). Their guaranteed crossing number is O(n1−1/d2log⁡2(n))O\left(n^{1-1/d^2} \log^2(n)\right), which is optimal if d=1d = 1 and the construction takes time O(Nlog⁡N)O(N \log N), where N=n+∑S∈S∣S∣N = n + \sum_{S \in \mathcal{S}} |S|.

Finally, we make several remarks about our setup and related problems.

Matchings vs paths vs trees. The equivalence of low-crossing spanning paths and trees is a classical result, see e.g. Chapter 15 in the book of Pach and Agarwal [26]. We also note that by iteratively constructing low-crossing matchings, one can obtain spanning paths with asymptotically the same crossing number guarantees (Appendix B.1).

Worst case vs amortized cost. A related problem is that of computing a tree (or a matching, path) that minimizes the sum of the crossings of the ranges, over all edges of the tree (instead of minimizing the maximum number of edges crossed by any set). This sum minimization problem can be reduced to the minimum spanning tree problem under the so-called crossing metric, which can be approximated in near-linear time for set systems induced by lines [20, 17]. Very recently, Chan et al. [5] proposed an O~(T(n)⋅n1/d)\tilde{O}(T(n) \cdot n^{1/d})-time algorithm to compute a spanning path with low average crossing number in general set systems, where T(n)T(n) is the time complexity of enumerating elements of a given range.

Input model. Low-crossing matchings and spanning paths have many applications in several domains, where the inputs have different representations. In order to encompass all these setups in one algorithmic framework, we assume that the input set system (X,S)(X, \mathcal{S}) is given by a list of all elements in XX and ranges in S\mathcal{S} together with a membership oracle, which tells us, for a given element x∈Xx \in X and range S∈SS \in \mathcal{S} whether x∈Sx \in S in constant time.

References (29)