Abstract 1 Introduction 2 Preliminaries 3 Computing an MWB that has a Minimum-Cost Certificate 4 Computing a Minimum-Cost Certificate to Verify a Given Basis 5 Applications References

Optimal Verification of a Minimum-Weight Basis in an Uncertainty Matroid

Haya Diwan ORCID Department of Computer Science and Engineering, New York University, NY, USA Lisa Hellerstein ORCID Department of Computer Science and Engineering, New York University, NY, USA Nicole Megow ORCID Faculty of Mathematics and Computer Science, University of Bremen, Germany Jens Schlöter ORCID Centrum Wiskunde & Informatica (CWI), Amsterdam, The Netherlands
Abstract

Research in explorable uncertainty addresses combinatorial optimization problems where there is partial information about the values of numeric input parameters, and exact values of these parameters can be determined by performing costly queries. The goal is to design an adaptive query strategy that minimizes the query cost incurred in computing an optimal solution. Solving such problems generally requires that we be able to solve the associated verification problem: given the answers to all queries in advance, find a minimum-cost set of queries that certifies an optimal solution to the combinatorial optimization problem. We present a polynomial-time algorithm for verifying a minimum-weight basis of a matroid, where each weight lies in a given uncertainty area. These areas may be finite sets, real intervals, or unions of open and closed intervals, strictly generalizing previous work by Erlebach and Hoffman which only handled the special case of open intervals. Our algorithm introduces new techniques to address the resulting challenges.

Verification problems are of particular importance in the area of explorable uncertainty, as the structural insights and techniques used to solve the verification problem often heavily influence work on the corresponding online problem and its stochastic variant. In our case, we use structural results from the verification problem to give a best-possible algorithm for a promise variant of the corresponding adaptive online problem. Finally, we show that our algorithms can be applied to two learning-augmented variants of the minimum-weight basis problem under explorable uncertainty.

Keywords and phrases:
Matroid verification, minimum-weight basis, query strategy, uncertainty matroid, explorable uncertainty
Funding:
Haya Diwan: Partially supported by National Science Foundation (NSF) Grant no. 1909335.
Lisa Hellerstein: Partially supported by National Science Foundation (NSF) Grant no. 1909335.
Nicole Megow: Supported by the Deutsche Forschungsgemeinschaft (DFG) Grant no. 547924951.
Jens Schlöter: Supported by the research project Optimization for and with Machine Learning (OPTIMAL), funded by the Dutch Research Council (NWO), Grant no. OCENW.GROOT.2019.015.
Copyright and License:
[Uncaptioned image] © Haya Diwan, Lisa Hellerstein, Nicole Megow, and Jens Schlöter; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithms
Related Version:
Full Version: https://arxiv.org/abs/2512.17116 [4]
Editors:
Meena Mahajan, Florin Manea, Annabelle McIver, and Nguyễn Kim Thắng

1 Introduction

Consider the problem of finding a minimum-weight basis (MWB) of a matroid, under uncertainty. We consider a weighted matroid M=(E,,w), where each element eE has a weight we that is known to be contained within a given range, called an uncertainty area Ae. The exact value of we can be obtained by performing a query on element e that incurs a non-negative cost of ce. The problem is to determine an MWB while minimizing the total query cost. In the special case where M is the graphic matroid of a connected graph, so the bases of M correspond to spanning trees, this is the minimum spanning tree (MST) problem under uncertain edge weights. This was one of the earliest studied problems in explorable uncertainty, motivated by network design: spanning trees capture fundamental connectivity tasks, and uncertainty areas naturally model edge weights known only within ranges, such as costs, latencies, or capacities.

The verification version of the MWB problem under uncertainty is an offline problem that, given access to both the uncertainty areas Ae and the exact weights we, seeks a minimum-cost set of queries for verifying some minimum-weight basis of M. More particularly, these queries and their answers, together with the uncertainty areas for all elements eE not queried, would be sufficient to determine an MWB of M.

To illustrate the MWB verification problem, consider the special case of a graphic matroid of a connected graph G. The elements of this matroid are the edges in G, the independent sets are the cycle-free edge sets, and an MWB is an MST. Figure 1 shows three uncertainty graphs with different types of intervals as their uncertainty areas, and their corresponding minimum-cost query sets, assuming unit query cost per edge.

Figure 1: Let T (blue) be an MST of the given graph. The figure shows the minimum-cost query sets for instances with different types of uncertainty intervals: open (0,1), closed [0,1], or mixed. Edge labels indicate (name, interval, weight), and each query has unit cost. The corresponding minimum-cost query sets are Q={e1,e2,e3} (open), Q={e2,e3} (closed), and Q= (mixed).

Our main result is a polynomial-time algorithm for this verification problem, producing both a minimum-cost verification set (we also say certificate), and an associated MWB B, for uncertainty areas that are a finite union of intervals. Each of these intervals can be open or closed. Note that this includes the case where each uncertainty area is a finite set of discrete values. For example, {0,1} is equivalent to [0,0][1,1].

In addition to being an interesting combinatorial problem in its own right, the verification problem is fundamental to solving variants of the online MWB problem in settings beyond the worst-case, such as stochastic settings and adversarial learning-augmented variants. In the stochastic setting, each weight we is assumed to be drawn from a known probability distribution, and the goal is to minimize the expected query cost. The verification problem can be viewed as either an analog or a special case of such a stochastic formulation, where each distribution has support of size 1, but an element e still must be queried in order to “use” the value we. At the same time, our results have direct consequences for variants of the adversarial adaptive online problem: in Section 5 we use insights from the verification problem to obtain new results for a variant of the online adaptive MWB problem, and show how it provides a foundation for learning-augmented algorithms. Thus, verification serves both as a crucial first step toward stochastic formulations and as a direct tool for online problems under uncertainty.

A special case (in two senses) of our verification problem was studied before by Erlebach and Hoffman [8]. They considered finding the MST of a graph under weight uncertainty, with uncertainty areas that are either open intervals, i.e., Ae=(Le,Ue), or trivial, i.e., Ae={we} (meaning the weight of e is given). They gave an efficient algorithm that computes an optimal solution.

From a technical standpoint, handling uncertainty areas that are closed intervals and finite sets, as we do in our work, posed new challenges and required new techniques as well as structural insights. We discuss differences and challenges in more detail below.

1.1 Related Work

Verification problems.

In the context of verifying optimal structures under uncertainty, the above-mentioned polynomial-time algorithm of Erlebach and Hoffman [8], for MST verification with open and trivial uncertainty areas, stands out as a notable exception in terms of computational complexity. In contrast, other verification problems are known to be NP-hard and even inapproximable. For instance, verification is NP-hard for identifying the set of maximal points under geometric uncertainty [3], and for selecting the cheapest set from a collection of sets with elements of uncertain weight [9]. The latter is even NP-hard to approximate within a factor of o(logm), where m is the number of sets [19]. Recently, verification for knapsack under explorable uncertainty was shown to be Σ2p-complete [23].

Online algorithms.

The line of research on exploring uncertain numerical values under query costs was initiated by Kahan [14], who studied problems such as identifying the minimum or k-th smallest value from a set of uncertain values. Since then, many problems have been investigated [5], mainly in an adaptive online setting, where queries can be performed sequentially based on prior outcomes. The goal is to minimize the worst-case competitive ratio, comparing the total cost of an online algorithm to the minimum-cost of a verification set. Favorable constant (and often matching) upper and lower bounds are known for selection-type problems [14, 10], MST and matroid bases [13, 18, 21] and sorting [12]. However, strong lower bounds have been shown for more complex problems such as cheapest set [9], knapsack, matchings, linear programming [20], which rule out any constant competitive ratio.

