Additive, Near-Additive, and Multiplicative Approximations for APSP in Weighted Undirected Graphs: Trade-offs and Algorithms

Abstract

We present a +2Σi=1k+1Wi-APASP algorithm for dense weighted graphs with runtime O(n2+13k+2), where Wi is the weight of an ith heaviest edge on a shortest path. Dor, Halperin and Zwick [FOCS'96, SICOMP'00] had two algorithms for the commensurate unweighted +2·( k+1)-APASP: O(n2-1k+2m1k+2) runtime for sparse graphs and O(n2+13k+2) runtime for dense graphs. Cohen and Zwick [SODA'97, JALG'01] adapted the sparse variant to weighted graphs: +2Σi=1k+1Wi-APASP algorithm in the same runtime. We show an algorithm for dense weighted graphs. For nearly additive APASP, we present a (1+,\2W1,4W2\)-APASP algorithm with O((1)O(1)· n2.15135313· W) runtime. This improves the (1+,2W1)-APASP of Saha and Ye [SODA'24]. For multiplicative APASP, we show a framework of (3 +4 + 2+)-APASP algorithms, reducing the runtime of Akav and Roditty [ESA'21] for dense graphs and generalizing the (2+)-APASP algorithm of Dory et al [SODA'24]. Our base case is a (73+)-APASP in O((1)O(1)· n2.15135313· W) runtime, improving the 73-APASP algorithm of Baswana and Kavitha [FOCS'06, SICOMP'10] for dense graphs. Finally, we "bypass" an (nω) conditional lower bound by Dor, Halperin, and Zwick for α-APASP with α < 2, by allowing an additive term (e.g. (6k+33k+2,Σi=1k+1Wi)-APASP in O(n2+13k+2) runtime).

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…