Abstract
Keywords
Introduction
The fault tree (FT) is frequently used to analyse safety and reliability requirements of complex engineering systems. At the beginning of the 1960s, FT was introduced by Bell Laboratories for the purposes of evaluating the Minuteman I launch control system. Afterwards it was further developed by numerous civil and military contributors in order to utilize computer-based probabilistic risk assessment (PRA) tools. 1 Usually, FT models are depicted graphically in form of a tree structure which represents a logical connection between possible events during the deductive analysis of the undesired top event.
Figure 1 presents a simple model where the top event (gate G1) shows logical connections between basic events (E1–E6) leading to G1 gate. This kind of logical connection can be written in form of logical functions. The graphical view below shows the logical function G1 = E6 ∨ (2, (E1 ∨ E2), E5, (E3 ∧ E4)) where G3 operation (tagged) represents ‘2-out-of-3’ voting OR logical expressions, meaning that it happens, if at least two of three inputs have occurred.

Example of a simple fault tree.
In general, FTs are used to investigate potential faults, modes and causes as well as to quantify their contribution to a system’s unreliability or to find importance factors for the components’ unavailability. 2 Traditionally, FT models are initially analysed qualitatively and then quantitatively. The qualitative analysis aims to find component failure lists which are essential and sufficient to cause the top event. These lists are often referred to as minimal cut sets and are widely employed in quantitative analysis of FT models. The typical quantitative assessment is performed on minimal cut sets to find the probability of occurrences of a top event and to compute the importance measures for various contributing events.
Binary decision diagram (BDD) structures were introduced by Lee 3 and Akers, 4 although the representation of logical functions with two-terminal graphs had been developed earlier by several mathematicians. 5 Akers systematically introduced BDDs and the basic terminology, though, the true popularity of the latter was achieved through Bryant’s 6 thesis, where the author developed modern graph-based algorithms to be worked with. Moreover, BDD variants optimized for specific areas of application were developed and analysed in the Wegener 7 paper. Since their introduction, it has become clear that the size of BDD representations of every logical function depends on the selection of a variable ordering scheme. BDDs in which this variable ordering scheme is kept equal at all paths from the top node are denoted as ordered BDD (OBDD). Whereas, OBDD representation reduced by the Bryant reduction algorithm is defined as the reduced OBDD (ROBDD). In this article, it is assumed that the ROBDD representation is used whenever the term BDD representation is mentioned.
A BDD approach to FT analysis (FTA) has been developed (Rauzy
8
) as an alternative to conventional methods which are based on Boolean algebra rewriting rules. Since BDDs uniquely encode Shannon decomposition of logical functions by means of shared subtrees, BDDs are usually built from FT models in a bottom-up approach. The bottom-up approach is carried out conveniently by means of the
For clarity sake of the bottom-up approach, let us illustrate how to build BDD for the logical expression (G4 ∧ G8) from the FT example (Figure 1), assuming that the variable ordering is defined as E3 < E1 < E6 < E4 < E2 < E5.
Then
Immediately after the Bryant seminal work, Friedman and Supowit 9 created an algorithm of exponential complexity for finding the optimal variable ordering. Several other algorithms were created afterwards, yet they are applicable only for small sized problems, typically up to 50 variables. Computing an optimal variable ordering, and by this the event ordering for FT analysis, happens to be a non-deterministic polynomial-time (NP)-hard problem; 10 however, the decision problem of improving variable ordering is NP-complete. 11 Therefore, the hardness of the problem justifies the use of heuristic approaches for finding a good initial event ordering scheme for FTA12,13 or an event tree analysis (ETA). 14
The following section briefly explains an optimal ordering algorithm for a special kind of
Related work