The online adaptive MWB problem under uncertainty was studied by Erlebach et al. [9] for open and trivial intervals. They gave a deterministic algorithm with a best-possible competitive ratio of 2. This result extended earlier work [13] on finding the MST in a graph with the same types of uncertainty areas. Subsequently, Megow et al. gave a randomized algorithm with an improved bound of 1.707 for the online versions of both MST and MWB problems, again with open and trivial intervals [18]. In [17], Mathwieser and Çela gave improved randomized algorithms for special cases of the problem. Note that it is crucial to omit closed intervals in this online setting as otherwise no constant competitive ratio is possible [13].

In contrast to the above, non-adaptive online variants have received little attention, with the notable exception of the work of Merino and Soto [21]. They gave an algorithm that computes a minimum-cost ‘universal’ set of queries that can be used to find an MWB of an uncertainty matroid, assuming no prior knowledge of any of the actual element weights. Their algorithm, like ours, allows for uncertainty areas that are finite unions of bounded real intervals that can be either open or closed. However, they require a query set to be a certificate for every weight vector w such that weAe for all elements e, while the verification problem requires that it be a certificate only for the given weights we. Because of the stronger requirements, the minimum-cost certificate for their problem can have significantly higher cost. In fact, using their algorithm for the verification problem (ignoring access to the weights we) only yields an n-approximation for uniform query costs and an unbounded approximation factor for general query costs (cf. discussion in full version [4]). Thus using the given weights we is crucial to optimally solving the verification problem.

Beyond-worst-case models and the relevance of verification methods.

The strong lower bounds for more complex problems suggest that the adversarial online model may be overly pessimistic. This has motivated the study of beyond-worst-case approaches in the context of explorable uncertainty, such as stochastic models [1, 2, 19], where query outcomes are drawn from (possibly unknown) probability distributions, and learning-augmented frameworks [6, 7], where algorithms have access to imperfect predictions of the actual weights. In all of these works, a solid understanding of the corresponding verification problem was fundamental to the design and analysis of algorithms.

1.2 Our Results

We give a polynomial-time algorithm that solves the MWB verification problem, producing both a minimum-cost verification set (a certificate) and an associated MWB, for uncertainty areas that are a finite union of bounded intervals. Each interval can be either open or closed.

Figure 2: Let T (blue) and T (red) be MSTs of the same uncertainty graph. Edge labels show (name, interval, weight), and all queries have unit cost. While both are MSTs, T has a cheaper minimum-cost query set, Q={e3,e4}, compared to T with Q={e1,e3,e4}.

Our algorithm has two phases, motivated by a key difference from the verification problem for open intervals: If uncertainty areas contain closed intervals, the cost of verification may vary across MWBs; see Figure 2. In contrast, for open intervals, all MWBs have the same minimum verification cost111This fact is only implicit in previous works [8, 7]. However, it is also a corollary of our results in Section 3.. This raises a natural question for general uncertainty areas: Can we efficiently identify an MWB whose minimum verification cost is as small as possible? (We make the standard assumption that the matroid is given by an independence oracle, and that oracle queries are answered in time polynomial in the number of matroid elements.)

Our first main result answers this question in the affirmative. The first phase of our algorithm is a polynomial-time procedure that identifies an MWB which has minimum possible verification cost (Section 3). Our algorithm is based on carefully designed contraction and deletion rules that allow us to delete and contract extreme case elements, i.e., elements e with we=infAe or we=supAe, while maintaining the invariant that there exists an MWB consistent with the deletions and contractions having minimum possible verification cost. As a corollary, we show that, for uniform query costs and uniform areas Ae={L,U} with L<U (i.e., each we is either equal to L or U), all MWBs have the same minimum verification cost.

In the second phase (Section 4), our algorithm efficiently computes a minimum-cost certificate to verify a given MWB. Together, the two phases of our algorithm yield a polynomial-time algorithm for our MWB verification problem.

Motivating the second phase, we give a full structural characterization of certificates for verifying an MWB. In contrast to previous work, we have to carefully handle extreme case elements. Intuitively, the presence or absence of such elements can make a huge difference for the certificates. For example, if we want to find an element of maximum weight in a set of elements with identical uncertainty areas, then querying a single element e with we=supAe is sufficient to identify an element of maximum weight, whereas the absence of extreme case elements forces us to query all elements. Based on our certificate characterization, we compute a minimum-cost certificate by solving a minimum-weight vertex cover problem in a bipartite auxiliary graph; this technique has also been used in previous work [8, 18, 7, 6, 1]. We remark that our results imply an alternative, arguably simpler, algorithm for the verification problem with open intervals (and other special cases where all MWBs have the same verification cost): Fix any MWB and run the algorithm’s second phase.

Finally, in Section 5, we use insights from the second phase of our verification algorithm to give new results for the online adaptive MWB problem with general uncertainty areas. For open uncertainty intervals, the competitive ratio of the online adaptive MWB problem is 2 [13]. If closed uncertainty areas are allowed, the competitive ratio increases to n [11]. We show that the competitive ratio of 2 can be recovered in a promise variant of the online MWB problem with general uncertainty areas, where the algorithm is given an MWB and only has to verify this MWB. This shows that the increase in the competitive ratio from open to general uncertainty areas stems from the algorithm’s task of finding rather than merely verifying an MWB B. Based on this insight, we design a learning-augmented algorithm for a setting where algorithms have access to an untrusted prediction of an MWB.

2 Preliminaries

We assume familiarity with matroids and only briefly define basic concepts and notation. For a comprehensive introduction, see Schrijver’s book [24]. Readers might find it helpful to keep the graphic matroid and the MST problem on a connected graph in mind. For a set X and an element e, we use the short notation X+eX{e} and XeX{e}.

2.1 Matroid Basics

A matroid is a non-empty, downward-closed set system (E,) with element set E and a family of subsets 2E, which satisfies the augmentation property: if I,J and |I|<|J|, then I+e for some eJI.

Given a matroid M=(E,), a set IE is called independent if I, and dependent otherwise. We refer to the elements of M by E(M). An inclusion-wise maximal independent subset is called a basis of M. With a matroid M, we associate a rank function r:2E0, where r(X) describes the maximal cardinality of an independent subset of X.

The span of some XE contains all elements that do not increase the rank when added to X, i.e., spanM(X)={eEr(X)=r(X+e)}. If X is a basis and espanM(Xe) for some eX, then the definition of the span implies that Xe+e is a basis.

A circuit C in a matroid M=(E,) is a minimally dependent set, that is, CI whereas C{e}I for each eC. Any independent set I of M and an eE such that I+e is dependent, form a unique circuit CeII+e. This circuit is called the fundamental circuit of e with respect to I. If B is a basis and eCeB for some eB, then the definition of fundamental circuits implies that B=Be+e is also a basis of M.

Given a matroid M=(E,), we obtain a matroid M=(EX,) from M by applying the operations “contraction” and “deletion” for subsets XE. The deletion of X from M yields the matroid M with :={I|IEX,I}. In this paper, we only consider deletions that do not decrease the rank of the matroid, i.e., satisfy r(M)=r(M). Contracting an independent set X in M yields a matroid M with independent sets defined as subsets IEX with IX. A matroid M obtained from M by a series of contractions and deletions is called a minor of M.

We consider weighted matroids M=(E,,w), in which each element eE has an associated weight we. The weight of a basis B of M is w(B)eBwe. We seek a minimum-weight basis (MWB) of M. Note that an MWB of M may not be unique.

2.2 Properties of Bases

Throughout the paper, we use well-known properties to argue that a basis B is an MWB. The propositions follow, e.g., from [15, Thm. 6.1], and the observation is proved in the full version [4].

Proposition 1.

Let B be a basis of the matroid M=(E,,w). If wewe holds for all eB and all eEspanM(Be), then B is an MWB of M.

