arXiv:2610.17581cs.DSOct 2026

Manuscript Offprint

arXiv:2610.17581

Query Complexity of Densest Sub(hyper)graph Problems

Sinan G. Aksoy, Eli Friedman, Nate Veldt, Stephen J. Young

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Rubinstein et al. [ITCS '18] introduce the study of connectivity and minimum cut problems in the cut query model, where an algorithm can only access the edges of a graph through cut queries. In this work, we examine the query complexity of densest subgraph problems. Our first contribution is to generalize the uniform sparsification approach for Densest Subgraph and other heavy subgraph problems to weighted graphs, achieving the following results.

  • A (1+ε)(1 + \varepsilon)-approximation for weighted Densest Subgraph in O(nlog⁡2n/ε2)O(n \log^2 n / \varepsilon^2) queries, roughly matching the Ω(n/log⁡n)\Omega(n / \log n) lower bound we prove for randomized algorithms.

  • A (1+ε)(1 + \varepsilon)-approximation for weighted Max Cut in O(nlog⁡2n/ε2)O(n \log^2 n / \varepsilon^2) queries. This improves upon the bound of O(nlog⁡3n(log⁡n+1/ε2))O(n \log^3 n (\log n + 1 / \varepsilon^2)) queries achieved by Plevrakis et al. [ICALP '18], making significant progress towards their lower bound of Ω(n/log⁡n)\Omega(n / \log n) queries.

In contrast, we rule out approximation schemes with truly subquadratic query complexity for Densest k-Subgraph and settle its exact query complexity in both the unweighted and deterministic settings.

For hypergraphs, we show cut queries alone cannot achieve o(n)o(\sqrt{n})-approximation for Densest Subhypergraph or o(n)o(n)-approximation for Densest k-Subhypergraph, regardless of the number of queries. Augmenting cut queries with the edge oracle of Chen et al. [ICALP '21], we overcome this barrier for Densest Subhypergraph and obtain a (1+ε)(1+\varepsilon)-approximation on rank-r hypergraphs using O(nrlog⁡n/ε2)O(nr \log n/\varepsilon^2) queries. We also extend our Densest k-Subgraph hardness results to hypergraphs and prove exponential query lower bounds for exact Densest k-Subhypergraph. Lastly, confirming a conjecture of Chakrabarty and Liao [ESA '26], we show that simulating an add query using cut and is-edge 2^2 queries requires exponentially-many queries.

1 Introduction

In the cut query model, the edges of a graph G=(V,E)G = (V, E) are unknown, but we have access to a cut oracle; upon query cut(S)\text{cut}(S), the oracle returns the number of edges crossing from SS to V∖SV \setminus S. It is known that a graph can be reconstructed using O~(n2)\widetilde{O}(n^2) cut queries 1^1 [19], which is tight by a simple information theoretic argument. Recently, Rubinstein et al. [35] introduced this setting as a computational model for algorithms, circumventing the quadratic barrier for graph reconstruction and solving the global and ss-t Min Cut problems in O~(n)\widetilde{O}(n) and O~(n5/3)\widetilde{O}(n^{5/3}) cut

Authors listed in alphabetical order. PNNL Information Release PNNL-SA-228134.

∗^{*}This work was done while the author was an intern at the Pacific Northwest National Laboratory.

1^{1}Throughout, we let O~(⋅)\widetilde{O}(\cdot) hide polylog(n) factors. Similarly, we use Oε(⋅)O_{\varepsilon}(\cdot) hide poly( ε−1\varepsilon^{-1}) factors.

queries, respectively. There has been a subsequent flurry of work further exploring connectivity and cut problems in the cut query model [1, 3, 5, 10, 21, 23, 24, 29, 31, 33, 25].

Much less is known about hypergraphs in the query model. While cut queries yield O(n)O(n)- and O~(n2)\widetilde{O}(n^2)-query algorithms for connectivity [11] and Min Cut [32], respectively, there are also clear limitations to cut's effectiveness on hypergraphs. Chen et al. [14] identify a pair of hypergraphs sharing the same cut profile, making them indistinguishable to an algorithm equipped only with cut queries. The authors then prove that polynomially-many cut queries are insufficient to construct a cut-sparsifier, which is a key building block for cut query algorithms on graphs. To circumvent this barrier, Chen et al. introduce an edge oracle that returns a random hyperedge crossing the queried cut; using both cut and edge queries, they are able to construct (1±ε)(1 \pm \varepsilon)-approximate cut-sparsifiers for hypergraphs in poly(n,ε)\text{poly}(n, \varepsilon) queries. In addition to their connectivity algorithm, Chakrabarty and Liao [11] further explored the power and limitations of cut queries, identifying that hyperedge parity is a barrier to hypergraph reconstruction and giving an algorithm to learn 'even' rank-r hypergraphs using O(log⁡n)O(\log n) cut queries per hyperedge when r=O(1)r = O(1).

While connectivity and minimum cut problems provide a natural starting point for research on the cut query model, other graph problems remain underexplored. In this work, we begin a systematic study of the query complexity of densest subgraph problems. For the Densest Subgraph problem (DSG), the goal is find a subset of vertices S maximizing the ratio of edges to vertices within the induced subgraph G[S]. DSG is a natural problem to consider as a next step in studying the cut query complexity of (hyper)graph problems. Although more complex than connectivity and minimum cut problems, DSG still has many well-known polynomial-time algorithms and approximations in classical settings (see [28] for a detailed survey of algorithmic results and applications).

In particular, we will consider a line of work on DSG in the streaming model, initiated by the iterative peeling algorithm of Bahmani et al. [4]. By removing all vertices of degree less than 2(1+ε)2(1+\varepsilon) times the current density, they achieve a (2+ε)(2+\varepsilon)-approximation for DSG in O(log⁡1+εn)O(\log_{1+\varepsilon}n) rounds over the graph. Since we can learn induced degrees in O(1)O(1) cut queries, this algorithm can be implemented in the query model, as shown in Section B.2.

Proposition 1. Let G=(V,E)G = (V, E) be a weighted graph. There is a deterministic algorithm that makes O(n/ε)O(n/\varepsilon) cut queries and returns a (2+ε)(2 + \varepsilon)-approximation to the densest subgraph of GG.

Following this peeling result, two works independently discovered that uniformly sparsifying an unweighted graph down to O(nlog⁡n/ε2)O(n \log n / \varepsilon^2) edges preserves densest subgraphs up to a (1±ε)(1 \pm \varepsilon) factor [16, 30], giving single-round streaming algorithms. As a random edge can be sampled with O(log⁡n)O(\log n) cut queries, Cohen-Addad et al. [15] observe that this result also generalizes to the query model. 2^2

Proposition 2. Let G=(V,E)G = (V, E) be a simple graph. There is a randomized algorithm that makes O(nlog⁡2n/ε2)O(n \log^2 n / \varepsilon^2) cut queries and returns a (1+ε)(1 + \varepsilon)-approximation to the densest subgraph of GG.

More generally, Esfandiari et al. [16] prove that uniform sparsification gives approximations for heavy subgraph problems, a family of problems also including Densest Bipartite Subgraph, d-Max Cut, and d-Sum-Max Clustering.

We also study the related Densest k-Subgraph problem (DkS), where one must find a subgraph of cardinality k with the most edges. Unlike Densest Subgraph, DkS is NP-hard and quite hard to approximate; it is known that DkS does not admit a PTAS under various complexity assumptions [17, 26, 34], and it is conjectured that the best-known O(n1/4+ε)O(n^{1/4+\varepsilon})-approximation of [7] is optimal.

2^{2}In [15], they show that cut comparison queries suffice to construct a random sampler in unweighted graphs.

References (31)