Example of
The optimal variable ordering scheme for
Method
In this section, we are going to detail our newly developed heuristic approach to the variable ordering scheme throughout these subsections ‘FT simplification’ techniques arising from common logical equivalence rules; ‘New ordering heuristic’, which is the most important part of the new approach and ‘An outline of the algorithm’ with an optional BDD size reduction step.
FT simplification
Before the application of an ordering method, the FT structure has been simplified as much as possible. One of the approaches is to split complex FT models into simpler FTs by means of the functional decomposition with respect to a small subset of basic events. 16 In this article, we perform a simpler approach based on logically equivalent formula rewriting rules 17 which may be applied iteratively as long as any changes are made in the FT, that is:
The associativity rule – elimination of all equivalence gates by exchanging the references into gates they represent
The K-of-N expansion rule – elimination of all K-of-N operators by rewriting them into equivalent AND/OR combinations according to the following rule of the gate expansion:
Application of the idempotent law rules on the FT to eliminate the terms with multiple equal gate inputs: X∧X≡X, X∨X≡X.
By applying the law of absorption rule to the AND/OR gates, the inputs are simplified by absorbing like terms: (X∧Y)∨X≡X, (X∨Y)∧X≡X.
From the given example, we show that the simple FT model has been modified by the application of K-of-N expansion rule (see Figure 3). The gate G3 operation is rewritten to the equivalent combination of the AND/OR operations (tagged) as follows