Proposition 2.

Let B be a basis of the matroid M=(E,,w). If wewe holds for all eEB and all eCeB, then B is an MWB of M.

Observation 3.

Let B be a basis of the matroid M=(E,,w). If C is a circuit of M with eBC, then there is an eCe such that espanM(Be).

2.3 Uncertainty Matroids and Certificates

In an uncertainty matroid, weights we are not known, but we are given uncertainty areas guaranteed to contain them.

Definition 4 (Uncertainty Matroid).

An uncertainty matroid =(E,,A) is a matroid M=(E,) and a function A:E such that for each eE, A(e) is a non-empty finite union of bounded real intervals (either open or closed). We call =(E,,A,w) a weighted uncertainty matroid if =(E,,A) is an uncertainty matroid and w:E is such that we:=w(e)Ae for all eE. We define Ae:=A(e), Le:=infAe, and U(e):=supAe. We call Ae the uncertainty area of e and say e is trivial if Ae consists of the single value we.

Consider the problem of computing an MWB in a weighted uncertainty matroid, where the exact weights are initially unknown but the true weight of an element e can be revealed through a query, which incurs a cost ce0. We are now faced with the problem of determining an MWB at the lowest possible total query cost. We use the notion of certificates, where a certificate is a set QE such that querying Q reveals sufficient information about the uncertain weights in A to identify a basis B that is an MWB, irrespective of the exact weights of the elements not in Q. We make this precise in the definitions below. Note that the formal definition of an uncertainty matroid only specifies uncertainty areas for the matroid elements e, not specific weights we. In what follows, we sometimes identify a weighted uncertainty matroid (E,,A,w) with its associated weighted matroid M=(E,I,w). For example, when we refer to a basis B of (E,,A,w), we mean a basis of M=(E,I,w).

Definition 5 (Consistent weight assignment).

Consider a weighted uncertainty matroid =(E,,A,w). A weight assignment w for is a function w:E such that weAe holds for each eE. We say a weight assignment w for is consistent with Q if it additionally satisfies we=we for each eQ.

Definition 6 (Verification and certificates).

Consider a weighted uncertainty matroid =(E,,A,w). Let B be an MWB of . We say that a certificate Q verifies B if for every weight assignment w for that is consistent with Q (Definition 5), B is an MWB of the weighted matroid M=(E,,w).

Definition 7 (Minimum-cost certificate).

Consider a weighted uncertainty matroid =(E,,A,w). Let 𝒬 be the set of all certificates that verify a basis of . Then, Q𝒬 is a minimum-cost certificate for , if c(Q)eQce is minimal among all certificates in 𝒬.

2.3.1 Characterization of Certificates

To further characterize certificates, define Le(Q)=we if eQ and Le(Q)=Le if eQ. Similarly, define Ue(Q)=we if eQ and Ue(Q)=Ue if eQ. Intuitively, Le(Q) and Ue(Q) denote the upper and lower limits of e after querying the certificate Q.

Lemma 8.

Let B be an MWB of =(E,,A,w). A set QE is a certificate that verifies B if and only if Ue(Q)Lf(Q) for all eB and f(EspanM(Be))e.

Proof.

First, assume Ue(Q)Lf(Q) for all eB and f(EspanM(Be))e. Consider any weight assignment w consistent with Q. Then, for each eB, we have weUe(Q)Lf(Q)wf for all f(EspanM(Be))e. This implies B is an MWB for w, by Proposition 1. Thus Q verifies B by Definition 6.

Next, assume it does not hold that Ue(Q)Lf(Q) for all eB and f(EspanM(Be))e. Let eB and f(EspanM(Be))e be such that Lf(Q)<Ue(Q). Then, there exists a weight assignment w, consistent with Q, such that we>wf. Thus B=Be+f is independent and satisfies w(B)<w(B), and so Q does not verify B by Definition 6.

The lemma implies the following alternative characterization, which we prove in the full version [4].

Corollary 9.

Let B be an MWB of =(E,,A,w). A set QE is a certificate that verifies B if and only if the following property holds for every fB, and the fundamental circuit CfB: for every eCff, Ue(Q)Lf(Q).

2.3.2 Exchange Properties of Certificates

We continue by showing some exchange properties of certificates.

Lemma 10.

Let B be an MWB of =(E,,A,w) and let Q be a certificate that verifies B. Let eB and eB with Ue=Ue=we=we be such that eCe for the fundamental circuit Ce of e with respect to B. Then Q=Qe+e is a certificate for B=Be+e.

Proof.

During this proof, we use Cf to refer to the fundamental circuit of f with respect to B for an fB. To show that Q is a certificate for B, we show for each fB that Lf(Q)Uf(Q) for each fCff. By Corollary 9, this implies Q is a certificate for B.

We distinguish between the two cases (1) f=e and (2) fe.

Case (1):

Assume f=e and consider circuit Ce. Since B=Be+e, we have Ce=Ce. Since Q is a certificate for B with eB, we have weLe(Q)Uf(Q) for all fCee by Corollary 9. For every fCe{e,e}, the membership of f and f in Q and Q is identical, so Uf(Q)=Uf(Q). Since Ce=Ce, eQ and by definition we=we=Ue, this implies Le(Q)=we=weLe(Q)Uf(Q)=Uf(Q) for all fCe{e,e}. Further, Le(Q)=we=UeUe(Q).

Case (2):

Assume fe and consider the circuit Cf. We distinguish two subcases.

  • If (Cff)B, then Cf=Cf and e,eCf. In this case, Lf(Q)=Lf(Q)Uf(Q)=Uf(Q) holds for all fCff by definition of Q and by our assumption that Q is a certificate for B with fB (cf. Corollary 9).

  • If (Cff)B, then we must have eCff. Consequently, fEspanM(Be)=EspanM(Be). Note that we=Ue(Q)=Ue(Q) holds by definition because of we=we=Ue=Ue. Since Q is a certificate for B with eB, we must have we=Ue(Q)=Ue(Q)Lf(Q)=Lf(Q) by Lemma 8.

    If Cf={f,e}, then the above argument already shows Lf(Q)Uf(Q) for each fCff, and we are done with the proof for this case. Thus, assume Cf{f,e} and consider an arbitrary fCffe. Then fBCf and, by Observation 3, there must be an element gCff with gspanM(Bf). The only two elements of Cff that are not in BfspanM(Bf) are e and f.

    If fspanM(Bf), then our assumption that Q is a certificate for B implies Uf(Q)=Uf(Q)Lf(Q)=Lf(Q). If espanM(Bf), then our assumption that Q is a certificate for B implies Uf(Q)=Uf(Q)Le(Q)we=Ue(Q)Lf(Q), where the last inequality uses Ue(Q)Lf(Q) as argued above. In all cases, Uf(Q)Lf(Q).

The next lemma is a dual version of Lemma 10. The proof is in the full version [4].

Lemma 11.

Let B be an MWB of =(E,,A,w) and let Q be a certificate that verifies B. Let eB and eB with Le=Le=we=we be such that eCe for the fundamental circuit Ce of e with respect to B. Then Q=Qe+e is a certificate for B=B+ee.

It is easy to show the following exchange property for trivial elements.

Lemma 12.

Let B be an MWB of =(E,,A,w) and let Q be a certificate that verifies B. Let eB and eB with we=we be such that B=Be+e is independent. If each f{e,e} is either trivial or contained in Q, then Q also verifies B.

3 Computing an MWB that has a Minimum-Cost Certificate

