Manuscript Offprint
arXiv:2610.41714A Fully Polynomial Randomized Approximation Scheme for Hypergraph Unreliability
Abstract
We give a fully polynomial randomized approximation scheme for all-terminal unreliability in explicitly represented undirected hypergraphs of arbitrary rank. The algorithm estimates the probability that independent hyperedge failures disconnect the hypergraph, allowing a different rational failure probability for every edge. For a common failure probability, this improves the quasi-polynomial approximation schemes of Cen, Li, and Panigrahi to polynomial time and answers the polynomial-time approximation question reiterated in their subsequent work on graphs.
The construction turns their representative-survival bound into an importance sampler whose relative second moment is bounded solely in terms of the number of vertices. We protect one randomly chosen representative pair during contraction, correct the path likelihood, and divide by the number of pairs surviving at the end. The resulting unbiased estimator has relative second moment at most , even when unreliability is exponentially small.
A minimum-cut normalization makes this estimator implementable with polynomially bounded precision: the residual likelihood becomes a survival probability in an auxiliary absorbing process, which admits rational discretization with a fixed random-bit budget. Logarithmic rate rounding and an exact weighted minimum cut extend the construction to unequal rational failure probabilities. The algorithm's worst-case running time and random-bit usage are polynomial in the input length, the inverse relative error, and for confidence .
1 Introduction
Network unreliability quantifies the risk that independent component failures disconnect a system. A hyperedge represents a component connecting an entire set of vertices, so one failure can remove a connection among arbitrarily many endpoints. We study all-terminal unreliability, the probability that the surviving hypergraph has more than one connected component. A relative estimate measures this risk at its own scale, including when disconnection is exponentially unlikely.
For ordinary graphs, polynomial-time relative approximation has been available since Karger's FPRAS [Kar99], and, for a common failure probability and fixed relative accuracy, the running time has recently reached almost linear in the number of edges [CLP25]. Extending these guarantees to unrestricted hyperedges encounters a structural obstacle. Near-minimum cuts can be enumerated in polynomial time at logarithmic rank for each fixed approximation factor, but their number can grow exponentially with the rank [KK15]. Enumerating these cuts can therefore require super-polynomial work at large rank.
Cen, Li, and Panigrahi [CLP24] gave quasi-polynomial approximation schemes for arbitrary-rank hypergraphs. Their later work [CLP25] again identified polynomial-time approximation in this model as an open problem. We resolve this question with an FPRAS. The result also allows independent rational failure probabilities that differ across edges, and bounds both running time and random-bit usage for every random outcome. The input length includes the number of hyperedges and all of their incidences.
Discard empty and singleton edges and remove duplicate incidences within an edge. Distinct parallel labels remain independent trials. After preprocessing, set
The input length accounts for , the incidences and labels, and the binary encodings of all rational parameters. Multiplicities are represented by their explicit edge lists.
Theorem 1.1. Given an explicitly represented undirected hypergraph , independent rational edge-failure probabilities , and rational , there is a randomized algorithm returning a rational such that
For every random outcome, its running time and random-bit usage are polynomial in the explicit input length, all probability encoding lengths, , and . The rank is unrestricted.
We first prove the common-probability case, which contains the central sampling construction. Section 9 extends it to the full theorem.
Theorem 1.2. Given an explicitly represented undirected hypergraph , a rational , and rational , there is a randomized algorithm returning a rational such that
Its running time and number of random bits are bounded, for every random outcome, by a polynomial in the explicit input length, , and . The rank is unrestricted.
The theorem gives a polynomial-time relative estimate throughout the range of failure probabilities and hyperedge ranks. In particular, a large family of near-minimum cuts can coexist with efficient approximation of the total disconnection probability. The input model retains each hyperedge as one independent failure event, including parallel labels.
For the common-probability case, the algorithm estimates , where is the integer minimum cut. This normalized quantity lies between 1 and . Multiplication by the exactly represented rational recovers a relative estimate of unreliability. This normalization allows a polynomial precision budget even when the probability being estimated is exponentially small.
1.2 From representative survival to an algorithm
The key is to sample disconnection through surviving representatives. Cen, Li, and Panigrahi's analysis bounds unreliability using only the original vertex pairs, even when the cut family is exponentially large. Turning that bound into an FPRAS requires a distribution under which a chosen pair survives, an exact correction for overlapping survival events, and a precision bound that remains polynomial for rare events.
Protect a pair and correct its multiplicity. Cen, Li, and Panigrahi [CLP24, Section 3.2] represent independent failures by an exponential contraction process. Each block retains one original vertex as its representative. Two copies of each edge use distinct heads, giving a destruction rate of at least for every surviving representative pair. We use this hazard bound to construct a proposal process: select one original pair uniformly and suppress every transition that would destroy it. All other transition rates are retained. A path under this process has an explicit likelihood relative to the original contraction process.
Every disconnected path under the original process has one or more surviving pairs. Dividing its contribution by that number corrects this multiplicity, so averaging over the initially selected pair counts each disconnected path exactly once. The hazard bound then gives the pointwise estimate . Together with , this yields relative second moment at most . The common head rule allows the multiplicity identity to be evaluated under a single original law.
Represent the likelihood by survival. Implementing the continuous-time sampler requires controlling numerical precision: both its horizon and its likelihood contain transcendental quantities. After dividing by , the remaining likelihood is the probability of avoiding an auxiliary absorbing state whose rate is . The terminal reward is consequently either zero or the rational number . A rational time grid and categorical draws with a fixed bit budget approximate the normalized mean to additive error at most . Since that mean is at least one, standard batching gives a relative guarantee.
Allow different failure probabilities. For arbitrary , the corresponding rates are . We round these rates to a common dyadic grid, prove multiplicative stability of unreliability under this rounding, and compute the resulting weighted minimum cut exactly. The same absorbing process runs to the rational horizon 1. A rational relative approximation to the final exponential normalization completes the bit-model algorithm.
1.3 Relation to previous work
The exponential contraction representation, paired heads, and representative survival inequality are due to Cen, Li, and Panigrahi [CLP24]. Their Claim 3.6 supplies the hazard bound underlying . We prove the needed form with original edges counted once and each copy running at rate . Our contribution is to turn this analytical structure into a pair-preserving sampling process, establish its polynomial relative second moment, and implement it with bounded polynomial resources.
Importance sampling also underlies the subquadratic graph algorithm of Cen, He, Li, and Panigrahi [CHLP24]. Their estimator samples cuts through a spanning-tree packing, together with sparsification and recursive contraction. Here the sampling space consists of contraction paths that preserve a representative pair; the paired-head hazard controls their likelihoods for hyperedges of every rank.
The path change of measure is the finite-state Feynman–Kac identity. Reciprocal multiplicity correction is a standard importance-sampling technique, exemplified by the coverage estimator of Karp, Luby, and Madras [KLM89, Section 5]. The paired-head hazard bound controls the estimator and ensures that the normalized absorption rate is nonnegative.
State-dependent importance sampling has also been used to estimate network unreliability. L'Ecuyer, Rubino, Saggadi, and Tuffin [LRST11] use minimum-cut approximations to guide sequential edge revelations and correct them by likelihood ratios. Their analysis allows nonuniform edge probabilities and establishes bounded relative error for a fixed topology in a rare-event limit. Our guarantee is uniform over explicitly represented arbitrary-rank hypergraphs and supplies a polynomial-size relative-variance bound together with worst-case polynomial bit complexity.
Guo and Jerrum [GJ19] use cluster popping to approximate all-terminal reliability, the probability that an ordinary graph remains connected. Feng, Fu, and Guo [FGG26] give an FPRAS for two-terminal connectivity in directed and undirected graphs and prove #BIS-hardness for undirected two-terminal unreliability. Our target is the probability that the surviving hypergraph has at least two connected components.
2 Cuts and polynomial preprocessing
For , let
Its cardinality counts edge labels, including parallel edges. If , define . For connected . Failure of every edge in one minimum cut implies disconnection, so
Lawler's directed cut representation [Law73] gives the following preprocessing lemma.
Lemma 2.1. The integer is computable in polynomial time in the explicit hypergraph input length.
Proof. Fix an original vertex . Form a directed graph with the original vertices and two auxiliary vertices per edge label. Insert with capacity 1, and, for each incidence , insert and with capacity .
A vertex bipartition with source side extends to a directed cut of capacity : place both auxiliary vertices of an edge contained in one side on that side, and put on the source side and on the other side for a crossing edge. No capacity- arc crosses. Conversely, a directed cut of capacity at most crosses no such arc. A crossing hyperedge then forces onto the source side and onto the other side, so its unit arc crosses. Thus a minimum directed cut equals the minimum hypergraph cut separating these vertices.
Minimize over . Every nontrivial cut separates from some such , so this gives . The gadget has vertices and arcs. Integral augmenting-path maximum flow suffices: the flow value is at most , every augmentation increases it by at least one, and each residual-path search takes polynomial time. At termination, the vertices reachable from the source in the residual graph define a cut of the same value. The computations therefore have polynomial bit complexity.
The boundary cases can be resolved exactly. Return 0 if . For , return 1 if the input is disconnected. For a connected input, return 0 at and 1 at . Connectivity is tested by merging the vertices of each edge. Henceforth,
3 A common representative contraction process
A marked state is a partition of into blocks, each with one distinguished original vertex, its representative. Initially the blocks are singletons. Write for the representative set and for the number of blocks.
For each original edge , maintain two labeled copies and . Their current endpoints are the blocks meeting . An edge with at most one endpoint is a loop in the quotient and remains a loop after all subsequent contractions. For a nonloop, copy 0 has the endpoint with the smallest representative as head, and copy 1 has the endpoint with the largest representative as head. A contraction merges all endpoints, retains the head representative, and deletes the others. The two heads are distinct and are recomputed after every contraction. This rule depends only on the marked state and copy label, so every pair-specific proposal below uses the same original process.
Definition 3.1. The original process gives each nonloop labeled copy contraction rate 1/2. Rates add when distinct labels induce the same marked-state transition. Loops induce no state transition.
Equivalently, the copies have independent rate-1/2 exponential first-arrival times. The first arrival for an edge contracts it, after which both copies are loops. Independent Poisson clocks give the same process: all rings after an edge becomes a loop have no effect. Thus every current nonloop copy retains its original rate after earlier contractions.
Lemma 3.2. At , the blocks under have the distribution of the connected components after independent edge failures with probability . In particular,
Proof. The minimum of the two independent rate-1/2 arrival times of an original edge has rate 1, so the probability of no arrival by is , independently across edge labels. For any set of arrived edges, contraction in any order gives their connected-component partition. The retained representatives affect the marks but not this partition.
Each effective contraction decreases , so there are at most effective jumps. Deleted representative labels never return; survival of an original pair is therefore a monotone path event.
4 The paired hazard bound and safe suppression
Fix . While both labels survive, their blocks are distinct. A copy contraction is safe if it retains both labels, and killing otherwise. If and are the respective numbers of nonloop copies, write
If counts original nonloop edge labels, then
Lemma 4.1 (Paired representative hazard). In every marked quotient state in which a and b both survive,
Proof. Let be the blocks represented by , and let count original edge labels crossing their block cuts. Both blocks are nonempty proper subsets, so . An edge incident to exactly one protected block has that block as a non-head endpoint in at least one copy, contributing at least 1/2 to the killing rate. An edge incident to both blocks destroys at least one protected representative under either head choice, contributing 1. Summing gives
The factor 1/2 is the copy rate. This is the paired-head argument of [CLP24, Claim 3.6] with original edge labels counted once.
Definition 4.2. The safe process retains each safe copy contraction at rate 1/2 and suppresses each killing copy contraction. Suppressed copies remain available: at every new state, all original labels are reexamined and each currently safe nonloop copy again has rate 1/2.
Under the protected pair always survives, so and there are at most effective contractions. Its holding rate is . When this rate is zero the state remains fixed, and the likelihood continues to accumulate through the terminal horizon. This includes a path that has already reached two blocks. These conventions specify the proposal law completely and will also be used in its finite-bit implementation.
5 Likelihood and inverse multiplicity
The two ingredients of the estimator are a likelihood correction for protecting a pair and a multiplicity correction for the pairs surviving on one path. We derive them separately.
Lemma 5.1 (Safe path identity). For every bounded measurable path functional on paths retaining through time ,
The right-hand product is zero when does not survive.
Proof. Fix a safe labeled sequence with states and jump times . Set , , and . The two laws assign the same rate to each listed jump. Their densities differ only in the probability of waiting between these jumps and from the last jump to the observation time. The original density for these jumps and no further effective jump before is
whereas the safe density is
Their ratio is the weight in (5.1). The term accounts for the final holding interval, including when or the safe exit rate vanishes. For example, if , the proposal stays at until , while the original process avoids a killing jump during that interval with probability . This factor remains part of the ratio even though the proposal makes no further jump.
Summing over safe sequences and integrating over their jump times gives the identity. There are at most jumps. The labels distinguish transitions that produce the same state change.
Summing their rates gives the same identity for unlabeled paths. Since deleted representatives never return, these are exactly the original paths retaining w at time T.
Set . Choose uniformly from the initial pairs, sample to time , and define
Its denominator is positive on every proposal path.
Theorem 5.2. The estimator (5.2) satisfies
Proof. Apply Lemma 5.1 with and average over the initial pair:
On a path ending with representatives, exactly initial pairs survive. On a path ending with one block, every summand is zero. Lemma 5.1 has expressed every summand under the same law , so the sum can be evaluated on one marked trajectory. The final representative set determines both the surviving pairs and their common denominator. Because the head rule is common to all pairs, this count applies to every choice of the initially protected pair.
Lemma 4.1 gives integrated hazard at least , while the denominator in (5.2) is at least one. Hence , and . Taking expectations and using (2.1) proves the last bound.
The relative variance of the ideal estimator is at most . The proof also gives directly from representative pairs. The next two sections convert this estimator into a procedure with a bounded number of rational operations and random bits.
6 Normalization by an absorbing process
Write
The normalized version of (5.2) is
The residual rate in the exponent is nonnegative, so the corresponding weight can be realized as a survival probability.
Definition 6.1. For each protected pair , the process retains every safe contraction at rate and has a transition from each live state to an absorbing cemetery state at rate
Its terminal reward is
The cemetery rate is nonnegative by Lemma 4.1, and the live exit rate is
All rates are half-integers.
Proposition 6.2. Choose uniformly and run to time . Then satisfies
Proof. For a safe path, its density under without absorption equals its density times . The holding-density calculation in Lemma 5.1, including the terminal interval, proves this identity. Equivalently, one can first sample a path and then add an absorption clock with the piecewise constant rate along it. Conditional on that path, the probability of reaching without absorption is exactly the displayed exponential. Multiplying this probability by the live terminal reward gives , the normalized likelihood estimator. Absorbed paths have reward zero. Averaging over therefore gives . Finally .
The variance bound and the lower bound allow a small additive bias from finite precision while preserving relative accuracy.
7 A bounded finite-bit sampler
Write with integers , let be the binary length of , and put . The fraction need not be reduced. Since ,
Logarithms are natural unless a base is shown. We control three errors: approximating the horizon, discretizing time, and sampling rational categorical probabilities with a fixed number of bits.
7.1 A rational approximation to the horizon
Lemma 7.1. For every positive rational , a nonnegative rational with
can be computed in time polynomial in the encodings of and in when .
Proof. Integer comparisons find with . Then and . For , let and
Integrating the geometric series gives
The nonnegative tail is at most . Choose the smallest integer with , and set . This lower approximation to has error at most .
There are terms. The rational bases have polynomial bit length, and exact rational summation has polynomial bit complexity. The product of all term denominators has polynomially many bits in and .
For the algorithm, choose
Then . The horizon tolerance makes , and the choice of the number of time steps ensures . These are the two total variation budgets proved below. The factor accounts for the largest possible terminal reward when converting a distributional error into an expectation error. All precision parameters are found by exact rational comparisons.
7.2 Rational Euler transitions
For a live state and a fixed protected pair, one Euler step assigns probabilities
These are nonnegative rationals summing to one by (6.4). The cemetery remains absorbing. There are at most categories; categories of probability zero may be omitted. A self-loop preserves the availability of every copy. After a contraction, recompute the quotient endpoints, heads, and safe/killing classification. The current partition, representatives, and incidence list suffice for each update, irrespective of the size of the full state space.
Lemma 7.2. With exact categorical draws, the total variation distance between L Euler steps and at time is at most
The distance between at times and is at most .
Proof. Uniformize at rate . At each ring of the Poisson clock, apply a state-dependent kernel : each safe copy has probability , the cemetery has probability , and the residual mass is a self-loop. Equation (6.4) makes this a stochastic kernel; it is the identity at the cemetery. Thinning recovers the required rates. Thus the exact transition over time is a mixture of with , and the Euler transition uses .
For , comparing the masses at 0, 1, and at least 2 gives
Applying a common kernel contracts total variation. The one-step discrepancy is therefore at most , uniformly in the state. To accumulate the errors, couple the two chains whenever their current states agree. Conditional on agreement up to a given step, the probability of their first disagreement at that step is at most . Summing over the possible first-disagreement steps bounds the total discrepancy by , which satisfies (7.4) by (7.2). The uniform bound makes this coupling valid even though transition probabilities depend on the current state.
To compare the two horizons, couple the processes along a common uniformized trajectory up to the shorter horizon. The states agree unless a ring occurs in the remaining interval, whose probability is at most .
7.3 Categorical draws with a fixed bit budget
Choose the smallest integer such that
This choice can be made by repeated doubling and exact rational comparison. For a rational categorical distribution, use fair bits to generate a uniform integer and select the half-open cumulative interval containing . Comparisons with rational endpoints are performed exactly by cross multiplication. Use the same procedure for the initially uniform distribution on pairs.
Lemma 7.3. For a distribution with at most categories, this draw has total variation error at most . The error over the initial pair and at most updates is at most .
Proof. Couple with . The selected categories agree unless a cumulative boundary lies between them. For each boundary, the set of draws that cross it has measure at most , which gives the bound . A boundary exactly on the grid changes only a null set in the continuous draw.
Initially there are categories. At each later step, condition on the past and couple the draws when their states agree. There are at most categories, so a union bound on the step of the first discrepancy gives . Absorption permits skipping the remaining updates.
7.4 The single-sample procedure
Generate one normalized sample as follows.
-
Use a fresh -bit draw to select a pair from the uniform target distribution on . Initialize the singleton state.
-
Perform Euler steps using fresh -bit draws with probabilities (7.3). Each step contracts a safe copy, leaves the state unchanged, or enters the cemetery. Upon absorption, return 0.
-
After live steps, return the rational reward .
The preprocessing values are shared across independent samples. Both the number of steps and the number of random bits have fixed upper bounds.
Proposition 7.4. For ,
Proof. Compare the exact process at with the exact process at , then with the exact Euler simulation, and finally with its fixed-bit implementation. Lemmas 7.2 and 7.3 bound each total variation discrepancy by . For a reward in , the difference in expectations is at most times the total variation distance, proving the bias bound. The unchanged reward range gives . Since and , .
The bias is additive in a normalized quantity with mean at least one. Thus the precision budget depends on and the input parameters even when is very small.
8 Confidence amplification and bit complexity
Set
Let be the smallest positive odd integer with . Repeated doubling finds . Generate independent batches of samples, let be their exact rational averages, and let be their median. Return
All samples and categorical draws use independent random bits.
Lemma 8.1. The output (8.2) satisfies (1.1).
Proof. Proposition 7.4 and Chebyshev's inequality imply
On the complementary event,
If a strict majority of the batch averages lie in , then the median also lies in that interval. Independence and a union bound over subsets of inaccurate batches bound the probability that a majority are inaccurate by . Multiplication by the positive exact rational gives the desired relative guarantee. Clipping at 1 cannot increase the distance to any probability in .
Lemma 8.2. The algorithm has bounded polynomial running time and random-bit usage in the parameters of Theorem 1.2.
Proof. Lemma 2.1 handles preprocessing. Store a marked state as an array mapping each original vertex to its representative. Scanning the incidences of an edge identifies its quotient endpoints, smallest and largest representatives, and the representatives killed by each head choice. Boolean marking arrays or dictionaries suffice. A contraction updates the array in operations. Thus one full scan and update uses elementary combinatorial operations, apart from polynomial-bit arithmetic and indexing costs.
Lemma 7.1 gives with polynomial encoding length. The parameter bounds are
Each sample uses at most updates and random bits. Transition probabilities are formed from , half-integer rates bounded by , and , so their bit lengths and the cost of exact cumulative comparisons are polynomial.
Each terminal reward has numerator and denominator at most . Exact summation of rewards has denominator length at most , even if performed by multiplying all denominators. Averaging and median comparisons are therefore polynomial. Finally has encoding length because . Integer exponentiation and the final multiplication also have polynomial bit complexity.
The total number of Euler updates is conservatively bounded by
Combining this count with the per-update work, rational arithmetic, and preprocessing gives a polynomial bound on the bit complexity. The discretization provides a direct implementation; faster implementations are discussed in Section 11.
Proof of Theorem 1.2. Preprocessing gives the exact boundary answers. In the remaining cases, Lemma 4.1 and (6.4) ensure valid rates and probabilities. Lemma 8.1 proves the approximation guarantee, and Lemma 8.2 gives the worst-case bounds on running time and random-bit usage. □
9 Independent rational failure probabilities
The same representative process handles unequal failure probabilities after replacing unit rates by logarithmic rates. The implementation requires two additional steps: relative stability under rate rounding, and exact weighted minimum-cut computation. These preserve relative accuracy even for rare disconnection events.
9.1 Deterministic edges and relative stability
Discard empty and singleton edges, and remove repeated incidences within each edge. Contract the components generated by edges with , which are always present, and delete edges with , which are always absent. Replace the remaining incidences by quotient endpoints, remove loops, and retain each parallel edge label as an independent trial. This preserves connectivity in every realization. Return 0 if at most one quotient vertex remains, and 1 if the remaining support is disconnected. Otherwise relabel the quotient by . All subsequent parameters refer to this connected quotient, with , , and . Write for its unreliability.
Lemma 9.1 (Product-measure relative stability). Let be an increasing event in independent failed-edge indicators. If and
then
Proof. With all other coordinate distributions fixed, the event probability is as a function of one failure probability, where
Here conditioning means fixing the state of this edge and sampling all others independently. This interpretation also defines both quantities when the failure probability is an endpoint. If , positivity gives . Change one coordinate at a time and multiply the inequalities.
Set
For , let be the binary length of . Lemma 7.1 gives a rational lower bound with . Put . Choose the smallest nonnegative integer with , and set
The first approximation gives . Rounding upward to the dyadic grid adds less than , so the two errors together are at most . Consequently,
The rates have a common denominator and polynomial bit length; their total is also polynomially bounded in the input length. Upward rounding preserves positivity even for very small original rates.
Let and define a comparison product measure. The algorithm operates directly on the rational rates. Since disconnection is increasing in failures, Lemma 9.1 implies
Upward rounding also gives ; the symmetric bound above is convenient when combining errors. Indeed, each ratio lies between and 1. The stability lemma accumulates these coordinatewise logarithmic errors by their sum, which is at most . Equation (9.4) uses the slightly larger budget . Thus the required precision is set by the number of edges and the requested relative error, including when the original unreliability is very small.
9.2 An exact rational weighted minimum cut
Define
The connected support and positive rates give .
Lemma 9.2. The value can be computed exactly in polynomial time in the explicit input and rate encodings.
Proof. Use the gadget of Lemma 2.1, with capacity on and on incidence arcs. Every vertex cut extends to a cut in the gadget with the same weighted hyperedge-cut capacity. A minimum cut from the root to another original vertex has value at most , so it crosses no incidence arc. The same argument then identifies its value with the corresponding weighted hypergraph cut. Minimize over the targets.
Scale by to obtain integer capacities of polynomial bit length. Use shortest-augmenting-path maximum flow. For the capacity-independent complexity bound, observe that breadth-first residual distances from the source never decrease after an augmentation. If a residual arc is saturated on a shortest path and is later saturated again in the same direction, an intervening path must have used its reverse, increasing the tail distance by at least two. Each directed residual arc can consequently be saturated on a shortest augmenting path only times, where is the number of gadget vertices. Charging each augmentation to a saturated arc gives augmentations and elementary work, where counts gadget arcs. Arithmetic on the scaled capacities has polynomial bit complexity. Divide the final value by .
This capacity-independent augmentation bound keeps the running time polynomial in the bit length of the scaled capacities.
9.3 The weighted normalized process
Give the two copies of edge rate and run the original process to horizon 1, with the same minimum- and maximum-representative head rule. The first arrival has rate , independently across labels. Thus the component partition at time 1 has the distribution induced by the failure probabilities .
For a protected pair , let be the total safe and killing rates. In the paired-head argument, an edge incident to exactly one protected block contributes at least to the killing rate, and an edge incident to both blocks contributes . Hence, for protected blocks ,
The two block cuts are original nontrivial vertex cuts. Labels and rates remain attached to their original edges throughout contraction.
Suppress the killing transitions while keeping every safe rate and leaving suppressed copies available. The density calculation of Lemma 5.1 still applies: actual transition-rate factors agree, and the holding-time density factors have ratio , including the final interval. Uniformly choosing the initial pair and dividing by therefore gives an unbiased estimator of .
For normalization, add a cemetery transition of rate while retaining the safe rates. The total live exit rate is at most . Let at the cemetery and in a live terminal state. Proposition 6.2 now gives
The lower bound follows by failing every edge of one weighted minimum cut, an event of probability . Every rate of the normalized process is rational and explicitly computable.
9.4 Finite sampling and concentration
Put
An Euler step assigns probability to a safe copy of , probability to the cemetery, and the residual probability to the current state. These are nonnegative since . Use a fixed -bit draw for the initial pair and every step, where is the smallest integer satisfying
After at most updates return the rational reward .
Uniformization at rate gives Euler error at horizon 1. Lemma 7.3 gives the same bound for fixed-bit sampling. The horizon is exact. Therefore, for ,
Take samples per batch and the same odd number of independent batches with . Chebyshev's inequality at threshold gives per-batch failure probability at most
Thus their median satisfies, with probability at least ,
The sample counts and random-bit budgets are fixed in advance; all rewards, averages, and comparisons are rational.
9.5 A rational relative normalization
To recover , we need relative accuracy for even when it is exponentially small.
Lemma 9.3. For rational , a positive rational satisfying
can be computed in time polynomial in the bit encodings, the numerical bound , and .
Proof. Use when . Otherwise put and . We first approximate , which is bounded below by a positive constant, and then take the th power. An error of order in each factor will give an error of order in the product. For
the alternating-series remainder is at most . Choose the smallest for which this bound is at most and set . The choice has , because factorial growth eventually exceeds geometric growth. As ,
In particular . Bernoulli's inequality and give
The lower error is at most . Since , the estimate for bounds the upper error by . All computations are exact rational operations. Finally, is polynomially bounded in the input length by (9.3), so exponentiation produces a rational number with polynomially many bits.
Proof of Theorem 1.1. Return the boundary answers from preprocessing, or otherwise return . The three approximations enter through the factorization
The factors account respectively for sampling the normalized mean, approximating the exponential normalization, and rounding the failure rates. On the event (9.11), which has probability at least , the ratio of the unclipped output to lies between
The lower bound is at least , by and the product inequality for factors in [0,1]. The logarithm of the upper bound is at most . Convexity gives
where and . Clipping at 1 preserves the guarantee.
Preprocessing uses the explicit incidence list. Rates have polynomial encoding length, and Lemma 9.2 computes the minimum cut exactly with polynomial bit complexity. The bound on in (9.3) makes polynomial in the input length and . The bit width , batch size , and number of batches are polynomial in the required parameters. State updates use the scans of Lemma 8.2, Lemma 9.3 supplies rational normalization, and exact averaging has the same denominator bound as before. Thus the running time and random-bit usage are polynomially bounded for every random outcome.
10 A general formulation with surviving witnesses
The estimator combines a path-weighting identity with a hazard bound. The following theorem states the identity in terms of surviving witnesses. In the hypergraph application, paired heads provide the hazard bound and an efficient proposal process.
Theorem 10.1. Let be a finite-state continuous-time Markov chain with bounded rates, observed until time . Let be a finite set of witnesses, all initially alive. A witness may die at a jump and never revives; the state records the surviving set . Let .
For each , suppress exactly the transitions destroying , retain all other rates, and denote the resulting chain by . Let be the total suppressed rate. Choose uniformly, sample , and put
Then . If every suppressed path satisfies , then
whenever .
Proof. On a path preserving , the original holding rate exceeds the suppressed holding rate by , and the factors corresponding to actual jump rates agree. The density ratio is the exponential in (10.1), including the final holding interval. Thus
A finite-state chain with bounded rates almost surely makes only finitely many jumps on a finite interval. Summing over jump sequences is therefore valid: use monotone convergence for nonnegative functionals and subtraction for bounded signed ones. Take on paths retaining and average over . The pathwise identity
with zero on paths with no survivors, proves unbiasedness. The assumed lower bound on the integrated hazard yields the range bound, and gives the second moment.
For hypergraphs, witnesses are original representative pairs, so and when . Paired heads supply . The minimum-cut bound then gives polynomial relative variance. The proposal, terminal multiplicity, and normalization are all computable from a polynomial-size state. Together, these properties turn the identity into an approximation algorithm.
11 Further directions
The construction establishes polynomial-time relative approximation for all-terminal disconnection in explicit hypergraphs with independent rational edge failures. Its sampling law depends on four structural properties: a head rule common to all protected pairs, persistent availability of suppressed copies, unchanged safe rates, and likelihood accumulation through the terminal horizon. The final number of representatives determines the multiplicity correction.
The rational Euler implementation gives an explicit worst-case bound on bit complexity. A faster implementation could reduce the discretization cost or use an event-driven sampler with a fixed precision budget. Other connectivity events would require witness families and hazard certificates suited to their own structure. The general identity in Theorem 10.1 makes these requirements explicit.
Appendix A gives an exact recurrence that verifies the likelihood and multiplicity identities on finite instances.
A Exact polynomial checks on small instances
Fix a protected pair and safe state . Let count original nonloop labels and define
with the integrand zero whenever the pair does not survive, including paths ending with one block. Its backward equation is
The sum retains safe copy labels. Every effective contraction turns its contracted original edge into a loop, so for every successor in the sum. Inductively, is a rational linear combination of for integers .
More explicitly, suppose is known for each safe successor. Assign the initial coefficient to and, for each safe copy and each successor coefficient, add
The denominator is positive because . Variation of constants proves (A.1). At , replace by to obtain a polynomial in with rational coefficients.
Summing the initial-state polynomial over all unordered pairs gives one expression for unreliability. Independently, enumerate surviving subsets and add
whenever has at least two components. Equality of the coefficient vectors verifies both the likelihood and final-pair identities for every on that hypergraph. The recurrence also applies to disconnected inputs with .
For positive integer weights , replace by the total nonloop weight and each copy rate by . This checks the weighted process with . Total nonloop weight decreases strictly at every safe contraction, so the denominators in the recurrence remain positive. An exact-arithmetic implementation evaluates both recurrences and checks the hazard at every state reached for a protected pair.
The implementation verifies all 2,048 simple hypergraphs on four labeled vertices with edges of size at least two, 100 fixed-seed small multihypergraphs with unit weights, and 100 with weights in . Across these families, it visits 77,719 states with a protected pair. Every hazard comparison holds, and every pair-sum polynomial agrees coefficient by coefficient with direct enumeration. The computational record includes the random seed and the number of states examined.
Acknowledgments
The author used OpenAI Codex for exposition, elaborating and checking proof details, reference verification, and LaTeX preparation, and takes full responsibility for the manuscript.
References
[CHLP24] Ruoxu Cen, William He, Jason Li, and Debmalya Panigrahi. Beyond the quadratic time barrier for network unreliability. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1542–1567, 2024. doi:10.1137/1.9781611977912.62.
[CLP24] Ruoxu Cen, Jason Li, and Debmalya Panigrahi. Hypergraph unreliability in quasi-polynomial time. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1700–1711, 2024. doi:10.1145/3618260.3649753. Author version: arXiv:2403.18781.
[CLP25] Ruoxu Cen, Jason Li, and Debmalya Panigrahi. Network unreliability in almost-linear time. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pages 120–131, 2025. doi:10.1145/3717823.3718140. Author version: arXiv:2503.23526.
[FGG26] Weiming Feng, Yucheng Fu, and Heng Guo. Approximating two-terminal network reliability. arXiv:2608.02523v1, 2026. https://arxiv.org/abs/2608.02523v1.
[GJ19] Heng Guo and Mark Jerrum. A polynomial-time approximation algorithm for all-terminal network reliability. SIAM Journal on Computing, 48(3):964–978, 2019. doi:10.1137/18M1201846.
[Kar99] David R. Karger. A randomized fully polynomial time approximation scheme for the all-terminal network reliability problem. SIAM Journal on Computing, 29(2):492–514, 1999. doi:10.1137/S0097539796298340.
[KK15] Dmitry Kogan and Robert Krauthgamer. Sketching cuts in graphs and hypergraphs. In Proceedings of the 2015 Conference on Innovations in Theoretical Computer Science, pages 367–376, 2015. doi:10.1145/2688073.2688093.
[KLM89] Richard M. Karp, Michael Luby, and Neal Madras. Monte-Carlo approximation algorithms for enumeration problems. Journal of Algorithms, 10(3):429–448, 1989. doi:10.1016/0196-6774(89)90038-2.
[Law73] Eugene L. Lawler. Cutsets and partitions of hypergraphs. Networks, 3(3):275–285, 1973. doi:10.1002/net.3230030306.
[LRST11] Pierre L'Ecuyer, Gerardo Rubino, Samira Saggadi, and Bruno Tuffin. Approximate zero-variance importance sampling for static network reliability estimation. IEEE Transactions on Reliability, 60(3):590–604, 2011. doi:10.1109/TR.2011.2135670.