arXiv:2610.40844cs.DSOct 2026

Manuscript Offprint

arXiv:2610.40844

Stochastic Minimum Spanning Tree Identification with Binary Weights

Haya Diwan, Lisa Hellerstein, Sanjeev Khanna, Junkai Song

Abstract

We introduce the Stochastic MST Identification Problem, with binary weights. In this problem, we need to identify a minimum spanning tree (MST) of a graph, each of whose edge weights is either 0 or 1. The weight of each edge ee is a random variable which is 1 with probability pep_e and 0 with probability 1−pe1 - p_e. The probability pep_e is given for each edge ee, but the realized weight of an edge can only be determined by querying the edge. The problem is then to determine a strategy for querying the edges of the graph that minimizes the expected number of queries that need to be performed until we can identify a subset of edges that form an MST of the graph. We address both adaptive and non-adaptive versions of this problem. For the non-adaptive version of our Stochastic MST Identification problem, we give an O(log⁡E)O(\log E)-approximation algorithm via a reduction to submodular ranking. For the adaptive version, we show that solving the problem is trivial when all pep_e are equal to 1/21/2, because of a relation to the Tutte polynomial. However, computing the expected cost of an optimal querying strategy is #P-hard, even when all pep_e equal 12\frac{1}{2}. For arbitrary pep_e values, we present a constant-factor approximation algorithm for simple planar graphs. We investigate the question of whether the submodular goal value approach of Deshpande et al. could be used to achieve a log-factor approximation algorithm that would work for arbitrary pep_e values and general graphs. In this context, we address the structural question of determining optimal submodular goal values for MST identification in graphs.

*Department of Computer Science and Engineering, New York University, USA. Email: hd2371@nyu.edu. †Department of Computer Science and Engineering, New York University, USA. Email: lisa.hellerstein@nyu.edu. ‡Department of Computer Science, Courant Institute, New York University, USA. Supported in part by NSF award CCF-2625203 and AFOSR award FA9550-25-1-0107. Email: sanjeev.khanna@nyu.edu. §Department of Computer Science, Courant Institute, New York University, USA. Supported in part by NSF award CCF-2625203. Email: junkaisong@nyu.edu.

1 Introduction

Consider the general problem of identifying a minimum-weight spanning tree (MST) in an uncertainty graph. In such a graph, the weights of the edges are not initially known. For each edge ee, we are guaranteed that its weight wew_e is a member of a given uncertainty set AeA_e. But we can only determine the actual value of wew_e by asking a query. Querying must continue until enough information is obtained to identify the edges of a minimum spanning tree (MST) of the graph. However, it is not necessary to discover the weight of the MST.

The problem of identifying an MST with queries under uncertainty was introduced by Erlebach and Hoffmann [21] in an online adversarial setting, where querying is done adaptively and the goal is to minimize the worst-case competitive ratio against the optimal offline MST Verification cost. Erlebach and Hoffmann [12] also introduced the study of the offline MST Verification problem. It takes as input the uncertainty sets AeA_e and the exact edge weights wew_e, and the goal is to identify a min-cost set of queries verifying an MST. Querying all edges in this set certifies an MST of the graph regardless of the values of the unqueried edges.

In this paper, we introduce the study of the MST identification problem in the stochastic setting, where the weight wew_e of each edge is drawn independently from a given probability distribution on AeA_e. The goal in this setting is to develop a query strategy that minimizes the expected cost of the performed queries.

We focus on the fundamental binary weight case, where each wew_e is either 0 or 1 (equivalently, Ae={0,1}A_e = \{0,1\}). For each edge ee, we have pe=P[we=1]p_e = P[w_e = 1]. We set each query to have unit cost, so the goal is to minimize the expected number of queries. We call this the Stochastic MST Identification problem with binary weights, or the MST-ID problem, for short.

We note that in the online adversarial setting, the binary weight case is not interesting, because it is not possible to achieve sublinear competitive ratio [21]. However, as shown recently by Diwan et al. [9] in the verification setting the binary case is interesting and non-trivial, because different MSTs of the same uncertainty graph can have different optimal verification costs [9].

We consider both adaptive and non-adaptive versions of the MST-ID problem. In the non-adaptive version, we only allow non-adaptive query strategies. These are represented by a permutation of the edges; queries must be performed in the order specified by the permutation until enough information is obtained to identify an MST of the graph. In the adaptive version, we allow adaptive query strategies, which correspond to decision trees.

