arXiv:2610.06053cs.DSOct 2026

Manuscript Offprint

arXiv:2610.06053

Improved Sublinear Algorithms for Maximal Independent Set and Metric Steiner Forest

Sepideh Mahabadi, Jakub Tarnawski

Abstract

In this work we consider the Maximal Independent Set (MIS) problem and the metric Steiner Forest problem in the sublinear time setting, under the adjacency/distance matrix query model. First, we give an algorithm that estimates the size of an MIS up to a multiplicative factor of (1+ε)(1 + \varepsilon) using O~(n4/3/ε2)\widetilde{O}(n^{4/3}/\varepsilon^{2}) queries. This improves the best previous algorithm by Mahabadi, Roghani, Tarnawski, and Vakilian (SODA 2026), which had a query complexity of O~(n3/2/ε2)\widetilde{O}(n^{3/2}/\varepsilon^{2}).

Via a reduction from that work, this would automatically imply the same improvement for the problem of estimating the metric Steiner Forest cost up to an O(log⁡n)O(\log n) factor. However, as our second contribution, we consider the Steiner Forest problem directly and provide an algorithm with O~(n)\widetilde{O}(n) query complexity that is very simple and does not proceed via MIS.

1 Introduction

Sublinear time algorithms form an active research area, motivated by settings where problem instances are so large that one cannot afford to read the entire input. There is by now a large body of work on sublinear time algorithms for graph problems, including minimum spanning tree (MST) [CRT05], maximal independent set (MIS) [YYI09], matching [YYI09, KMNFT20, Beh21, BRR23b, BRRS23, BKS23a, ABRR25, MRT25, BRR24, BRR23a, BKS23b], metric MST [CS09], metric Steiner Tree [CKT23a, MRTV25], and metric TSP [CKK20, CKT23b, BRRS24]. Sublinear algorithms are given oracle access to the input. Two oracle models are standard for graph problems. In the adjacency list oracle, a query (v,i)(v, i) with v∈Vv \in V and i≤ni \leq n returns the ii-th neighbor of vv (together with the weight of the corresponding edge in the weighted case), or NULL if vv has fewer than ii neighbors. In the adjacency matrix oracle, a query (u,v)(u, v) with u,v∈Vu, v \in V returns whether (u,v)(u, v) is an edge (again with its weight in the weighted case). In this work we consider the adjacency matrix model.

Maximal Independent Set. An independent set of a graph G=(V,E)G = (V, E) is a set of vertices with no edges between them, and it is maximal (an MIS) if no further vertex can be added to it, i.e., if every vertex outside the set has a neighbor inside it. While computing a maximum independent set is NP-hard to approximate within a factor of n1−εn^{1-\varepsilon} [Has96, Zuc06], a maximal one is trivial to produce in linear time by a single greedy scan of the vertices.

MIS is a basic problem that has been studied as a problem in its own right, in various computational models such as distributed and parallel [Lub85, ABI86, BFS12, Gha16, FN19, GH21],

Massively Parallel Computing [LMSV11, BFU18, Ona18, GGK +^{+}18, GU19, GGJ20], Local Computation Algorithms [NO08, YYI09, RTVX11, ARVX12, RV16, LRY17, Gha22], or dynamic [BDH +^{+}19, AOSS19, CZ19]. It has also been used as a building block in algorithms for other fundamental problems, such as matching and vertex cover [YYI09, ORRR12, Beh21], or correlation clustering [ACN05, BCMT22, DMM24].

Sublinear MIS. An MIS cannot be found explicitly in sublinear time 1^{1}, so the algorithmic task becomes that of estimating the size of an MIS, or of designing an oracle that decides efficiently whether a given vertex belongs to one fixed MIS.

