English

Data structure for node connectivity and cut queries

Data Structures and Algorithms 2023-06-27 v4

Abstract

Let κ(s,t)\kappa(s,t) denote the maximum number of internally disjoint stst-paths in an undirected graph GG. We consider designing a compact data structure that answers kk-bounded node connectivity queries: given s,tVs,t \in V return min{κ(s,t),k+1}\min\{\kappa(s,t),k+1\}. A trivial data structure has space O(n2)O(n^2) and query time O(1)O(1). A data structure of Hsu and Lu has space O(k2n)O(k^2n) and query time O(logk)O(\log k),and a randomized data structure of Iszak and Nutov has space O(knlogn)O(kn\log n) and query time O(klogn)O(k \log n). We extend the Hsu-Lu data structure to answer queries in time O(1)O(1). In parallel to our work, Pettie, Saranurak and Yin extended the Iszak-Nutov data structure to answer queries in time O(logn)O(\log n). Our data structure is more compact for k<lognk<\log n, and our query time is always better. We then augment our data structure by a list of cuts that enables to return a pointer to a minimum stst-cut in the list (or to a cut of size k\leq k) whenever κ(s,t)k\kappa(s,t) \leq k. A trivial data structure has cut list size n(n1)/2n(n-1)/2, and cut query time O(1)O(1), while the Pettie, Saranurak and Yin data structure has list size O(knlogn)O(kn \log n) and cut query time O(logn)O(\log n). We show that O(kn)O(kn) cuts suffice to return an stst-cut of size k\leq k, and a list of O(k2n)O(k^2 n) cuts contains a minimum stst-cut for every s,tVs,t \in V. In the case when SS is a node subset with κ(s,t)k\kappa(s,t) \geq k for all s,tVs,t \in V, we show that 3S3|S| cuts suffice, and that these cuts can be partitioned into O(k)O(k) laminar families. Thus using space O(kn)O(kn) we can answers each connectivity and cut queries for s,tSs,t \in S in O(1)O(1) time, generalizing and substantially simplifying the proof of a result of Pettie and Yin for the case S=V|S|=V.

Keywords

Cite

@article{arxiv.2110.09102,
  title  = {Data structure for node connectivity and cut queries},
  author = {Zeev Nutov},
  journal= {arXiv preprint arXiv:2110.09102},
  year   = {2023}
}