Untangling Segments in the Plane
Guilherme D. da Fonseca, Yan Gerard, Bastien Rivier
TL;DR
This work introduces a unifying flip-based framework for untangling crossing planar segments, parameterized by a point-property $\Pi$ and a graph-property $\Gamma$, and quantified by $D_{\Pi,\Gamma}(n)$ and related variants that capture worst-case flip counts under different choices. It systematically analyzes four regimes—no choice, removal choice, insertion choice, and both choices—across several geometric graph problems (TSP, Matching, RedBlue Matching, Tree, Multigraph) and configurations ranging from convex to near-convex, establishing bounds that interpolate between linear, near-linear, and quadratic behavior. Central contributions include reductions tying different graph-properties, near-convex bounds $D(n,t)=O(tn^2)$ for the Matching version, and a suite of phase-driven strategies yielding $O(n \log n)$ and $O(tn \log n)$ results in convex and separated settings; a subcubic bound on distinct flips $O(n^{8/3})$ is also established for the no-choice setting. These results unify disparate prior bounds, show how removal and insertion choices propagate across problems, and illuminate how convexity and separations influence untangling efficiency, with practical implications for local-search heuristics in Euclidean TSP and related reconfiguration problems.
Abstract
A set of n segments in the plane may form a Euclidean TSP tour, a tree, or a matching, among others. Optimal TSP tours as well as minimum spanning trees and perfect matchings have no crossing segments, but several heuristics and approximation algorithms may produce solutions with crossings. If two segments cross, then we can reduce the total length with the following flip operation. We remove a pair of crossing segments, and insert a pair of non-crossing segments, while keeping the same vertex degrees. In this paper, we consider the number of flips performed under different assumptions, using a new unifying framework that applies to tours, trees, matchings, and other types of (multi)graphs. Within this framework, we prove several new bounds that are sensitive to whether some endpoints are in convex position or not.