Given a weighted uncertainty matroid =(E,,A,w), we compute an MWB B that admits a minimum-cost certificate, though we do not yet compute the certificate itself. To this end, we introduce a set of contraction and deletion rules. Starting from B=, these rules allow us to safely add elements to B (contraction) and ban elements from ever entering B (deletion) while maintaining the invariant that there is a minimum-cost certificate which verifies a basis B that contains B and does not contain any deleted elements. We formalize this invariant by introducing the notion of a “compatible minor” which intuitively is the remaining (uncertainty) matroid after applying contractions and deletions. We refer to sets of contracted and deleted elements as K and D, respectively.

Definition 13.

Let =(E,,A,w) be a weighted uncertainty matroid with a minimum-cost certificate of cost c and let D,KE. Let M[D,K] be the matroid obtained from M=(E,) by deleting D and contracting K. We say M[D,K] is a compatible minor of if there is a query set for with cost c that verifies an MWB B of with KB and DB=. Furthermore, we say that a certificate Q for is compatible with M[D,K] if Q verifies a basis B of with KB and DB=.

Our goal is to iteratively create sets D and K until K becomes an MWB while maintaining the invariant that there is a minimum-cost certificate compatible with D and K. To this end, we first introduce a series of observations and lemmas that, given a compatible minor M[D,K], allow us to compute a larger compatible minor M[D,K] (Section 3.1). Formally, larger means DD, KK and DD or KK. We also refer to these observations and lemmas as contraction and deletion rules. We use the phrase applying a rule to refer to the process of computing the larger compatible minor M[D,K] and replacing the given one, i.e. we set K:=K and D:=D. We will show that exhaustively applying these rules in a certain order until K is a basis and D=EK yields an MWB that can be verified with minimum-cost. Afterwards, we show that the rules can be implemented with a polynomial-time algorithm (Section 3.2), which will imply the following theorem.

Theorem 14.

There is a polynomial-time algorithm that computes, for any given weighted uncertainty matroid , an MWB B that can be verified by a minimum-cost certificate.

3.1 Contraction and Deletion Rules

Consider a weighted uncertainty matroid =(E,,A,w). Elements that appear in every MWB of or in none can be safely contracted (added to K) or deleted (added to D). The next observations follow from standard arguments (proofs are in the full version [4]).

Observation 15.

Let M:=M[D,K] be a compatible minor of . If there is a circuit C in M[D,K] with an element eC that has the unique maximum weight in C, then M[D+e,K] is a compatible minor of .

Observation 16.

Let M:=M[D,K] be a compatible minor of . If there is a basis B of M with an element eB that has unique minimum weight in E(M)spanM(Be), then M[D,K+e] is a compatible minor of .

We continue by giving contraction and deletion rules for extreme case elements e satisfying we=Ue or we=Le. The existence of these elements separates our work from [8].

3.1.1 Rules for Non-Trivial Extreme Case Elements

We start by considering non-trivial extreme case elements. For each w{weeE}, we define EwL={eELe=we is non-trivial} and EwU={eEUe=we is non-trivial}.

Lemma 17.

Let M:=M[D,K] be a compatible minor of . Let e be a non-trivial element such that (i) eB for some MWB B of M, (ii) we=Ue, (iii) e has minimum weight in E(M)spanM(Be) and (iv) e has maximum query cost in (E(M)spanM(Be))EweU. Then M[D,K+e] is a compatible minor of .

Proof.

Let Q denote a minimum-cost certificate for that is compatible with M. Then, this certificate must also verify some MWB B for M.

To prove the lemma, we have to show that there exists a minimum-cost certificate that verifies an MWB B′′ of with K+eB′′ and DB′′=. If eB, then this directly follows for Q and the MWB B′′=KB of . Thus, assume eB and let C denote the fundamental circuit of e with respect to B. By Observation 3, there exists an eCe such that espanM(Be). Also, eBe because CeB. By assumption that e has minimum weight in E(M)spanM(Be) and that B is an MWB of M, we have Ue=we=we. We distinguish the following cases:

  1. 1.

    If e,eQ, then Q also verifies that B′′=K(Be+e) is an MWB by Lemma 12. Note that (Be+e) is an MWB for M and B′′ is an MWB for .

  2. 2.

    If eQ and eQ, then we must have weUe. Otherwise, Q would not verify that e has maximum weight in C. Since Uewe=we=Ue, we get Ue=Ue. By Lemma 10, this implies that Q=(Qe+e) verifies the MWB B′′=K(Be+e). Note that e can be trivial, in which case we can just use Q=(Qe) instead.

    If e is trivial, then we clearly have c(Q)c(Q). Otherwise, i.e., if e is non-trivial, we have eEweU as we already argued that Ue=we=we. By assumption (iv) of the lemma, this implies cece and, thus, c(Q)c(Q).

  3. 3.

    If eQ, then we must have weLe. Otherwise Q cannot verify that e has maximum weight in C. However, this implies we=UeLe, which can only be the case if e is trivial; a contradiction to the requirements of the lemma.

The next lemma is a dual of Lemma 17 and can be shown analogously (cf. the full version [4]).

Lemma 18.

Let M:=M[D,K] be a compatible minor of . Let e be a non-trivial element such that (i) there exists a circuit C in M[D,K] with eC, (ii) we=Le, (iii) e has maximum weight in C and (iv) e has maximum query cost in CEweL. Then M[D+e,K] is a compatible minor of .

Iteratively and exhaustively applying the deletion rules in Lemma 18 and Observation 15, and the contraction rules in Lemma 17 and Observation 16, yields D and K such that M[D,K] satisfies the following assumption, enabling further rules depending on this assumption.

Assumption 19.

We may assume that a compatible minor M:=M[D,K] of does not contain non-trivial elements e with any of the following properties:

  1. (i)

    we=Le and e is a maximum weight element in a circuit C of M.

  2. (ii)

    we=Ue and e is a minimum weight element in E(M)spanM(Be) for a basis B of M that contains e.

3.1.2 Rules for Trivial Extreme Case Elements

We continue by introducing deletion and contraction rules for trivial extreme case elements in instances that satisfy Assumption 19. We defer the following two proofs to the full version [4], but remark that they follow a similar proof strategy as the proof of Lemma 17.

Lemma 20.

Let M:=M[D,K] be a compatible minor of and assume that Assumption 19 is satisfied. Let e be a trivial element such that (i) there exists basis B of M with eB and (ii) e has minimum weight among elements not in spanM(Be). Then M[D,K+e] is a compatible minor of .

Lemma 21.

Let M[D,K] be a compatible minor of and assume that Assumption 19 is satisfied. Let e be a trivial element such that (i) there exists a circuit C in M[D,K] with eC and (ii) e has maximum weight in C. Then M[D+e,K] is a compatible minor of .

Given a compatible minor M[D,K] that satisfies Assumption 19, we check for an element e that meets the requirements of Lemma 20 or Lemma 21. If such an element exists, we apply the corresponding rule to extend D or K, while maintaining our invariant that M[D,K] is a compatible minor. We then return to applying the rules of the previous sections to restore Assumption 19, and repeat this argument until no such element e remains. The resulting compatible minor M[D,K] satisfies the following properties:

  1. 1.

    M[D,K] does not contain elements e with we=Le such that e is a maximum-weight element in some circuit of M[D,K].

  2. 2.

    M[D,K]=:M does not contain elements e with we=Ue such that there is a basis B of M with eB and e has minimum weight among elements not in spanM(Be).

  3. 3.

    There is a minimum-cost certificate that is compatible with D and K.

In any basis B of M with these properties, no element eB with we=Ue has minimum-weight in E(M)spanM(Be). Hence, such elements eB with we=Ue cannot be part of any MWB B of M as we can swap e with an element of E(M)spanM(Be) that has strictly smaller weight. Thus, we can delete all these elements eB with we=Ue and add them to D while maintaining the property that there is a minimum-cost certificate that is compatible with D and K. Note that this corresponds to applying Observation 15. Similarly, we can argue that all remaining elements e with we=Le can be contracted by applying Observation 16. This way we compute sets D and K that satisfy the following assumption.

