English

Connectivity Queries under Vertex Failures: Not Optimal, but Practical

Data Structures and Algorithms 2023-09-06 v2

Abstract

We revisit once more the problem of designing an oracle for answering connectivity queries in undirected graphs in the presence of vertex failures. Specifically, given an undirected graph GG with nn vertices and mm edges and an integer dnd_{\star}\ll n, the goal is to preprocess the graph in order to construct a data structure D\mathcal{D} such that, given a set of vertices FF with F=dd|F|=d\leq d_{\star}, we can derive an oracle from D\mathcal{D} that can efficiently answer queries of the form ''is xx connected with yy in GFG\setminus F?''. Very recently, Long and Saranurak (FOCS 2022) provided a solution to this problem that is almost optimal with respect to the preprocessing time, the space usage, the update time, and the query time. However, their solution is highly complicated, and it seems very difficult to be implemented efficiently. Furthermore, it does not settle the complexity of the problem in the regime where dd_{\star} is a constant. Here, we provide a much simpler solution to this problem, that uses only textbook data structures. Our algorithm is deterministic, it has preprocessing time and space complexity O(dmlogn)O(d_{\star}m\log n), update time O(d4logn)O(d^4 \log n), and query time O(d)O(d). These bounds compare very well with the previous best, especially considering the simplicity of our approach. In fact, if we assume that dd_{\star} is a constant (d4d_{\star}\geq 4), then our algorithm provides some trade-offs that improve the state of the art in some respects. Finally, the data structure that we provide is flexible with respect to dd_{\star}: it can be adapted to increases and decreases, in time and space that are almost proportional to the change in dd_{\star} and the size of the graph.

Keywords

Cite

@article{arxiv.2305.01756,
  title  = {Connectivity Queries under Vertex Failures: Not Optimal, but Practical},
  author = {Evangelos Kosinas},
  journal= {arXiv preprint arXiv:2305.01756},
  year   = {2023}
}

Comments

Accepted at ESA 2023

R2 v1 2026-06-28T10:23:56.587Z