arXiv:2610.42046cs.DSOct 2026

Manuscript Offprint

arXiv:2610.42046

Optimal Online Weighted Connectivity Augmentation

Mohit Garg, Felix Hommelsheim, Alexander Lindermayr

Abstract

In the online Weighted Connectivity Augmentation Problem (WCAP), we are given a kk-edge-connected graph on nn vertices and a set of additional edges, called links, with nonnegative costs. Pairs of vertices arrive one by one, and an online algorithm must immediately and irrevocably buy links so that each pair becomes (k+1)(k+1)-edge-connected. The goal is to minimize the total cost of the purchased links.

We obtain a deterministic polynomial-time O(log⁡n)O(\log n)-competitive algorithm for WCAP, improving the previous O(log⁡2n)O(\log^2 n) bound (SODA 2026). Our bound is asymptotically optimal, even for randomized algorithms in the random-order model. The general problem reduces to the case where the underlying graph is a cycle, for which link costs in {0,1}\{0,1\} already yield an Ω(log⁡n)\Omega(\log n) lower bound. Surprisingly, for unit costs on a cycle, we obtain a deterministic polynomial-time 4-competitive algorithm, improving the previous O(log⁡n)O(\log n) bound (SODA 2026), and prove that this ratio is optimal among deterministic algorithms. Thus, with unit costs, cycles are easier than trees, where the optimal competitive ratio is Θ(log⁡n)\Theta(\log n).

Unlike on a tree, the minimum cuts of a cycle avoiding a fixed vertex need not form a laminar family. Our algorithm for general costs constructs a laminar family of minimum cuts online, decomposes it on the fly into chains, and covers each chain using a primal-dual online algorithm. Combining these algorithms directly would yield only an O(log⁡2n)O(\log^2 n) competitive ratio. Our main technical ingredient transforms any deterministic competitive algorithm for covering a chain into one with a stronger, refined cost guarantee. Together with a structural property of the chain decomposition, this transformation allows us to achieve an O(log⁡n)O(\log n) competitive ratio.

For unit costs, our algorithm greedily grows sets of purchased links connected through crossings or shared endpoints. The geometry of the cycle allows us to charge each expansion of such a set toward a requested vertex to a distinct link of an optimal solution.

*The Institute of Mathematical Sciences, Chennai, India; Homi Bhabha National Institute, Mumbai, India (garg@imsc.res.in). †Institute for Computer Science, University of Cologne, Germany (hommelsheim@cs.uni-koeln.de). Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project Number 573939419. ‡Institut für Mathematik, Technische Universität Berlin, Germany (alexander.lindermayr@tu-berlin.de). Supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany's Excellence Strategy – The Berlin Mathematics Research Center MATH⁺ (EXC-2046/1, EXC-2046/2, project ID: 390685689).

1 Introduction

Survivable network design seeks to construct low-cost networks that maintain a desired level of connectivity despite the failure of a few edges or vertices. A fundamental problem in this area is the Weighted Connectivity Augmentation Problem (WCAP): Given a kk-edge-connected graph G=(V,E)G = (V, E) on nn vertices and a set LL of additional edges on VV, called links, with nonnegative costs, the goal is to find a minimum-cost subset of links whose addition to GG makes it (k+1)(k+1)-edge-connected. WCAP and its unit-cost version, the Connectivity Augmentation Problem (CAP), have been extensively studied in approximation algorithms (see Section 1.3). Connectivity augmentation is also a key ingredient in approximation algorithms for more general survivable network design problems [Wil+95].

In online WCAP, the kk-edge-connected graph GG and the set of links LL with nonnegative costs are known upfront, but requests for additional connectivity between pairs of vertices arrive one by one. Upon receiving a request {s,t}\{s, t\}, an algorithm must immediately and irrevocably buy zero or more links so that ss and tt become (k+1)(k+1)-edge-connected. Equivalently, every s−ts-t cut of GG of size kk must be covered by a bought link, that is, a link with exactly one endpoint on each side of the cut. The competitive ratio of an algorithm is the worst-case ratio between the (expected) cost of the links purchased by the algorithm and the minimum cost of a set of links that serves all requests.

An online algorithm of Gupta, Krishnaswamy, and Ravi [GKR12] for a more general survivable network design problem yields a randomized O~(klog⁡3n)\tilde{O}(k \log^3 n)-competitive algorithm for online WCAP. For k=1k=1, the graph GG can be assumed to be a tree, since contracting its 2-edge-connected components preserves its minimum cuts. This special case is known as the Weighted Tree Augmentation Problem (WTAP), or simply TAP when all link costs are one. For online WTAP, Naor, Umboh, and Williamson [NUW22] gave a deterministic O(log⁡n)O(\log n)-competitive algorithm, matching an Ω(log⁡n)\Omega(\log n) lower bound for randomized algorithms [GKR12], which holds even in the random-order model [GS26]. This remains the best known lower bound for arbitrary kk, even for CAP. Recently, Garg and Subramanian [GS26] gave an optimal deterministic O(log⁡n)O(\log n)-competitive algorithm for online CAP, but their algorithm for online WCAP achieves only an O(log⁡2n)O(\log^2 n) competitive ratio and relies on a deterministic algorithm for online node-weighted Steiner forest [BEV25]. Since online node-weighted Steiner forest generalizes online set cover, it admits no deterministic o(log⁡2n/log⁡log⁡n)o(\log^2 n / \log \log n)-competitive algorithm [Alo+09]. Hence, a black-box application of an algorithm for general online node-weighted Steiner forest cannot close this logarithmic gap. Prior to this work, it remained open whether online WCAP for k≥2k \geq 2 admits an O(log⁡n)O(\log n)-competitive algorithm, as in the case of online WTAP and online CAP.

Our approach is based on reducing online WCAP to the special case of cycles. The minimum cuts of a kk-edge-connected graph can be represented by a cactus, a connected graph in which every edge belongs to exactly one cycle [DKL76]. In the offline setting, one can repeatedly unfold the cactus at vertices shared by two cycles, merging them into a single cycle in which the shared vertex appears twice, with a zero-cost link joining the two copies. This reduces WCAP to the special case where k=2k=2 and GG is a cycle, known as the Weighted Cycle Augmentation Problem (WCycAP) [Gál+21; TZ23]. Garg and Subramanian [GS26] showed that the reduction to a cactus extends to the online setting, and we show that the unfolding does as well. Thus, online WCycAP captures the full difficulty of online WCAP. See Figure 1 for an illustration.

Cycles already exhibit the key difficulty beyond trees. On a tree, fix a root and identify each minimum cut with the set of vertices on the side not containing the root. These sets form a laminar family: any two are either disjoint or nested. The algorithm of Naor, Umboh, and Williamson [NUW22] for online WTAP exploits this laminar structure. In contrast, on a cycle, the corresponding sets are intervals of a path, which may overlap without being nested.

Cycles also raise the second question of whether the logarithmic competitive ratio arises from the link costs or from the structure of the cuts themselves. On trees, the Ω(log⁡n)\Omega(\log n) lower bound holds even with unit costs [GKR12; GS26]. On cycles, however, the reduction from CAP establishes this lower bound only for link costs in {0,1}\{0,1\}, since it introduces zero-cost links. For the unit-cost Cycle Augmentation Problem (CycAP), the best known competitive ratio was O(log⁡n)O(\log n) [GS26], leaving open whether a constant competitive ratio is achievable.