Nguyen and Onak [NO08] initiated the study of sublinear MIS. They introduced the highly influential random-greedy maximal independent set (RGMIS) notion: fix a permutation π\pi of VV, scan the vertices in the order π\pi, and add a vertex to RGMIS( π\pi) whenever none of its already-scanned neighbors was added. This process comes with a natural recursive oracle: to decide whether v∈RGMIS(π)v \in \text{RGMIS}(\pi), recurse on the neighbors of vv that precede it in π\pi, and answer yes iff none of them is in. Yoshida, Yamamoto and Ito [YYI09] showed that if one queries the earlier neighbors in increasing order of rank, then for a random permutation and a random query vertex, the oracle makes only O(Δ)O(\Delta) recursive calls in expectation, where Δ\Delta is the maximum degree of the graph. However, this only gives the answer for a single query vertex, and for dense graphs it does not directly yield a truly sublinear time algorithm. Very recently, the first sublinear algorithm for MIS size estimation was obtained by Mahabadi, Roghani, Tarnawski, and Vakilian [MRTV26]: they gave a purely multiplicative (1+ε)(1 + \varepsilon)-approximation of ∣RGMIS(π)∣|\text{RGMIS}(\pi)| running in O~(n3/2/ε2)\widetilde{O}(n^{3/2}/\varepsilon^{2}) time.

First contribution. Our first result speeds up MIS size estimation from O~(n3/2)\widetilde{O}(n^{3/2}) to O~(n4/3)\widetilde{O}(n^{4/3}). As in [MRTV26], the object we estimate is the size of a random-greedy maximal independent set.

Theorem 1.1 (MIS size estimation). For every ε∈(0,1)\varepsilon \in (0,1) there is a randomized algorithm that, given a graph G=(V,E)G = (V, E) on nn vertices with oracle access to its adjacency matrix, outputs a number M^\widehat{M} and a permutation π\pi of VV such that, with high probability,

∣RGMIS(π)∣≤M^≤(1+ε)∣RGMIS(π)∣,|\mathrm{RGMIS}(\pi)|\leq\widehat{M}\leq(1+\varepsilon)|\mathrm{RGMIS}(\pi)|,

and runs in O~(n4/3/ε2)\widetilde{O}(n^{4/3}/\varepsilon^{2}) time. (The algorithm does not list RGMIS( π\pi).)

The speed-up rests on pre-solving a random prefix of the greedy order (Section 2). Running greedy on the first LL vertices costs only O(L2)O(L^{2}) probes, because – unlike [MRTV26] – we do not cross off the vertices that the prefix solution kills beyond the prefix. The price is that the residual graph carrying the rest of the MIS is never materialized, and has to be handled implicitly. What makes that implicit graph tractable is that pre-solving the prefix sparsifies it, leaving every surviving vertex with residual degree only O~(n/L)\widetilde{O}(n/L). Moreover, a relative form of the same bound covers the vertices that did not survive, so that the more oracle traffic such a vertex receives, the cheaper it becomes to certify that it was discarded. Balancing the two effects at L=n2/3L = n^{2/3} gives O~(n4/3)\widetilde{O}(n^{4/3}). We give a further high-level explanation in Section 2.1.

The work of [MRTV26] uses the sublinear MIS result to get a sublinear time algorithm for the metric Steiner Forest defined shortly. As a direct corollary of our MIS result, its runtime is improved from O~(n3/2)\widetilde{O}(n^{3/2}) to O~(n4/3)\widetilde{O}(n^{4/3}).

Corollary 1.2. Plugging Theorem 1.1 into the reduction of [MRTV26] gives an O(log⁡n)O(\log n)-approximation for metric Steiner Forest in O~(n4/3)\widetilde{O}(n^{4/3}) time, with high probability.

1^{1}Take a graph with a single edge, placed on a uniformly random pair of vertices. Any MIS must exclude one of its two endpoints, so locating that edge is unavoidable, and this requires Ω(n2)\Omega(n^{2}) queries in the adjacency matrix model.

We note that we further improve this runtime below.