Assumption 22.

We may assume that a compatible minor M[D,K] of a weighted uncertainty matroid does not contain elements e with we=Ue or we=Le.

The rules for extreme case elements imply the following (cf. the full version [4] for a proof).

Corollary 23.

Let M[D,K] be a compatible minor of with Ae={Le,Ue} for all eE(M) that satisfies Assumption 19, then K is an MWB that can be verified with a minimum-cost certificate. If in addition the query costs are uniform and all Ae are uniform and non-trivial, then every MWB B of M has the same verification cost.

3.1.3 Rules for Instances without Extreme Case Elements

Instances M:=M[D,K] that satisfy Assumption 22 essentially behave like instances with open intervals, since all elements satisfy we(Le,Ue) (although we still might have Ae(Le,Ue)). For the special case of graphic matroids with open intervals, the results in [7, 8] imply that all MWB can be verified with minimum-cost certificates. In the full version [4], we generalize these insights to arbitrary matroids and prove the following lemma.

Lemma 24.

Let M:=M[D,K] be a compatible minor of such that Assumption 22 is satisfied, and let B be any MWB of M. Then, M[D,K] with K=KB and D=D(E(M)B) is a compatible minor of .

Once we create a compatible minor M:=M[D,K] that satisfies Assumption 22 by applying the contraction and deletion rules of the previous sections, Lemma 24 allows us to just fix any MWB B of M, contract (delete) the elements of B (of E(M)B) and add them to K (to D). Afterwards, K is a basis that can be verified with a minimum-cost certificate.

3.2 A Polynomial-time Algorithm

The results of Section 3.1 imply a sequence of contraction and deletion rules applied to an uncertainty matroid, leading to a compatible minor that has a unique MWB with a minimum-cost certificate. Algorithm 1 exhaustively applies these rules in the right order to compute this MWB, and runs in polynomial time, as we show with the following lemma. This proves Theorem 14.

Algorithm 1 Computing an MWB B that can be verified with a minimum-cost certificate.
Lemma 25.

Algorithm 1 runs in polynomial time.

Proof.

The values of Le and Ue can be easily computed at the beginning for each eE, using the list of intervals for each Ae. Subsequently, no further information is needed about Ae.

Since the number of iterations of the while-loop is bounded by the number of elements, it only remains to argue that each iteration can be executed in polynomial time. To this end, we mainly have to argue that, for an element e, we can check in polynomial time whether the prerequisites of Observation 15 and 16 or Lemmas 17 to 21 are satisfied.

We separately argue about the different lemmas and observations. Assume there is given a compatible minor M:=M[D,K] of an uncertainty matroid .

  1. (a)

    Observation 16: Checking whether an element e satisfies the condition of Observation 16 is equivalent to checking whether e is part of every MWB of M. To check whether an element e is part of every MWB w.r.t. the weights w, we can just compute some minimum-weight basis B using the standard greedy algorithm. If eB, then Observation 16 clearly does not apply. Otherwise, i.e., eB, we can check whether e can be exchanged with an element eEB with wewe. If this is possible, then e is not part of every minimum-weight basis. If not, then e is part of every minimum-weight basis. The running time of this test is dominated by the running time of the greedy algorithm and, thus, polynomial in the input size.

  2. (b)

    Observation 15: Using matroid duality arguments allows us to argue in the same way as in the previous case.

  3. (c)

    Lemma 17: Checking whether there exists an element e that is non-trivial and (i) there exists a basis B of M with eB, (ii) we=Ue, (iii) e has minimum weight in E(M)spanM(Be) and (iv) e has maximum query cost in E(M)spanM(Be)EweU, can also be done in polynomial time.

    Note that a non-trivial element e that satisfies (i)-(iii) is a non-trivial element e with we=Ue that is in at least one MWB B. To decide whether a non-trivial element e with we=Ue is part of at least one MWB B, we can just compute some MWB B and check whether eB or, if not, whether e can swapped into B by exchanging it with an equal-weight element in the fundamental circuit of B w.r.t. e. Note that this check can be performed in polynomial time, as the running time is dominated by the running time for computing the MWB B. If the element e is not in B and cannot be swapped into B, then e is not part of any MWB and, therefore, does not satisfy the properties (i)-(iii). Otherwise, it satisfies the properties (i)-(iii).

    Executing this check for each non-trivial element e with we=Ue, we can either find such an element e that satisfies (i)-(iii) or determine that Lemma 17 cannot be applied. In the latter case, we are done. If we find an element e with we=Ue that satisfies (i)-(iii), then the check procedure described above also gives us an MWB B with eB (this is either B or the MWB that is created by swapping e into B). Given such a pair of e and MWB Be, we can easily check whether e has maximum query cost in (E(M)spanM(Be))EweU, i.e., satisfies (iv). If this is the case, then we are done. If not, then some other element of (E(M)spanM(Be))EweU satisfies the condition of Lemma 17 and we are done anyway.

  4. (d)

    Lemma 18: Using matroid duality arguments allows us to argue in the same way as in the previous case.

  5. (e)

    The conditions of Lemma 20 and 21 can be checked similarly to Observation 15 and 16 plus checking Assumption 19, which is trivial.

  6. (f)

    The final step of the algorithm consists of computing an MWB of the minor M[D,K] which can be done by the greedy algorithm in polynomial time.

4 Computing a Minimum-Cost Certificate to Verify a Given Basis

In this section, we provide an algorithm for computing a minimum-cost certificate that verifies a given MWB. In particular, the algorithm can be applied to the MWB produced by Algorithm 1, thereby yielding a minimum-cost certificate for .

Lemma 26 is a key result that dictates specifically what elements must be in Q in order for it to adhere to Corollary 9.

Lemma 26.

Let B be an MWB of a weighted uncertainty matroid =(E,,A,w). For a non-basis element e of B, let Ce be the fundamental circuit of e with respect to B, let Fe be the set of elements fCee with Uf>Le, and let Fe^ be the set of elements fCee with Uf>we. A subset QE is a certificate of B if and only if for each non-basis element e of B, the following holds:

  1. 1.

    If weUf for all fCee, and there exists fCee such that wf>Le, then eQ.

  2. 2.

    If weUf for all fCee, and wfLe for all fCee, then eQ or FeQ.

  3. 3.

    If there exists fCee such that we<Uf, and there exists fCee (could have f=f) such that wf>Le, then Fe^+eQ.

  4. 4.

    If there exists fCee such that we<Uf, and for all fCee it holds that wfLe, then FeQ or Fe^+eQ.

Proof.

Let Q be a certificate that verifies B. Consider a non-basis element e, and the fundamental circuit Ce with respect to B. Let w be some weight assignment consistent with Q (Definition 5). Given w, if any element fCe{e} satisfies UfLe, it immediately follows that wewf, without including either e or f in Q. Define Fe as the set of elements fCe{e} where Uf>Le. Additionally, define Fe^ as the set of elements fCe{e} with Uf>we. Clearly, F^eF.

Recall that if eQ, then we=we, and if eQ, weAe. We aim to establish the necessary and sufficient conditions for Q to satisfy Corollary 9 for all elements fF, (i.e., for Q to satisfy Le(Q)Uf(Q) for all fF). Observe the following cases:

Case 1.