The G3 gate operation expanded to equivalent formula.
After the simplification steps, the FT has been traversed to find blocks of gates which behave like a single entity, that is, modularization. 19 Generally, two module finding algorithms are widely used to reduce the computational costs of BDD operations on the FT. The first one, derived by Kohda et al., 20 is based on formula rewriting rules to detect and define modules on the FTs composed from the gates with logical AND/OR operation only. The second method developed by Dutuit and Rauzy 21 uses a variation of the Tarjan algorithm for finding strongly connected graph components, thus being more universal since it does not depend on the gate operation. Both algorithms perform equally well on the common FT models with only AND/OR gates, consequently we employ the latter method as it does not depend on the gate operation. For instance, the simple FT model presented here entails the following module top gates: G8, G4, G3 and G1.
New ordering heuristic
Based on the algorithm for
Considering the above algorithm, the order for each gate is computed from the orders associated with the adjacent gates, which are considered from left to right (Line 5). In Line 6, we check the existence of shared events between orders; in case of their non-existence we proceed with the Sauerhoff algorithm (Lines 26–35). However, if we establish the existence of shared events the algorithm (Lines 7–24) alternatively proceeds with the implementation of our approach. For example, let us combine orders for gate G3 from intermediate gates after the simplification of the FT model. We assume that the orders
are computed for gates G31, G32 and G33, respectively. On the first pass, through our approach the order
0:π={(3,6) {E5:(1,2), E1:(1,2), E2:(1,2)}}, π2 ={(4,8) {E3:(1,2), E4:(1,2), E1:(1,2), E2:(1,2)}}
1:e1 = E5:(1,2), e2 = E3:(1,2), πn ={(2,4) {E3:(2,4)}}
2:e1 = E5:(1,2), e2= E4:(1,2), πn ={(4,8) {E3:(2,4), E4:(2,4)}}
3:e1 = E5:(1,2), e2 = E1:(1,2), πn ={(6,12) {E3:(2,4), E4:(2,4), E1(2,4)}}
4:e1 = E5:(1,2), e2 ={E2:(1,2)}, πn ={(8,16) {E3:(2,4), E4:(2,4), E1(2,4), E2:(2,4)}}
5:e1 = E5:(1,2), e2 ={}, πn ={(9,17) {E3:(2,4), E4:(2,4), E1(2,4), E2:(2,4), E5:(1,2)}}
6:πn ={(9,17) {E3:(2,4), E4:(2,4), E1(2,4), E2:(2,4), E5:(1,2)}}
7:π = {(9,17) {E3:(2,4), E4:(2,4), E1(2,4), E2:(2,4), E5:(1,2)}}, π3 ={(3,6) {E5:(1,2), E3:(1,2), E4:(1,2)}}
8:e1=E3:(2,4), e2=E5:(1,2), πn ={(2,4) {E5:(2,4)}}
9: e1 = E3:(2,4), e2 = E3:(1,2), πn ={(5,10) {E5:(2,4), E3:(3,6)}}
10: e1 = E4:(2,4), e2 = E4:(1,2), πn ={(8,16) {E5:(2,4), E3:(3,6), E4(3,6)}}
11: e1 = E1:(2,4), e2 ={}, πn ={(10,20) {E5:(2,4), E3:(3,6), E4(3,6), E1:(2,4)}}
12: e1 = E2:(2,4), e2 ={}, πn ={(12,24) {E5:(2,4), E3:(3,6), E4(3,6), E1:(2,4), E2:(2,4)}}
13: π = πn ={(12,24) {E5:(2,4), E3:(3,6), E4(3,6), E1:(2,4), E2:(2,4)}}
By this a new order from gate inputs is computed, which herein becomes the actual order for gate G3.
An outline of the algorithm
As it is known, in the conventional approach to FTA the model is traversed in a depth-first manner, whereby actions are performed on each encountered gate. In our approach we are going to apply the FindBestOrder procedure to compute the proposed order for the observed gate. For instance, the order for G1 gate from the FT example is built by means of the FindBestOrder procedure on the following gates: G8, G4, G31, G32, G33, G3 and G1. By applying the FindBestOrder procedure we intend to generate different permutations of adjacent gate inputs and employ the new heuristic to combine the orders from them. Among all generated orderings for the specific gate, the order with the smallest BDD in size will be selected.
As presented in the above algorithm, the initialization is performed at the beginning of the procedure (Lines 4–6). The result of this initialization (denoted as
For further understanding of this procedure, let us study an example with G3 inputs {G31, G32, G33}, which are entailed in the array of orders A from adjacent gates. Within the loop we use all possible permutations of this array
as the input to our heuristic. With the intention to build the order for top gate G1 we must combine the order for gate G3 with event E6. In the earlier presented example for CombineOrders heuristic we created the order for G3 gate, which is
Both, E6 as the directly connected adjacent event and G3 as module top gate are combined with our heuristic (Lines 4–6) to the final order for G1 gate
An interesting fact arising from the upper order of our example is that, actually we expected 13 BDD nodes for the FT model, however, once it was built it eventually resulted in 10 nodes.
The generally used method for the reduction of BDD size is the dynamic reordering following the construction step, which in this case is optional (Line 20). There are various dynamic reordering schemes based on the swap of two adjacent variables in an algorithm developed by Rudell. 22 Commonly used methods are group sifting 23 and minimization by exploiting of strong symmetries between variables.24,25 For this paper we selected the group sifting method as an optional BDD size reduction step (Line 20). For instance, the generated order from the algorithm is reduced from 10 to 9 BDD nodes for the FT model in our example, which is an optimal number of nodes for such a small example. As the results will show, the optional dynamic reordering step proves to be useful, and more importantly, being the key step for a successful construction of BDDs for large FT models.
Results and discussion
This section presents the test results obtained from applying the new ordering heuristic to a selected set of FT models from the literature26,27 and to a set of own large FTs from industry applications. The proposed ordering heuristic is compared to the best results obtained from depth-first left most (DFLM). The Colorado University Decision Diagram (CUDD) BDD package is used to implement DFLM as well as the new algorithm presented in this article. Since it is clear that there is no benefit from selecting gate inputs in any order,
28
we decided to perform tests with DFLM and our heuristic for 100 times with a randomized ordering of inputs at each gate. For a better assessment of the results gained with the new method, the following statistics for top gate BDD size of each FT model were collected:
Comparison on small-to-medium FT models
In the first set of tests from the literature, we used 41 small-to-medium sized FTs from the Aralia benchmark test,26,27 that is, tests with less than 1000 events and gates aggregative. These FTs originate from different sources and have different characteristics in terms of size, structure, and number of internal connections among the gates and basic events. The results of the tests are summarized in Table 1, both for the DFLM and for the herein presented new approach. It is important to mention that all runs (for DFLM and the new heuristic) give variable orderings with which the BDD from the FT model was constructed within the given limits (up to 100M nodes) on the CUDD package. The results are also presented graphically in Figure 4.
Results for the comparison of DFLM and new heuristic on small to medium FT models from the Aralia benchmark set.
DFLM: depth-first left most; BDD: binary decision diagram.

Graphical view of results for the comparison of DFLM (left bar/black) and the new heuristic (right bar/orange) on small-to-medium FT models from the Aralia benchmark set.
The comparison shows that the best results for the new method are nearly the same as the best results achieved with the DFLM method (column Min. in Table 1). Comparing average ratios of BDD results, the new heuristic performs better than the DFLM to an average of almost three times (precisely 2.8). What is more important, in most cases the new heuristic outperforms the average DFLM results by several times, even 26 times in one case (cea9601). In addition to that, the new method appears rather stable in producing good orderings for the analysed FTs, since the average ratio between the maximum and minimum size is less than three, while for the DFLM approach it is more than 11 (more than eight if cea9601 is thrown). This proves equally the stability of the approach as well as the quality of the orders obtained by our heuristic approach.
In addition to that, a single run was made with the new heuristic to check the correlation between the estimated size and built size without sifting (Table 3 in Appendix 1). On average, the estimated size is approximately 4.5 times bigger than the BDD built size and it is achieved in a reasonable time. The longest running time for the heuristic was approximately 5 min on the edf9202 model, which is still acceptable. It is worthwhile mentioning that in one test (das9207), the estimated size from our heuristic proved to be extremely overestimated, approximately 100 times more than the built size. Apart from that extreme result, the estimated size from our heuristic is on average two times bigger than the built size. After the optional reordering method was applied on built BDDs, the size further lowered on average by a factor of 1.85, that is, approximately 46% less BDD nodes are needed to represent a selected benchmark set.
Comparison on large FT models
In addition to tests performed on the Aralia benchmark set, we selected some of own larger FT models from nuclear industry, that is, FT models in which the sum of gates and events exceed 1000. The largest selected model (i.e. cored2) reaches the limits of the CUDD engine, while others happen to be too large for a plain DFLM heuristic. Therefore, we decide to implement the DFLM heuristic with an automatic dynamic reordering (the group sifting method) during the BDD construction phase which is a common approach in constructing BDDs for large models. For such an extensive test, we employ the optional dynamic reordering step in FindBestOrder procedure on gate orders expecting a number of BDD nodes within the range from 1M up to 10M nodes. The tests were run for 10 times with an increased limit on the CUDD package to 1000M nodes.
The results are summarized in Table 2 and graphically presented in Figure 5. As shown in Table 2, the DFLM heuristic fails to produce the ordering within the limits on ‘cored1’ and ‘cored2’ FTs, while in other tests the DFLM heuristic, compared to our approach, performs consistently worse. In terms of the stability for the new method, the model complexity has moderate impact, since the average ratio between maximum and minimum results is less than three, similar to small-to-medium models. In the last row, it is possible to compare averaging ratios, excluding the ‘cored1’ and ‘cored2’ tests. Here, even for the best results, the new approach is consistently, nearly two times, better compared to the DFLM with automatic dynamic orderings applied during the construction phase. The average results prove that our approach performs far better yielding a ratio over five, while in one case the ratio surges convincingly higher (to 11.7 for ‘chrgr’).
Results for the comparison of DFLM and new heuristic for large FT models.
DFLM: depth-first left most; BDD: binary decision diagram.

Results (BDD size) for the comparison of DFLM (left bar/black) and new (right bar/orange) heuristic for larger FT models.
Discussion
Considering small-to-medium sized models, both heuristics produce orderings with which the BDD representation for every FT model was built. The results on tests with small-to-medium sized models show that on the average, our heuristic produces better event ordering than the DFLM heuristic. Moreover, it can be noticed that the optional dynamic reordering proves to be helpful for both approaches. However, when applied in our heuristic it gives better results than an ordinary application of reordering at the end of the BDD creation step. The results are somewhat better for the DFLM heuristic on minimum sizes in a respectful number of cases (18 from 41). This is assumingly the result of a random selection of gate inputs in both approaches.
Finally, in the analysis of larger FT models (Table 2) the new ordering heuristic is able to produce an order with which we build the BDD representation, even in the case of the largest considered models, where DFLM heuristic failed. This indicates that our approach does not only bring better results but also has a higher capability of beneficial order finding. Additional tests on large FT models prove that dynamic reordering during the build phase is not in all cases helpful for DFLM heuristic, yet it is useful in the new heuristic. It is far better to perform dynamic reordering after the BDD has been constructed and to refrain from automatic reordering during the build phase. The cause may be that automatic reordering within the BDD build phase simply does not sufficiently dispose over information on the event dependency as they appear to be available after the BDD has been constructed.
Conclusion
The new heuristic emerges from the known approach for
Also, some important positive facts as well as some important issues have been discovered. The DFLM heuristic is very sensitive to the order of gate inputs. Our ordering approach based on the
The presented approach proves to be promising for the application on industry FT models and indicates that further research may show potential in direction of: simplification of FT models to be more like
Apart from the presentation of the innovative heuristic, this article also reveals inspiring ideas for further research and development of an improved event ordering heuristic for the BDD-based analysis of FT models.