Steiner Forest. In the Steiner Forest problem we are given a weighted undirected graph G=(V,E,w)G = (V, E, w) with w:E→R≥0w : E \to \mathbb{R}_{\geq 0} together with a set of kk terminal (or demand) pairs T={(s1,t1),…,(sk,tk)}T = \{(s_1, t_1), \ldots, (s_k, t_k)\}, and we must find a subgraph of minimum total weight in which every pair (sj,tj)(s_j, t_j) is connected. The problem generalizes Steiner Tree and is therefore APX-hard [CC08]. It has been studied for decades [AKR95, GW95, GK15], and very recently [AGH +^{+}25, GT26] improved the long-standing approximation factor of 2.

Sublinear Steiner Forest. Here the input is a metric space (V,d)(V, d) on nn points, presented as an n×nn \times n distance matrix that the algorithm can query, together with the kk demand pairs; the aim is to estimate the optimal Steiner Forest cost OPT using far fewer than the (n2)\binom{n}{2} queries needed to read the whole metric. Two features of the model are inherent. First, the metric assumption is essential: for general distances, even a rough estimate of the minimum spanning tree weight requires Ω(n2)\Omega(n^2) queries [MRTV26]. Second, one can only hope to estimate the optimal value: producing an actual near-optimal forest, or even a spanning tree, already forces Ω(n2)\Omega(n^2) queries [Ind99].

Sublinear Steiner Forest was studied recently by Mahabadi, Roghani, Tarnawski, and Vakilian [MRTV26], who gave an O(log⁡k)O(\log k)-approximation running in O~(n3/2)\widetilde{O}(n^{3/2}) time.

Second contribution. The existing sublinear algorithms for Steiner Forest ([MRTV26] and Corollary 1.2) proceed via a reduction to MIS. It is natural to ask whether this is necessary. Our second result shows that the optimal Steiner Forest cost can be estimated with the same O(log⁡k)O(\log k) approximation in near-linear time by a short reduction to metric minimum spanning tree estimation, for which it invokes the algorithm of Czumaj and Sohler [CS09].

Theorem 1.3 (Steiner Forest). There is a randomized algorithm that, given oracle access to the distance matrix of an n-point metric space and a list of k demand pairs, outputs with high probability an O(log⁡k)O(\log k)-approximation of the Steiner Forest cost, in O~(k)\widetilde{O}(k) time.

The running time is optimal up to logarithmic factors, as it is easy to see that no meaningful approximation is possible in o(k)o(k) time.

We give a high-level overview of the idea in Section 2.2.

Concurrent work. In concurrent and independent work, Kiss and Kooroshnezhad [KK26] obtained a (1+ε)(1+\varepsilon)-approximation to the size of a random-greedy MIS in the adjacency matrix model in O~(n4/3/ε2)\widetilde{O}(n^{4/3}/\varepsilon^{2}) time. Via the reduction of [MRTV26], this also gives an O(log⁡k)O(\log k)-approximation for metric Steiner Forest in O~(n4/3)\widetilde{O}(n^{4/3}) time, as in Corollary 1.2. Their algorithm follows a similar high-level strategy to ours: it partially computes a random-greedy MIS and then simulates the oracle of [YYI09] on the implicit residual graph. Their preprocessing stops after Θ(n4/3)\Theta(n^{4/3}) queries, whereas ours processes a fixed-length prefix. To test whether a vertex is dominated, they inspect the partial MIS in greedy order; their analysis applies the residual maximum-degree bound of [BDH+19][BDH^{+}19] at exponentially increasing sizes of the partial MIS. We instead inspect the prefix MIS in a fresh random order and use the relative-degree bound of Lemma 3.3. They additionally give an application to bi-criteria metric k-center estimation. On the other hand, they do not consider Steiner Forest beyond the MIS-based reduction; our Theorem 1.3 bypasses MIS altogether and achieves O~(k)\widetilde{O}(k) time.

References (49)