The first case is if weUf for all fFe. Two sub-cases arise in this scenario.

  • Subcase 1.1: There exists some fF where wf>Le. In this case, we claim it is necessary and sufficient to have eQ. Suppose eQ. Then by Definition 5, we have weAe. Since wf>Le, Corollary 9 is not satisfied. Thus, e must be in Q. Conversely, if eQ, we have that for all fFe, we=we=Le(Q)UfUf(Q)wf and thus wewf and Corollary 9 is satisfied.

  • Subcase 1.2: For all fFe, wfLe. We show that in this case, it is necessary and sufficient to have eQ or FeQ. Suppose eQ and FeQ. Then there exists some element fFe\Q. By Definition 5, we have weAe and wf[Lf,Uf]. Since Uf>Le, Corollary 9 is not satisfied. Thus, it’s clear that eQ or FeQ. Conversely, suppose eQ or FeQ. If eQ we have that we=we=Le(Q)UfUf(Q)wf and so wewf. If FeQ, we have that for all fFe, weLe(Q)LeUf(Q)=wf=wf and thus wewf. Either way, Corollary 9 is satisfied.

Case 2.

The second case is if we<Uf for some fFe. Again two sub-cases arise in this scenario.

  • Subcase 2.1: There exists some fCee where wf>Le. In this case, we show that it is necessary and sufficient to have Fe^+eQ. Suppose Fe^+eQ. Then either eQ or there exists some f′′Fe^\Q. Suppose eQ. By Definition 5, we have weAe. Since there exists some wf>Le, Corollary 9 is not satisfied. Suppose f′′Q. By Definition 5, we have wf′′[Lf′′,Uf′′]. Since we<Uf′′, Corollary 9 is not satisfied. Thus, Fe^+eQ.

    Conversely, if Fe^+eQ we have for all fFe^ that we=we=Le(Q)UfUf(Q)=wf=wf. For all fFeFe^, given that Le<Ufwe, the inclusion of eQ ensures that we=we=Le(Q)UfUf(Q)wf. Therefore, Corollary 9 is satisfied.

  • Subcase 2.2: For all fCe{e}, wfLe. In this case, we show it is necessary and sufficient to have FeQ or Fe^+eQ. Suppose neither Fe nor Fe^+e is contained in Q. Then there exists some f′′Fe^\Q. By Definition 5, we have that wf′′[Lf′′,Uf′′]. Since we<Uf′′, Corollary 9 is not satisfied. Thus, it’s clear that all such f′′ must be in Q. Now suppose some f′′Fe\Fe^ is not in Q. This element has the property that weUf′′>Lewf′′. By Definition 5 we have that wf′′[Lf′′,Uf′′]. Since Le<Uf′′, Corollary 9 is not satisfied. However, having e or all such f′′Q will show that we>wf′′.

    By ensuring that FeQ or Fe^+eQ we have that either weLe(Q)LeUf(Q)=wf=wf and so wewf for all fF or we=we=Le(Q)UfUf(Q)=wf=wf so wewf for all f′′Fe^. For all f′′FeFe^, given that Le<Ufwe, the inclusion of eQ ensures that we=we=Le(Q)UfUf(Q)wf. Therefore, Corollary 9 is satisfied.

In all cases, the construction of Q verifies that each element eB is a maximum-weight element on the unique circuit it forms in B, which completes the proof by Corollary 9. Intuitively, Lemma 26 exhaustively formulates the ‘choices’ that a certificate Q has to make to ensure that Corollary 9 is satisfied for a fundamental cycle Ce with respect to B of an eB. For example, if Ce falls into the second case of the lemma, then we must have FeQ or eQ (or both). The ‘choices’ for different e,eB however, are not necessarily disjoint, e.g., if we have FeFe. Similar to verification algorithms in the literature, we define an auxiliary graph GB such that every vertex cover of GB corresponds to a combination of ‘choices’ of Lemma 26, and vice versa. The following definition makes this more precise.

Definition 27.

Given a weighted uncertainty matroid =(E,,A,w) and an MWB B, we define the bipartite (with the exception of self-loops) auxiliary graph GB=(VB,EB) with VB=E and EB=eEBEeB, where the sets EeB for eEB are defined as follows:

  1. 1.

    If weUf for all fCee, and there is a fCee with wf>Le, then EeB={{e,e}}.

  2. 2.

    If weUf for all fCee, and wfLe for all fCee, then EeB={{e,f}fFe}.

  3. 3.

    If there exists fCee such that we<Uf, and there exists fCee (could have f=f) such that wf>Le, then EeB={{f,f}fFe^+e}.

  4. 4.

    If there exists fCee such that we<Uf, and for all fCee it holds that wfLe, then EeB={{e,f}fFeF^e}{{f,f}fF^e}.

Each case of Definition 27 corresponds to a case of Lemma 26 and exactly models the corresponding ‘choice’ of the lemma. The following corollary follows from Lemma 26 and formally proves (cf. the full version [4]) the connection between Definition 27 and Lemma 26.

Corollary 28.

Given a weighted uncertainty matroid =(E,,A,w) with MWB B, a set Q is a certificate of B if and only if Q is a vertex cover of GB.

Since a set QE is a certificate for B if and only if Q is a vertex cover of GB, we can compute a minimum-cost certificate for B by computing a minimum-cost vertex cover for GB, using the query costs ce as weights for the vertices VB=E. Note that GB is bipartite except for the self-loop edges. To employ polynomial-time vertex-cover algorithms for bipartite graphs (see, e.g., [24]), we modify GB by replacing each loop-edge {e,e}EB with an edge {e,ve} to a distinct new dummy vertex ve with weight w(ve)=we+ϵ for some ϵ>0. Executing the algorithm, formalized as Algorithm 2, for the MWB B computed by Algorithm 1 yields a polynomial-time algorithm that computes a minimum-cost certificate.

Algorithm 2 Identifying a Minimum-Cost Certificate of B.
Theorem 29.

Let =(E,,A,w) be a weighted uncertainty matroid. Algorithm 2 is a polynomial-time algorithm that computes a minimum-cost certificate Q and an MWB B of that is verified by Q.

Proof.

The correctness of the algorithm immediately follows Corollary 28. Thus, it only remains to argue about the running-time. The MWB B can be computed in polynomial time by Lemma 25. Based on B, the graph GB can also be computed in polynomial time.

To show that the minimum-weight vertex cover can be computed in polynomial time, note that GB is bipartite except for the self-loop edges. Indeed, all non-loop edges have one endpoint in B and one endpoint in EB. To still compute a minimum-weight vertex cover for GB using the algorithms for bipartite graphs (see, e.g., [24]), we define G¯B as a copy of GB that replaces each loop-edge {e,e}EB with an edge {e,ve} to a distinct new vertex ve with weight w(ve)=we+ϵ for some ϵ>0. Clearly, the size of G¯B is polynomial in the size of GB and a set Q is a minimum-weight vertex cover of GB if and only if Q is a minimum-weight vertex cover for G^B. Since G^B is bipartite, we can compute a minimum-weight vertex cover for G^B, and thus for GB, by using the classical algorithm for bipartite graphs.

5 Applications

In this section, we show that our verification algorithm and our structural insights, in particular Lemma 26, can be used to obtain new results for the adaptive online variant and for two learning-augmented variants of the MWB problem under uncertainty.

5.1 A Best-Possible Adaptive Online Algorithm for a Given MWB

In the following, we give an optimal algorithm for the adaptive online problem under the assumption that we are given an MWB B that can be verified with a minimum-cost certificate.

In the adaptive online problem, the weights we are initially unknown, and an algorithm has access only to the uncertainty matroid . The goal of the algorithm is to adaptively query elements until the set of queried elements Q verifies some MWB B of (cf. Definition 6). Algorithms are analyzed in terms of their competitive ratio. An algorithm is ρ-competitive if c(Q())ρc(Q()) for all uncertainty matroids , where Q() is the set of elements queried by the algorithm on , and Q() is a minimum-cost certificate for . The competitive ratio of an algorithm is the minimum ρ such that the algorithm is ρ-competitive.

