MOCUS vs BDD — when each algorithm wins
Fault-tree tools quantify a tree with one of two kinds of algorithm: MOCUS, a top-down substitution method that produces the minimal cut sets directly, or Binary Decision Diagrams (BDD), a Boolean-function representation that gives an exact top-event probability without enumerating cut sets at all. They scale very differently — for small trees you'll never notice; for large trees with heavy redundancy, the choice can decide whether the analysis finishes without truncation. This guide explains how each works, where each wins, and how to recognise which regime your tree is in.
Why this matters in practice
For the eight-event SPAD tree from Article 1, either algorithm finishes instantly. Large models are different: many more basic events, deep gate hierarchies and subsystems shared between many failure paths. Three things change at scale:
- Cut-set count explodes faster than you think. An OR of N independent ORs of M events each has N×M cut sets — linear, easy. An AND of N ORs of M events each has MN cut sets — exponential, fatal. Real systems are full of the second pattern (any redundancy is structurally an AND of OR), and MOCUS enumerates each one.
- Cut-set truncation introduces error. Cut-set codes for large models drop candidate cut sets whose probability falls below a cut-off. The truncated cuts become invisible to the rest of the analysis — including importance measures. BDD doesn't truncate; it computes the exact P(TOP) regardless of cut-set count.
- NOT gates break MOCUS's assumptions. Classical MOCUS assumes a coherent tree — no NOT, NAND, NOR or XOR. With those gates, minimal cut sets no longer describe the function exactly. A BDD represents the function itself, so it handles non-coherent trees without modification.
The practical question isn't "which algorithm is better" — neither dominates the other across all inputs. It's "given my tree, which one finishes faster, gives a more defensible answer, and supports the importance measures my standard requires?". The answer changes with tree size, tree shape, and the presence of non-coherent gates. Working through how each algorithm operates, in order, is the fastest path to that judgement.
Step 1How MOCUS works
MOCUS — Method for Obtaining Cut Sets — was proposed by Fussell and Vesely in 1972 and is still widely used to list minimal cut sets; FTA Studio uses it for the cut-set list it shows. It is a deductive top-down substitution. Starting from the top event, replace every gate with its children and apply two Boolean rewrites until no gate remains:
- Distribute AND over OR. If you reach an AND of two ORs, the result is the OR of the four pairwise ANDs.
(A ∨ B) ∧ (C ∨ D) → (AC) ∨ (AD) ∨ (BC) ∨ (BD). - Apply absorption. Whenever a candidate cut contains another candidate cut, the larger one is redundant.
{A, B, C} ∪ {A, B} → {A, B}. This is what guarantees the output is the set of minimal cut sets, not the (much larger) set of all cut sets.
Walked through on the SPAD tree (which Article 1 already developed), the substitution looks like:
TOP = G-001 ∨ G-002
= (BE-001 ∨ BE-002 ∨ BE-003) [expand G-001, OR]
∨ (G-003 ∧ G-004) [expand G-002, AND]
= BE-001 ∨ BE-002 ∨ BE-003
∨ ((BE-004 ∨ BE-005) ∧ (BE-006 ∨ BE-007 ∨ BE-008))
= BE-001 ∨ BE-002 ∨ BE-003
∨ (BE-004·BE-006) ∨ (BE-004·BE-007) ∨ (BE-004·BE-008) [distribute AND over OR]
∨ (BE-005·BE-006) ∨ (BE-005·BE-007) ∨ (BE-005·BE-008)
Nine cut sets — three single events and 2 × 3 = six pairs — and no absorption needed (no cut is a superset of another). These are the nine minimal cut sets Article 1 lists.
The cost-of-MOCUS story is in the AND distribution. Two ORs combined under an AND multiply their child counts. An AND of three independent 3-event ORs becomes 27 cut sets; an AND of four 4-event ORs becomes 256; an AND of six 5-event ORs becomes 15,625. These trees are not pathological — an AND of ORs is what redundancy over multi-cause channels looks like.
Step 2How BDD works
Binary Decision Diagrams were introduced by Randal Bryant in 1986 as a canonical representation of Boolean functions. They were first applied to fault trees in 1993, by Coudert and Madre and by Rauzy. Where MOCUS hands you a list of cut sets and asks you to sum them, BDD hands you a Boolean function in a form that lets you compute P(TOP) directly, without ever enumerating cuts at all.
Shannon decomposition — the one trick
Every BDD operation is built on one identity, called Shannon decomposition: any Boolean function f(x1, …, xn) can be split on any variable as
f = xi · f|xi=1 + ¬xi · f|xi=0
where f|xi=1 is the function with xi replaced by true (the "1-cofactor") and similarly for the 0-cofactor. Recursively applying this rule with a fixed variable order produces a directed acyclic graph: an interior node per variable encountered, two children (the 1-cofactor and 0-cofactor sub-BDDs), and two terminals (constants 0 and 1). The reduction rules are simple — eliminate any node whose children are identical, and share any two isomorphic subgraphs — and they produce a canonical form: two Boolean functions are equal iff their reduced ordered BDDs are isomorphic.
Worked example — the SPAD driver-and-protection branch
Take just gate G-002 from Article 1, the driver failing to stop and the train protection failing to stop the train: (BE-004 ∨ BE-005) ∧ (BE-006 ∨ BE-007 ∨ BE-008). Pick a variable ordering — say BE-004 < BE-005 < BE-006 < BE-007 < BE-008 — and decompose:
G-002 = BE-004 · (G-002|BE-004=1) + ¬BE-004 · (G-002|BE-004=0)
G-002|BE-004=1 = (1 ∨ BE-005) ∧ (BE-006 ∨ BE-007 ∨ BE-008)
= BE-006 ∨ BE-007 ∨ BE-008
G-002|BE-004=0 = (0 ∨ BE-005) ∧ (BE-006 ∨ BE-007 ∨ BE-008)
= BE-005 ∧ (BE-006 ∨ BE-007 ∨ BE-008)
The subgraph BE-006 ∨ BE-007 ∨ BE-008 appears in both branches — the BDD shares it as a single node, no duplication. The full BDD has five interior nodes (one per variable) plus the 0 and 1 terminals — five nodes for five variables, the floor for this function.
To get P(G-002), walk the BDD in one pass, applying the recurrence at each interior node:
P(node v) = P(var(v)) · P(high-child of v) + (1 − P(var(v))) · P(low-child of v)
Plugging in Article 1's probabilities per approach (BE-004 = 1.00×10⁻⁴, BE-005 = 2.00×10⁻⁵, BE-006 = 4.38×10⁻⁴, BE-007 = 1.20×10⁻⁴, BE-008 = 1.20×10⁻⁵):
P(BE-006 ∨ BE-007 ∨ BE-008) = 1 − (1 − 4.38×10⁻⁴)(1 − 1.20×10⁻⁴)(1 − 1.20×10⁻⁵)
≈ 5.699×10⁻⁴
P(BE-005 ∧ (BE-006 ∨ BE-007 ∨ BE-008)) = 2.00×10⁻⁵ × 5.699×10⁻⁴ ≈ 1.140×10⁻⁸
P(G-002) = P(BE-004) × 5.699×10⁻⁴ + (1 − P(BE-004)) × 1.140×10⁻⁸
≈ 5.699×10⁻⁸ + 1.140×10⁻⁸
≈ 6.839×10⁻⁸
This is the exact probability, and it is the 6.84×10⁻⁸ per approach that FTA Studio's engine gives for G-002 in Article 1. The rare-event approximation sums the six pair cut sets instead: (1.00×10⁻⁴ + 2.00×10⁻⁵) × (4.38×10⁻⁴ + 1.20×10⁻⁴ + 1.20×10⁻⁵) = 6.840×10⁻⁸, which differs from the exact value only in the fifth significant figure, because every term here is small. The point isn't that BDD gave a different answer here — it's that BDD's answer is structurally exact for any tree, while the rare-event sum depends on the probabilities being small.
Variable ordering — where BDD lives or dies
The Shannon decomposition is correct under any variable order, but BDD size can vary by orders of magnitude across orderings. The classical example (Bryant 1986) is the function x1x2 + x3x4 + … + x2n−1x2n:
- Good order
(x1, x2, x3, x4, …): BDD size O(n). - Bad order
(x1, x3, …, x2n−1, x2, x4, …): BDD size O(2n).
Finding the optimal ordering is computationally hard, so tools use heuristics. Common ones — depth-first, topological, weight-based — exploit the fact that fault trees have local sub-structures (a subsystem appears in several places), and putting the variables of the same sub-structure close together in the order keeps the BDD small. Most production tools choose the order automatically; some let you override.
Step 3The complexity story — what scales how
Both approaches are exponential in the worst case — MOCUS in the number of cut sets, a BDD in graph size under a bad ordering — but real fault trees have structure, and the two respond to it differently. The AND-of-ORs pattern from Step 1 shows it. Quantified with FTA Studio's engine, every leaf at 10⁻³:
| Tree | Basic events | Minimal cut sets | BDD decision nodes |
|---|---|---|---|
| SPAD (this article) | 9 | 8 | — |
| AND of 3 ORs of 3 events | 9 | 27 | 9 |
| AND of 4 ORs of 4 events | 16 | 256 | 16 |
| AND of 6 ORs of 5 events | 30 | 15,625 | 30 |
The cut-set count grows as MN; the diagram grows with the number of events. All three Q(top) values from the diagram match the closed form (1 − (1 − q)M)N. Two structural drivers explain the difference:
- Subsystem sharing. A bus or power supply appearing in many failure paths multiplies cut sets under MOCUS (each appearance distributes through the ANDs above it) but is one variable in a BDD, shared by every reference.
- Non-coherent gates. NOT, NAND, NOR and XOR introduce complementation. Minimal cut sets no longer describe such a function exactly — prime implicants are needed — while a BDD represents the function directly, because Shannon decomposition doesn't care about gate semantics.
The caveat on the BDD side is ordering: under a bad order the same function can need exponentially more nodes, and a diagram that exceeds memory is no better than a cut-set list that does. Tools therefore pick an order heuristically; FTA Studio uses a depth-first, first-occurrence order and, above a cap of 2,000,000 nodes, falls back to cut-set formulas and says so.
Step 4Choose the approach that matches your tree
| Your tree | What to use | Why |
|---|---|---|
| Small, coherent, hand-built | Either | Both finish quickly and agree. The cut-set list is still the review deliverable: reviewers want to see "this single failure causes the top event" or "these two failures must coincide". |
| Redundancy over wide ORs, shared subsystems | BDD for the number | The cut-set count grows multiplicatively, and a cut-set code then needs truncation, whose effect on the result you have to show. A BDD gives the exact number; cut sets can still be listed for review. |
| NOT, NAND, NOR or XOR gates | BDD (or exact enumeration for small trees) | Minimal cut sets do not represent a non-coherent function exactly. |
| Cut sets are the deliverable | Cut-set list, from MOCUS or from the diagram | The quantification and the list can come from different algorithms, as long as the list is complete or its truncation is stated. |
| Uncertainty bands — Monte Carlo over leaf values | BDD | The structure does not change between samples, so the diagram is built once and re-evaluated with new probabilities in one pass per sample. |
What about FTA Studio? It computes Q(top) exactly from a reduced ordered BDD of the whole tree, for every gate type, and takes the importance measures from the same diagram. It lists the minimal cut sets with MOCUS for review and CSV export; if MOCUS hits its size limit on a coherent tree, the cut sets are derived from the diagram and the total count is stated. Above the diagram's node cap, or for trees with mutually exclusive groups, it falls back to inclusion-exclusion or a conservative bound over the cut sets and says so on the result. Its JSON export is FTA Studio's own format.
Operational notes a reviewer will ask about
- Cross-validation. If your tool offers both routes, run both on the same tree and compare. A discrepancy beyond rounding usually means truncation set too aggressively on the cut-set side, or a fallback you didn't notice on the BDD side.
- Common-cause failure groups. Neither algorithm handles CCF implicitly — you declare the groups. In the β-factor model the common-cause event becomes an extra basic event shared by the group's members: more cut sets for MOCUS, one more variable for the BDD.
- Importance-measure parity. F-V from cut-set sums and F-V from BDD cofactors agree to within the rare-event approximation — until truncation drops cut sets, after which cut-set-based importance is biased low.
- Tool versioning. Record the tool name and version with the analysis, and re-validate if either changes mid-project.
Where to go next
- Try it on your own tree. Open FTA Studio — every fault tree gets an exact Q(top), a cut-set table and importance measures.
- Read the importance-measures guide. Article 2 walks through the four measures on the same SPAD tree.
- For PRA-scale models, look at the PRA codes. SAPHIRE, developed by Idaho National Laboratory for the NRC, obtains minimal cut sets and quantifies from them; RiskSpectrum PSA converts the fault and event trees to a minimal cut set list and offers a BDD for exact quantification.
- For exchanging models between PRA tools, the Open-PSA Model Exchange Format is the open format; XFTA is a fault-tree engine by Antoine Rauzy that reads it. FTA Studio does not import or export it.
Sources
- PTC Windchill Risk and Reliability reference: MOCUS proposed by Fussell and Vesely in 1972
- Basgöze, Volk, Katoen, Khan and Stoelinga, BDDs Strike Back (NFM 2022, LNCS 13260), references: Bryant 1986; Coudert and Madre 1993; Rauzy 1993; the Open-PSA Model Exchange Format; XFTA
- NUREG/CR-7039 Vol. 2, SAPHIRE 8 Technical Reference (Idaho National Laboratory, 2011)
- RiskSpectrum PSA product page: minimal cut set list and BDD quantification