arXiv:2611.05019cs.DSNov 2026

Manuscript Offprint

arXiv:2611.05019

Faster Planar Diameter using Pseudoline Envelopes

Da Wei Zheng, Daniel Prigan

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

Abstract

We give an improved algorithm for weighted directed planar diameter that runs in O~(n3/2)\widetilde{O}(n^{3/2}) time. This improves upon the O~(n5/3)\widetilde{O}(n^{5/3}) time algorithm for weighted directed planar diameter of Gawrychowski, Kaplan, Mozes, Sharir, and Weimann [SIAM J. Comput. 2021] and the recent O~(n8/5)\widetilde{O}(n^{8/5}) time algorithm for unweighted undirected planar diameter of Fredslund-Hansen, Mozes, and Weimann [SOSA 2027].

The main new result is an improved data structure for computing the farthest vertex when given feasible planar distances to the vertices on the outer face. The critical insight is the fact that normalized distances to a face behave like pseudolines, for which we can leverage range searching and upper envelope data structures. Using the farthest vertex data structure, we are able to compute all vertex eccentricities and diameter in O~(n3/2)\widetilde{O}(n^{3/2}).

1 Introduction

Let GG be a directed graph with nn vertices, real edge weights w:E→Rw: E \to \mathbb{R}, and no negative weight cycles. Write V(G)V(G) and E(G)E(G) for the vertex and edge sets of GG, and dG(u,v)d_G(u,v) for the length of a shortest directed uu-to-vv path. We set dG(u,v)=+∞d_G(u,v) = +\infty when vv is unreachable from uu, and dG(u,u)=0d_G(u,u) = 0. In particular, dG(u,v)d_G(u,v) need not equal dG(v,u)d_G(v,u) in a directed graph. The outgoing eccentricity of uu and the diameter of GG are

eccG+(u)=max⁡v∈V(G)dG(u,v),diam(G)=max⁡u∈V(G)eccG+(u).\mathrm{ecc}_{G}^{+}(u)=\max_{v\in V(G)} d_G(u,v),\qquad \mathrm{diam}(G)=\max_{u\in V(G)} \mathrm{ecc}_{G}^{+}(u).

Throughout the paper, eccentricity means outgoing eccentricity.

Computing the diameter of the graph is a fundamental problem in graph algorithms. For sparse graphs with nn vertices, m=O(n)m = O(n) edges, and no negative weight edges, the simple algorithm of performing single source shortest path (SSSP) computation from every vertex runs in O~(n2)\widetilde{O}(n^2) total time¹ using Dijkstra's algorithm. Roditty and Vassilevska Williams [RV13] showed that assuming the strong exponential time hypothesis (SETH) and the orthogonal vectors (OV) hypothesis, there is no O(n2−ε)O(n^{2-\varepsilon}) time algorithm for any ε>0\varepsilon > 0. Since obtaining a truly subquadratic time is unlikely for general graphs, significant attention has turned to computing exact diameter in more structured families of graphs, such as bounded treewidth graphs [CK09, AWW16, Hus16, BHM20], planar graphs [Cab19, GKM+21, FMW26], minor-free graphs [DHV22, LW24, KZ25, CCG+25, Zhe26], and geometric intersection graphs [BKK+22, DKP24, CGL24, CCG+25, CCG+26a, CCG+26b].

*This research was supported by the Austrian Science Fund (FWF) under grant DOI 10.55776/Z422. For open access purposes, the authors have applied a CC BY public copyright license to any author-accepted manuscript version arising from this submission. This research was partially funded by Israel Science Foundation grant No. 843/23.

¹Throughout the paper we use O~(⋅)\widetilde{O}(\cdot) notation to hide polylog factors.

In a celebrated 2017 breakthrough, Cabello [Cab19] showed that diameter in weighted directed planar graphs can be computed in O~(n11/6)\widetilde{O}(n^{11/6}) running time. Gawrychowski, Kaplan, Mozes, Sharir and Weimann [GKM+^{+}21] subsequently improved the running time to O~(n5/3)\widetilde{O}(n^{5/3}). Central to both results is the understanding of additively weighted Voronoi diagrams for planar distances.

Voronoi diagram techniques crucially exploited planarity and thus did not readily extend to other graph classes. Progress in broader graph classes instead came from exploiting the combinatorial structure of distances through bounded VC-dimension. Ducoffe, Habib, and Viennot [DHV22] first showed that subquadratic time diameter computation was possible in unweighted undirected minor-free graphs with a different structural technique involving distance VC-dimension. In a different approach, using the distance profile set systems that were shown to have bounded VC-dimension in planar graphs by Li and Parter [LP19], Le and Wulff-Nilsen [LW24] developed normalized distance profiles to obtain subquadratic diameter algorithms in unweighted minor-free digraphs. Zheng [Zhe26] recently extended the VC-dimension approach to handle minor-free digraphs with real edge weights.

Distance profile techniques have led to renewed progress on planar graphs. Recently, Fredslund-Hansen, Mozes, and Weimann [FMW26] improved the running time for unweighted undirected planar graphs to O~(n8/5)\widetilde{O}(n^{8/5}) time by strengthening the Li and Parter [LP19] bound for planar distance profiles. This leaves a gap between O~(n5/3)\widetilde{O}(n^{5/3}) time for weighted directed planar graphs and O~(n8/5)\widetilde{O}(n^{8/5}) time in unweighted undirected planar graphs. Neither exponent seems to be optimal, raising the question of how far either bound can be improved.

Abboud, Mozes, and Weimann explicitly asked whether planar diameter admits an n1+o(1)n^{1+o(1)}-time algorithm or whether a superlinear lower bound can be proved [AMW23]. At the 2016 Dagstuhl seminar Structure and Hardness in PP, Søren Dahlgaard suggested as an open problem that n3/2−o(1)n^{3/2-o(1)} conditional hardness was a possible target for planar diameter [LPW17, Section 4.9]. The exponent 3/23/2 also has a natural algorithmic motivation: the planar separator theorem of Lipton and Tarjan [LT79] guarantees a balanced separator with O(n)O(\sqrt{n}) vertices, and it is natural to need to consider all O(n3/2)O(n^{3/2}) vertex-separator pairs in an algorithm to compute diameter. This makes n3/2n^{3/2} time a natural milestone for planar diameter upper and lower bounds.

References (29)