The best-possible competitive ratio heavily depends on the type of uncertainty areas. If all uncertainty areas are either open, i.e., Ae=(Le,Ue), or trivial, i.e., Ae={we}, then the best-possible competitive ratio is 2 [13]. Once the uncertainty areas can be closed intervals, the best-possible competitive ratio increases to n [11, Section 7]. Both results hold for uniform query costs (ce=1 for eE). Here, we consider the case of uniform query costs.

It is not hard to see that the lower bound of 2 for minimum spanning trees in the case of open uncertainty areas [13] holds even if the algorithm is given an MWB B with the promise that (i) B is indeed an MWB for the unknown weights and (ii) B can be verified with a minimum-cost certificate. Note that for open uncertainty areas, (ii) is an implication of (i).

Observation 30 (Follows from [13]).

No deterministic algorithm for the online adaptive MWB problem with uniform query costs is better than 2-competitive, even if the algorithm is given an MWB B w.r.t. to the unknown weights.

In contrast, the lower bound of n for the case of general uncertainty areas [11, Section 7] does not hold if the algorithm receives the same promise as described above. This contrast highlights that the increase in the competitive ratio from open to general uncertainty areas stems from the algorithm’s task of finding rather than merely verifying an MWB B. In the following, we formally prove this insight. The core of the proof is an application of Lemma 26.

Lemma 31.

There exists an online adaptive algorithm that, given an uncertainty matroid and an MWB B (w.r.t. the unknown weights w) that can be verified with a minimum-cardinality certificate Q, computes a certificate Q with |Q|2|Q| that verifies B.

Proof.

To prove the lemma, we define the following algorithm:

  1. 1.

    Initialize Q=.

  2. 2.

    For each eEB:

    1. (a)

      Let Ce denote the fundamental circuit of e with respect to B.

    2. (b)

      While there exists an fCee with Uf(Q)>Le(Q):

      1. i.

        If there is an element gCe({e}Q) with Ug(Q)>Le(Q), then let g^ denote such an element with maximum Ug^(Q). Add g^ to Q and query g^.

      2. ii.

        If eQ, then add e to Q and query e.

  3. 3.

    Return Q.

It is not hard to see that the set Q computed by the algorithm is a certificate that verifies B: Exploiting the assumption that B is indeed an MWB, the definition of Step 2b ensures that Q satisfies Corollary 9. Hence, Q is a certificate that verifies B.

It remains to show that |Q|2|Q|. The proof will heavily exploit that Q, by assumption, is a certificate that verifies B. In particular, this means that Q satisfies Lemma 26 for B, which will help us to bound |Q| in terms of |Q|.

Let EB={e1,,ek} be indexed in the order in which the algorithm considers the elements of EB in the loop of Step 2. For each j{1,,k} let Qj denote the set of elements that the algorithm queries during iteration j of the loop of Step 2. We show that

|Qj||QjQ|2 (1)

holds for each Qj with j{1,,k}. Since the sets Qj form a partition of Q, this then implies |Q|2|Q|.

Fix an arbitrary Qj. Define Pj=j<jQj. We show that Qj satisfies (1) via case distinction over the cardinality of Qj.

  1. 1.

    If |Qj|=0, then (1) holds trivially.

  2. 2.

    If |Qj|=1, then the definition of the loop of Step 2b implies that we must have Qj={ej} as ejQj holds by Step 2bii of the algorithm. The fact that the loop of Step 2b is executed but only queries ej implies that all gCej({ej}Pj) have wgUg(Pj)Lej(Pj)=Lej (cf. Step 2bi). However, then the fact that the loop of Step 2b is executed implies that there is some gCejPj with Ug(Pj)=wg>Lej(Pj)=Lej. This in turn implies that Cej either satisfies the first or third case of Lemma 26. Hence, ejQ and |Qj||QjQ|=1.

  3. 3.

    If |Qj|=2, then Lemma 26 implies |QjQ|1. Hence, |Qj||QjQ|2

  4. 4.

    If |Qj|>2, then the loop of Step 2b is executed at least twice. For the two elements that are queried in the first iteration, we can argue that Q has to contain at least one of them as in the previous case.

    Let Qj denote the subset of Qj that is queried after the first iteration of this Step 2b loop. All gQj have to satisfy Ug>wej, as otherwise the loop would terminate before g is queried. This implies that all gQj are in F^ej (defined as in Lemma 26). Hence, Cej either satisfies Case 3 or 4 of Lemma 26 and, thus, QjF^ejQ. We can conclude with |Qj||QjQ|2+|Qj|1+|Qj|2.

5.2 Learning-Augmented Algorithms

Recently, online adaptive problems under explorable uncertainty have been studied in learning-augmented settings [6, 7], where the algorithm has access to imperfect predictions w^e on the unknown weights we. The goal is to design algorithms that leverage the access to the predictions to achieve an improved competitive ratio in case the predictions are accurate, and at the same time maintain worst-case guarantees even if the predictions are arbitrarily wrong. Such learning-augmented algorithms are analyzed w.r.t. their consistency, the competitive ratio if we=w^e for all eE, and robustness, the competitive ratio for arbitrary predictions [16, 22].

For the online adaptive MST problem with open uncertainty areas, Erlebach et al. [7] gave a 1.5-consistent and 2-robust algorithm. In the following we show that our verification algorithm and the insights from the previous section can be used to design learning-augmented algorithms for the online adaptive MWB problem with general uncertainty areas for two prediction models:

  1. 1.

    Weight predictions: As in [6, 7], the algorithm has access to predictions w^e on the unknown element weights we.

  2. 2.

    Basis predictions: The algorithm has access to a prediction B^ on the MWB B that can be verified with a minimum-cardinality certificate.

5.2.1 Weight Predictions

Our verification algorithm implies a 1-consistent and n-robust algorithm for the case of uniform query costs. Note that this consistency and robustness are optimal due to the aforementioned lower bound given in [11].

  1. 1.

    Use the verification algorithm to compute and query a minimum-cost certificate under the assumption that the predictions are accurate, i.e., we=w^e for all eE.

  2. 2.

    If the instance is not solved yet, then query all remaining elements.

Corollary 32.

The algorithm above runs in polynomial time and is 1-consistent and n-robust for the online adaptive MWB problem with weight predictions and uniform query costs.

Proof.

Let Q denote the query set computed by the algorithm and let Q denote the minimum-cardinality query set. If the predictions are correct, we=w^e for all eE, then the second step of the algorithm computes and queries a minimum-cardinality certificate for the instance. Hence, Step 2 is never executed and the algorithm is 1-consistent. If the predictions are incorrect and the algorithm queries at least one element, then also |Q|1. Since the algorithm queries at most n elements, n-robustness follows immediately.

This naive algorithm is a first step towards smooth learning augmented-algorithms for the online adaptive MWB problem with weight predictions, i.e., algorithms with a competitive ratio that smoothly degrades from 1 to n depending on some error measure describing the quality of the predictions. Next, we give such a smooth algorithm (with a worse consistency) for basis predictions. Since weight predictions can be used to compute a basis prediction, the algorithm can also be interpreted as a smooth algorithm for weight predictions.

5.2.2 Basis Predictions

We consider the prediction model where algorithms have access to a prediction B^ on an MWB B that can be verified with a minimum cardinality query set Q. W.l.o.g. we may assume that B^ is indeed a basis of the given uncertainty matroid. This is easy to check and if B^ is not a basis, we remove a minimum number of elements to achieve independence and then augment it to a basis.

