Home / Guides / MOCUS vs BDD — when each wins
Algorithms · Comparative

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.

≈ 17 min read Worked tree: rail / SPAD (Article 1) References: IEC 61025, Bryant (1986), Rauzy (1993)

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:

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:

  1. 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).
  2. 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.

The truncation knob — and what it costs you Cut-set codes for large models generally have a probability cut-off: if a candidate cut's probability falls below it during expansion, the cut is dropped and the algorithm proceeds. This keeps memory bounded but makes every downstream metric — P(TOP), F-V importance, RAW, RRW — an under-estimate by an unknown amount. In a high-safety-stakes submission you have to defend the choice of truncation level by re-running at progressively lower thresholds and showing convergence. A BDD doesn't have this problem because it never enumerates cuts in the first place — though it has its own limit, the size of the diagram (Step 3).

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:

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.

Why MOCUS users sometimes mistake BDD for "the same thing in different clothes" The two algorithms produce identical answers on small or sparse trees because the inclusion-exclusion terms are small and the cut-set count is manageable. The divergence appears at scale: Step 3 shows a 30-event tree with 15,625 minimal cut sets and a 30-node diagram. They are not the same algorithm in different clothes; they have different complexity laws, and at scale the difference decides whether the analysis terminates.

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⁻³:

TreeBasic eventsMinimal cut setsBDD decision nodes
SPAD (this article)98—
AND of 3 ORs of 3 events9279
AND of 4 ORs of 4 events1625616
AND of 6 ORs of 5 events3015,62530

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:

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 treeWhat to useWhy
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.

The pragmatic shortcut For a small coherent tree, use whichever your tool defaults to — both finish quickly with the same answer. The choice starts to matter with redundancy over wide ORs, heavy subsystem sharing or non-coherent gates. Then treat a cut-set truncation level as a parameter you have to defend, and ask your tool how it orders BDD variables and what it does when a diagram is too large.

Operational notes a reviewer will ask about

Where to go next

Sources