The adaptivity gap for the MST-ID problem is large; it can easily be shown using arguments from [19] that there are instances for which the expected number of queries of the best non-adaptive strategy is Ω(n)\Omega(\sqrt{n}) times larger than that of the best adaptive strategy.

Our work leaves open the question of whether the adaptive and non-adaptive versions of the MST-ID problems are NP-hard. It is unclear whether resolving this question will require new techniques. We note that there are a number of other stochastic probing problems whose NP-hardness remains open, most notably the SBFE problem for read-once Boolean formulas, which has been studied since the 1970's (cf. [32, 33]).

We do show that for the adaptive version of MST-ID, computing the expected cost of the optimal strategy is #P-hard. This holds even in the special case where all pep_e are equal to 1/21/2. In contrast, as discussed below, the adaptive MST-ID problem itself has an easy polynomial-time algorithm in this special case. Our main algorithmic results are as follows.

Non-adaptive MST-ID We give a polynomial-time O(log⁡E)O(\log E)-approximation algorithm for the non-adaptive MST-ID problem. This algorithm is based on an approach recently used in [4], which involves reducing a non-adaptive stochastic probing problem to the problem of Submodular Ranking. To apply this approach to MST-ID, we construct, for each realization α∈{0,1}E\alpha \in \{0,1\}^E of the edge weights, a corresponding monotone submodular goal function gα:2E→{0,1,2,…,Qα}g_\alpha: 2^E \to \{0,1,2,\ldots,Q_\alpha\} such that QαQ_\alpha is polynomial in ∣E∣|E| for all α\alpha.

Adaptive MST-ID For the adaptive version of the MST-ID problem, we begin by showing that in the special case where all pep_e are equal to 1/21/2, the problem is very easy. It follows from a relation to the Tutte polynomial that in this special case, it is optimal to query the edges in any order, provided that “useless” queries are skipped.

However, for arbitrary pep_e, the adaptive version of the MST-ID problem appears to be much more challenging. As part of addressing it, we consider the corresponding adaptive MST Weight Determination problem (MST-WD), where the goal is not just to identify the MST, but also to determine its weight. We note that because weights are binary, the problem of computing the weight of an MST of the graph is equivalent to the problem of computing the number of connected components of the subgraph consisting of the weight 0 edges.

We show that the adaptive MST-WD problem has an easy exact algorithm. Further, we show that on simple planar graphs, that algorithm gives a constant-factor approximation for the adaptive MST-ID problem.

If all pep_e are greater than 1/21/2 (symmetrically, all are less than 1/21/2), then performing queries in increasing (decreasing) pep_e order and skipping “useless” queries is a 2-approximation algorithm.

We leave as an open question whether there is a polynomial-time approximation algorithm that achieves a non-trivial approximation factor on general graphs with arbitrary probabilities.

In addition to the above algorithmic results, we also consider related questions about sub-modular goal value. As discussed above, the approach we use to achieve our polynomial-time O(log⁡E)O(\log E) approximation algorithm for the non-adaptive MST-ID problem is based on a reduction to Submodular Ranking. This approach is only suitable for non-adaptive problems. An analogous approach, used by Deshpande et al. for Stochastic Boolean Function Evaluation (SBFE) problems [6], is suitable for adaptive problems. It is based on a reduction to Stochastic Submodular Cover.

Using this analogous approach to achieve a logarithmic approximation algorithm for adaptive MST-ID requires the construction of a state-dependent monotone submodular goal function f:{0,1,∗}E→{0,1,2,…,Q}f: \{0,1,*\}^E \to \{0,1,2,\ldots,Q\} where QQ is polynomial in ∣E∣|E|. In contrast to the functions gαg_\alpha constructed for the non-adaptive problem, which can be different for each realization α\alpha, this is a single function whose domain is the set of all partial realizations of the weights of the edges in EE. This gives rise to the structural question: does such a single function exist? Or phrased another way: is there a monotone submodular goal function for this problem that has polynomial goal value?

We do not resolve this question, but we give related preliminary results and observations. Here we note that the same question has previously been considered in the context of SBFE problems, where the goal is evaluation of a Boolean function [2]. In that context, the answer was shown to be “no” for certain Boolean functions. The proof was implicitly based on showing an exponential lower bound on goal value for one of the gαg_\alpha for the non-adaptive problem. However, as discussed above, for MST identification we have shown that for every α\alpha, there is a gαg_\alpha with polynomial goal value. Thus proving exponential lower bounds on goal value for MST identification would require new techniques.

References (32)