# On the query complexity of connectivity with global queries

arXiv: https://arxiv.org/abs/2109.02115 · HTML: https://mlsanity.com/paper/2109.02115/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 5 Sep 2021.

## Built on by (most cited first, 2 of 2)

- [Learning Partitions with Optimal Query and Round Complexities](https://mlsanity.com/paper/2505.05009/) (2025)
- [Optimal Graph Reconstruction by Counting Connected Components in Induced Subgraphs](https://mlsanity.com/paper/2506.08405/) (2025)

## Abstract (arXiv)

We study the query complexity of determining if a graph is connected with global queries. The first model we look at is matrix-vector multiplication queries to the adjacency matrix. Here, for an n-vertex graph with adjacency matrix A, one can query a vector x ∈ 0,1n and receive the answer Ax. We give a randomized algorithm that can output a spanning forest of a weighted graph with constant probability after O(log4(n)) matrix-vector multiplication queries to the adjacency matrix. This complements a result of Sun et al. (ICALP 2019) that gives a randomized algorithm that can output a spanning forest of a graph after O(log4(n)) matrix-vector multiplication queries to the signed vertex-edge incidence matrix of the graph. As an application, we show that a quantum algorithm can output a spanning forest of an unweighted graph after O(log5(n)) cut queries, improving and simplifying a result of Lee, Santha, and Zhang (SODA 2021), which gave the bound O(log8(n)). In the second part of the paper, we turn to showing lower bounds on the linear query complexity of determining if a graph is connected. If w is the weight vector of a graph (viewed as an binomn2 dimensional vector), in a linear query one can query any vector z ∈ ℝn choose 2 and receive the answer langle z, wrangle. We show that a zero-error randomized algorithm must make Omega(n) linear queries in expectation to solve connectivity. As far as we are aware, this is the first lower bound of any kind on the unrestricted linear query complexity of connectivity. We show this lower bound by looking at the linear query certificate complexity of connectivity, and characterize this certificate complexity in a linear algebraic fashion.
