arXiv:2610.23130cs.DSOct 2026

Manuscript Offprint

arXiv:2610.23130

Online geometric matching and segments block points

Yaqiao Li, Junyi Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Given a sequence of online points in general position in the plane, the geometric matching problem asks to match as many points as possible, subject to segment crossing constraints. We initiate the study of online geometric matching with limited crosses. In the k-crossing model each matched segment is allowed to have at most k crosses, where k = 0 corresponds to the online noncrossing matching model for which Bose et al. proved that Greedy is an optimal deterministic algorithm achieving a competitive ratio of 2/3. In the triangle-free-crossing model no three matched segments are allowed to pairwise cross each other. Interestingly, we show in both cases the performance of Greedy does not improve by allowing crosses, and in fact, becomes worse in the k-crossing setting for k≥1k \geq 1. In the triangle-free-crossing model, we propose a simple two-layer-Greedy deterministic algorithm achieving a competitive ratio 4/5. More interestingly, we propose and study the underlying segments blocking points extremal problem, and discuss its connection to vertex cover numbers and Ramsey numbers, with interesting open problems that might be of independent interest.

We revisit the noncrossing model. We give a randomized algorithm which is an asymmetric version of Kamali et al., improving the competitive ratio from 0.66952 to 0.67034. We also show, via a conceptually simple construction, that no randomized algorithm can match more than 6/7 fraction of points, improving the previous 16/17 by Boyar et al.

1 Introduction

This work generalizes the online noncrossing matching problem to the more general online geometric matching problem, where limited crosses are allowed. The online geometric matching problem differs from online matching of a graph: for the geometric problem, the matching needs to satisfy a certain geometric property, while for the graph problem, the matching needs to satisfy a combinatorial property (i.e., be a subset of predetermined edges). For online matching of a graph, see a recent survey by Huang et al. [HTW24].

The online geometric matching problem is defined as follows. An online instance is a finite sequence I=(v1,…,vn)\mathcal{I} = (v_1, \ldots, v_n) of points in R2\mathbb{R}^2 in general position; in particular no three input points are collinear, no three lines intersect at one point, etc. The value of nn is not announced in advance. When viv_i arrives, an online algorithm may match it to one earlier unmatched point or leave it unmatched. A match is represented by the closed straight-line segment between its endpoints, and all decisions are irrevocable. Throughout, for two points uu and vv, we write uvuv for the closed line segment joining them. The matched segments form a matching denoted by L\mathcal{L}. For a given geometric

*liyaqiao@suat-sz.edu.cn

†^{\dagger}suat25000108@stu.suat-sz.edu.cn property, one asks: what is the largest asymptotic competitive ratio that can be achieved by an online algorithm respecting the given property?

In this work, the property we consider is whether two line segments cross or not, i.e., whether their interiors intersect. The crossing graph G(L)G(\mathcal{L}) has one vertex for every segment of L\mathcal{L} and one edge for every crossing pair. We consider two scenarios.

• In the k-crossing model, every vertex of G(L)G(\mathcal{L}) has degree at most the fixed integer k≥0k \geq 0.

• In the triangle-free-crossing model, G(L)G(\mathcal{L}) is triangle-free; equivalently, no three matching segments pairwise cross.

The 0-crossing model is precisely the noncrossing model. For k=0,1k = 0, 1, every kk-crossing matching is triangle-free-crossing. For k≥2k \geq 2, the two crossing models are incomparable: a triangle-free crossing graph may have arbitrarily large maximum degree, whereas a kk-crossing graph may contain a triangle.

Let ALG denote an arbitrary online algorithm, and OPT an optimal offline algorithm, respectively. For a given instance I, let ALG(I)\text{ALG}(\mathcal{I}) and OPT(I)\text{OPT}(\mathcal{I}) denote the number of matched points, respectively. We are only concerned about the asymptotic performance of algorithms, so without loss of generality we assume n is even. Because a minimum-total-length perfect matching is non-crossing, we have OPT(I)=n\text{OPT}(\mathcal{I}) = n for all three models we consider. If L\mathcal{L} is the matching obtained by ALG, then ALG(I)=2∣L∣\text{ALG}(\mathcal{I}) = 2|\mathcal{L}|, where ∣L∣|\mathcal{L}| denotes the number of matched segments. A deterministic algorithm has asymptotic competitive ratio at least ρ\rho if a constant C exists such that ALG(I)≥ρOPT(I)−C\text{ALG}(\mathcal{I}) \geq \rho \text{OPT}(\mathcal{I}) - C for every input I. For a randomized algorithm the corresponding requirement is E[ALG(I)]≥ρOPT(I)−C\mathbb{E}[\text{ALG}(\mathcal{I})] \geq \rho \text{OPT}(\mathcal{I}) - C, where the expectation is over the algorithm's internal randomness. Its adversary is oblivious: the entire input, including its length, is fixed before the random bits are exposed. Since OPT(I)=n\text{OPT}(\mathcal{I}) = n in all three models, the asymptotic competitive ratio coincides with the asymptotic fraction of input points matched (or the expected fraction for a randomized algorithm).

A deterministic algorithm is Greedy if it always matches the current point whenever that point can be matched to an existing unmatched point. Its tie-breaking rule is arbitrary.