We say that the prediction B^ is correct if it is indeed an MWB that can be verified with some minimum cardinality query set. Otherwise, the prediction is incorrect. We now define error measures to quantify the quality of a prediction B^. Note that a prediction B^, can have two different types of error. First, B^ might not actually be an MWB. Second, even if B^ is an MWB, it might not be an MWB of minimum verification cost. Our error measure takes both of these error types into account. To this end, let Ce for eEB^ denote the fundamental circuit of e with respect to B^. Define such a circuit Ce to be correct if wewf for all fCee and wfwg for all fCee and gEspanM(B^f). Otherwise, call Ce incorrect. Let B^sB^ denote the set of elements in B^ that are part of a correct fundamental circuit Ce, eEB^. We define two errors:

  • Let B^s denote an MWB with B^sB^s such that B^s has minimum verification cost among all MWB’s that contain B^s and let Q denote a minimum-cardinality certificate for B^s. In the full version [4], we argue that such an MWB B^s always exists. Define η1=|Q||Q|, where Q is the minimum-cardinality certificate. Note that if B^ is an MWB, then η1 is just the difference between the verification cost of B^ and the minimum verification cost |Q|.

  • Let η2 denote the number of incorrect circuits Ce with eEB^.

Intuitively, η1 measures how much larger the verification cost of B^ is compared to the minimum-cardinality query set. Error η2 captures how far B^ is from actually being an MWB.

The following theorem can be achieved using a slight variation of the algorithm in Section 5.1, taking into account that elements eEB^ might not be maximal on circuit Ce. In such cases, the algorithm deviates from the procedure in Section 5.1 by querying all elements in circuit Ce. In the full version [4], we give the formal definition of this algorithm and the proof of the theorem, and argue that the factor cmax of the error η2 is indeed necessary.

Theorem 33.

Given an instance of the online adaptive MWB problem with a predicted basis B^ and uniform query costs, there is an algorithm that computes a certificate Q for some MWB B and satisfies |Q|min{2(|Q|+η1)+η2cmax,n}, where Q is a minimum-cardinality certificate and cmax is the size of the largest circuit. In particular, the algorithm is 2-consistent and n-robust.

References

  • [1] Evripidis Bampis, Christoph Dürr, Thomas Erlebach, Murilo Santos de Lima, Nicole Megow, and Jens Schlöter. Orienting (hyper)graphs under explorable stochastic uncertainty. In ESA, volume 204 of LIPIcs, pages 10:1–10:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.ESA.2021.10.
  • [2] Steven Chaplick, Magnús M. Halldórsson, Murilo Santos de Lima, and Tigran Tonoyan. Query minimization under stochastic uncertainty. In LATIN, volume 12118 of Lecture Notes in Computer Science, pages 181–193. Springer, 2020. doi:10.1007/978-3-030-61792-9_15.
  • [3] George Charalambous and Michael Hoffmann. Verification problem of maximal points under uncertainty. In IWOCA 2013, volume 8288 of Lecture Notes in Computer Science, pages 94–105. Springer, 2013. doi:10.1007/978-3-642-45278-9_9.
  • [4] Haya Diwan, Lisa Hellerstein, Nicole Megow, and Jens Schlöter. Optimal verification of a minimum-weight basis in an uncertainty matroid, 2025. arXiv:2512.17116.
  • [5] T. Erlebach and M. Hoffmann. Query-competitive algorithms for computing with uncertainty. Bulletin of the EATCS, 116:22–39, 2015. URL: http://bulletin.eatcs.org/index.php/beatcs/article/view/335.
  • [6] Thomas Erlebach, Murilo S. de Lima, Nicole Megow, and Jens Schlöter. Sorting and hypergraph orientation under uncertainty with predictions. In IJCAI, pages 5577–5585. ijcai.org, 2023. doi:10.24963/IJCAI.2023/619.
  • [7] Thomas Erlebach, Murilo Santos de Lima, Nicole Megow, and Jens Schlöter. Learning-augmented query policies for minimum spanning tree with uncertainty. In ESA, volume 244 of LIPIcs, pages 49:1–49:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ESA.2022.49.
  • [8] Thomas Erlebach and Michael Hoffmann. Minimum spanning tree verification under uncertainty. In Dieter Kratsch and Ioan Todinca, editors, Graph-Theoretic Concepts in Computer Science, volume 8747 of Lecture Notes in Computer Science, pages 164–175. Springer International Publishing, Cham, 2014. doi:10.1007/978-3-319-12340-0_14.
  • [9] Thomas Erlebach, Michael Hoffmann, and Frank Kammer. Query-competitive algorithms for cheapest set problems under uncertainty. Theor. Comput. Sci., 613:51–64, 2016. doi:10.1016/J.TCS.2015.11.025.
  • [10] T. Feder, R. Motwani, R. Panigrahy, C. Olston, and J. Widom. Computing the median with uncertainty. SIAM Journal on Computing, 32(2):538–547, 2003. doi:10.1137/S0097539701395668.
  • [11] Manoj Gupta, Yogish Sabharwal, and Sandeep Sen. The update complexity of selection and related problems. Theory Comput. Syst., 59(1):112–132, 2016. doi:10.1007/S00224-015-9664-Y.
  • [12] Magnús M. Halldórsson and Murilo Santos de Lima. Query-competitive sorting with uncertainty. Theor. Comput. Sci., 867:50–67, 2021. doi:10.1016/J.TCS.2021.03.021.
  • [13] Michael Hoffmann, Thomas Erlebach, Danny Krizanc, Matús Mihalák, and Rajeev Raman. Computing minimum spanning trees with uncertainty. In STACS, volume 1 of LIPIcs, pages 277–288. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Germany, 2008. doi:10.4230/LIPIcs.STACS.2008.1358.
  • [14] Simon Kahan. A model for data in motion. In Proceedings of the Twenty-Third Annual ACM Symposium on Theory of Computing, pages 265–277, New York, NY, USA, 1991. Association for Computing Machinery. doi:10.1145/103418.103449.
  • [15] Eugene L Lawler. Combinatorial optimization: networks and matroids. Courier Corporation, 2001.
  • [16] Thodoris Lykouris and Sergei Vassilvitskii. Competitive caching with machine learned advice. J. ACM, 68(4):24:1–24:25, 2021. doi:10.1145/3447579.
  • [17] Corinna Mathwieser and Eranda Çela. Special cases of the minimum spanning tree problem under explorable edge and vertex uncertainty. Networks, 83(3):587–604, 2024. doi:10.1002/NET.22204.
  • [18] Nicole Megow, Julie Meißner, and Martin Skutella. Randomization helps computing a minimum spanning tree under uncertainty. SIAM J. Comput., 46(4):1217–1240, 2017. doi:10.1137/16M1088375.
  • [19] Nicole Megow and Jens Schlöter. Set selection under explorable stochastic uncertainty via covering techniques. In IPCO, volume 13904 of Lecture Notes in Computer Science, pages 319–333. Springer, 2023. doi:10.1007/978-3-031-32726-1_23.
  • [20] J. Meißner. Uncertainty Exploration: Algorithms, Competitive Analysis, and Computational Experiments. PhD thesis, Technischen Universität Berlin, 2018. doi:10.14279/depositonce-7327.
  • [21] Arturo Merino and José A. Soto. The minimum cost query problem on matroids with uncertainty areas. In ICALP, volume 132 of LIPIcs, pages 83:1–83:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.ICALP.2019.83.
  • [22] Manish Purohit, Zoya Svitkina, and Ravi Kumar. Improving online algorithms via ML predictions. In NeurIPS, pages 9684–9693, 2018. URL: https://proceedings.neurips.cc/paper/2018/hash/73a427badebe0e32caa2e1fc7530b7f3-Abstract.html.
  • [23] Jens Schlöter. On the complexity of knapsack under explorable uncertainty: Hardness and algorithms. In 33rd Annual European Symposium on Algorithms, volume 351 of LIPIcs, pages 6:1–6:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.ESA.2025.6.
  • [24] Alexander Schrijver. Combinatorial Optimization Polyhedra and Efficiency. Springer, 2003.