Decision theoretic troubleshooting Ji r Vomlel Academy of - - PowerPoint PPT Presentation

decision theoretic troubleshooting
SMART_READER_LITE
LIVE PREVIEW

Decision theoretic troubleshooting Ji r Vomlel Academy of - - PowerPoint PPT Presentation

Decision theoretic troubleshooting Ji r Vomlel Academy of Sciences of the Czech Republic 11th July, 2007 J. Vomlel ( UTIA AV CR) Troubleshooting 11th July, 2007 1 / 26 Light Print Problem Your trouble : The page that


slide-1
SLIDE 1

Decision theoretic troubleshooting

Jiˇ r´ ı Vomlel

Academy of Sciences of the Czech Republic

11th July, 2007

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 1 / 26

slide-2
SLIDE 2

Light Print Problem

Your trouble: “The page that came out of your printer is light.” Our trouble-shooter: “Perform these steps that will help you solve the trouble.” Problem description: problem causes C ∈ C actions A ∈ A - troubleshooting steps that may solve the problem questions Q ∈ Q - troubleshooting steps that help identify the problem cause. every action and question has assigned a cost:

cA ... cost of an action A cQ ... cost of a question Q

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 2 / 26

slide-3
SLIDE 3

Light Print Problem - causes, actions and questions

Causes of light print p(Ci) C1: Distribution problem 0.4 C2: Defective toner 0.3 C3: Corrupted dataflow 0.2 C4: Wrong driver setting 0.1 Actions and questions ci A1: Remove, shake and reseat toner 5 A2: Try another toner 15 A3: Cycle power 1 Q1: Is the printer configuration page printed light? 2

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 3 / 26

slide-4
SLIDE 4

Light Print Problem - Bayesian Network

XOR Problem Causes Actions Questions C1 C2 C3 C4 C3 C4 A1 A2 A3 Q1 C2 C1

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 4 / 26

slide-5
SLIDE 5

Light Print - conditional probability tables (CPT)

for every action Ai and for every parent cause Cj an expert provides a CPT for p(Ai = yes|Cj) for every answer qk to every question Qk and for every parent cause Cj the expert provides a CPT for p(Qk = qk|Cj)

Cj p(A2 = yes|Cj) C1 0.9 C2 0.9 C3

  • C4
  • Cj

p(Q1 = yes|Cj) C1 1 C2 1 C3 C4

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 5 / 26

slide-6
SLIDE 6

Troubleshooting strategy

Q1 = yes A1 = yes A1 = no A2 = yes A2 = no Q1 = no

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 6 / 26

slide-7
SLIDE 7

Expected Cost of Repair (ECR)

A strategy may terminate: by giving up (e.g. if there are no further steps left)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 7 / 26

slide-8
SLIDE 8

Expected Cost of Repair (ECR)

A strategy may terminate: by giving up (e.g. if there are no further steps left)

a penalty function c(eℓ) applies

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 7 / 26

slide-9
SLIDE 9

Expected Cost of Repair (ECR)

A strategy may terminate: by giving up (e.g. if there are no further steps left)

a penalty function c(eℓ) applies can be interpreted as a cost of calling service

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 7 / 26

slide-10
SLIDE 10

Expected Cost of Repair (ECR)

A strategy may terminate: by giving up (e.g. if there are no further steps left)

a penalty function c(eℓ) applies can be interpreted as a cost of calling service

by solving the problem: c(eℓ) def = 0

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 7 / 26

slide-11
SLIDE 11

Expected Cost of Repair (ECR)

Example

Q1 = yes A1 = yes A1 = no A2 = yes A2 = no Q1 = no

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 8 / 26

slide-12
SLIDE 12

Expected Cost of Repair (ECR)

Example

Q1 = yes A1 = yes A1 = no A2 = yes A2 = no Q1 = no

Strategy Expected Cost of Repair (ECR) Q1 A1 A2 p(Q1 = no, A1 = yes) · (cQ1 + cA1 + 0)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 8 / 26

slide-13
SLIDE 13

Expected Cost of Repair (ECR)

Example

Q1 = yes A1 = yes A1 = no A2 = yes A2 = no Q1 = no

Strategy Expected Cost of Repair (ECR) Q1 A1 A2 p(Q1 = no, A1 = yes) · (cQ1 + cA1 + 0) + p(Q1 = no, A1 = no) · (cQ1 + cA1 + cCS)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 8 / 26

slide-14
SLIDE 14

Expected Cost of Repair (ECR)

Example

Q1 = yes A1 = yes A1 = no A2 = yes A2 = no Q1 = no

Strategy Expected Cost of Repair (ECR) Q1 A1 A2 p(Q1 = no, A1 = yes) · (cQ1 + cA1 + 0) + p(Q1 = no, A1 = no) · (cQ1 + cA1 + cCS) + p(Q1 = yes, A2 = yes) · (cQ1 + cA2 + 0)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 8 / 26

slide-15
SLIDE 15

Expected Cost of Repair (ECR)

Example

Q1 = yes A1 = yes A1 = no A2 = yes A2 = no Q1 = no

Strategy Expected Cost of Repair (ECR) Q1 A1 A2 p(Q1 = no, A1 = yes) · (cQ1 + cA1 + 0) + p(Q1 = no, A1 = no) · (cQ1 + cA1 + cCS) + p(Q1 = yes, A2 = yes) · (cQ1 + cA2 + 0) + p(Q1 = yes, A2 = no) · (cQ1 + cA2 + cCS)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 8 / 26

slide-16
SLIDE 16

Expected Cost of Repair (ECR)

Node n → en =

  • (A = yes/no)A ∈ {performed actions} ,

(Q = yes/no)Q ∈ {performed questions}

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 9 / 26

slide-17
SLIDE 17

Expected Cost of Repair (ECR)

Node n → en =

  • (A = yes/no)A ∈ {performed actions} ,

(Q = yes/no)Q ∈ {performed questions}

p(en) ... probability of getting to node n

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 9 / 26

slide-18
SLIDE 18

Expected Cost of Repair (ECR)

Node n → en =

  • (A = yes/no)A ∈ {performed actions} ,

(Q = yes/no)Q ∈ {performed questions}

p(en) ... probability of getting to node n → t(en) ... total cost of actions and questions per- formed (to get to node n)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 9 / 26

slide-19
SLIDE 19

Expected Cost of Repair (ECR)

Node n → en =

  • (A = yes/no)A ∈ {performed actions} ,

(Q = yes/no)Q ∈ {performed questions}

p(en) ... probability of getting to node n → t(en) ... total cost of actions and questions per- formed (to get to node n) ECR(s) =

  • ℓ∈{terminal nodes of s}

p(eℓ) · [ t(eℓ) + c(eℓ) ]

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 9 / 26

slide-20
SLIDE 20

Optimal strategy Optimal strategy s⋆ ⇐ ⇒ s⋆ = arg mins∈{all possible strategies} ECR(s)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 10 / 26

slide-21
SLIDE 21

Troubleshooting with dependent actions is NP-hard

Theorem (1)

Assume decision-theoretic troubleshooting problem with fixed costs and dependent actions. The decision whether there exists a troubleshooting sequence with ECR ≤ K for a given constant K is NP-complete problem for both single fault assumption and independent faults. Proof: The problem is NP: if we guess a good sequence we calculate ECR and compare whether ECR ≤ K. It takes polynomial time to calculate ECR of a sequence.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 11 / 26

slide-22
SLIDE 22

Troubleshooting with dependent actions is NP-hard

Theorem (1)

Assume decision-theoretic troubleshooting problem with fixed costs and dependent actions. The decision whether there exists a troubleshooting sequence with ECR ≤ K for a given constant K is NP-complete problem for both single fault assumption and independent faults. Proof: The problem is NP: if we guess a good sequence we calculate ECR and compare whether ECR ≤ K. It takes polynomial time to calculate ECR of a sequence. The problem is NP-hard: We reduce the Exact cover by 3-sets to troubleshooting.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 11 / 26

slide-23
SLIDE 23

Exact cover by 3-sets

Definition (Exact cover by 3-sets)

We are given a family F = {S1, . . . , Sn} of subsets of a set U, such that |U| = 3m for some integer m, and |Si| = 3 for all i. We are asked if there are m sets in F that are disjoint and have U as their union.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 12 / 26

slide-24
SLIDE 24

Exact cover by 3-sets

Definition (Exact cover by 3-sets)

We are given a family F = {S1, . . . , Sn} of subsets of a set U, such that |U| = 3m for some integer m, and |Si| = 3 for all i. We are asked if there are m sets in F that are disjoint and have U as their union. The proof of NP-completeness is for example in: Christos H. Papadimitriou. Computational complexity. Addison-Wesley Publishing Company, 1994.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 12 / 26

slide-25
SLIDE 25

COVER BY 3-SETS Troubleshooting

p(Ci) uniform p(Aj|Ci) ∈ {0, 1} cA = 1 c(eℓ) = 2 · (m + 1)2

A7 C2 C3 C4 A2 A3 A4

S2 = {2, 3, 4} S5 = {7, 8, 9} S6 = {5, 10, 11} S4 = {6, 7, 8} S7 = {10, 11, 12} S3 = {1, 5, 9}

C1

S1 = {1, 2, 3} U = {1, 2, 3 · · · , 12}

A1 C5 C6 C7 C8 C9 C11 C10 C12 A5 A6

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 13 / 26

slide-26
SLIDE 26

COVER BY 3-SETS Troubleshooting

p(Ci) uniform p(Aj|Ci) ∈ {0, 1} cA = 1 c(eℓ) = 2 · (m + 1)2

A7 C2 C3 C4 A2 A3 A4

S2 = {2, 3, 4} S5 = {7, 8, 9} S6 = {5, 10, 11} S4 = {6, 7, 8} S7 = {10, 11, 12} S3 = {1, 5, 9}

C1

S1 = {1, 2, 3} U = {1, 2, 3 · · · , 12}

A1 C5 C6 C7 C8 C9 C11 C10 C12 A5 A6

The exact cover by 3-sets exists iff ECR ≤ m+1

2

for some sequence.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 13 / 26

slide-27
SLIDE 27

Proof of NP-hardness - 1

Lemma (1)

If we have exact 3-sets cover V = {Sj1, . . . , Sjl} then the ECR of corresponding action sequence Aj1, . . . , Ajl (in any order) has the ECR = m+1

2 .

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 14 / 26

slide-28
SLIDE 28

Proof of NP-hardness - 1

Lemma (1)

If we have exact 3-sets cover V = {Sj1, . . . , Sjl} then the ECR of corresponding action sequence Aj1, . . . , Ajl (in any order) has the ECR = m+1

2 .

Proof: c(eℓ) > 0 is never applied, otherwise ECR ≥ p(C) · c(eℓ) >

1 3m · 2 · (m + 1)2 > m+1 2 .

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 14 / 26

slide-29
SLIDE 29

Proof of NP-hardness - 1

Lemma (1)

If we have exact 3-sets cover V = {Sj1, . . . , Sjl} then the ECR of corresponding action sequence Aj1, . . . , Ajl (in any order) has the ECR = m+1

2 .

Proof: c(eℓ) > 0 is never applied, otherwise ECR ≥ p(C) · c(eℓ) >

1 3m · 2 · (m + 1)2 > m+1 2 .

In any step i we address three causes, therefore the value added in the terminal node i is p(ei) · t(ei) = [3 · p(C)] · i = 3 ·

1 3m · i = i m.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 14 / 26

slide-30
SLIDE 30

Proof of NP-hardness - 1

Lemma (1)

If we have exact 3-sets cover V = {Sj1, . . . , Sjl} then the ECR of corresponding action sequence Aj1, . . . , Ajl (in any order) has the ECR = m+1

2 .

Proof: c(eℓ) > 0 is never applied, otherwise ECR ≥ p(C) · c(eℓ) >

1 3m · 2 · (m + 1)2 > m+1 2 .

In any step i we address three causes, therefore the value added in the terminal node i is p(ei) · t(ei) = [3 · p(C)] · i = 3 ·

1 3m · i = i m.

Therefore: ECR(Aj1, . . . , Ajl) =

m

  • i=1

i m = (m + 1) · m 2 · m = m + 1 2 .

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 14 / 26

slide-31
SLIDE 31

Proof of NP-hardness - 2

Lemma (2)

ECR(s) ≥ m+1

2

for any sequence s. If two actions in the sequence address the same cause then ECR(s) > m+1

2 .

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 15 / 26

slide-32
SLIDE 32

Other troubleshooting models

T   p(A|C) ∈ {0, 1}, p(C) =

1 |C|

dependent actions ECR < K   is NP-complete.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 16 / 26

slide-33
SLIDE 33

Other troubleshooting models

T   p(A|C) ∈ {0, 1}, p(C) =

1 |C|

dependent actions ECR < K   is NP-complete. Consequence: Any extension of this troubleshooting is NP-hard, e.g. finding a sequence with minimal ECR is NP-hard

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 16 / 26

slide-34
SLIDE 34

Other troubleshooting models

T   p(A|C) ∈ {0, 1}, p(C) =

1 |C|

dependent actions ECR < K   is NP-complete. Consequence: Any extension of this troubleshooting is NP-hard, e.g. finding a sequence with minimal ECR is NP-hard troubleshooting with dependent actions and questions is NP-hard

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 16 / 26

slide-35
SLIDE 35

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-36
SLIDE 36

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

 

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-37
SLIDE 37

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

  Unknown problems:

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-38
SLIDE 38

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

  Unknown problems: T  

  • ne or two

causes per action general  

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-39
SLIDE 39

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

  Unknown problems: T  

  • ne or two

causes per action general   NP-complete problem - EXACT COVER BY 3-SETS is reducible to it:

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-40
SLIDE 40

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

  Unknown problems: T  

  • ne or two

causes per action general   NP-complete problem - EXACT COVER BY 3-SETS is reducible to it: T

  • ECR ≤ K
  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-41
SLIDE 41

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

  Unknown problems: T  

  • ne or two

causes per action general   NP-complete problem - EXACT COVER BY 3-SETS is reducible to it: T

  • ECR ≤ K
  • NPO-complete problem - reducible to TRAVELING SALESMAN

PROBLEM:

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-42
SLIDE 42

Complexity of troubleshooting

Polynomial problems - reducible to MAXIMAL MATCHING: T indep. actions

  • T

 

  • ne or two causes per action

p(A|C) ∈ {0, 1} p(C) =

1 |C|, Cost = 1

  Unknown problems: T  

  • ne or two

causes per action general   NP-complete problem - EXACT COVER BY 3-SETS is reducible to it: T

  • ECR ≤ K
  • NPO-complete problem - reducible to TRAVELING SALESMAN

PROBLEM: T( min ECR )

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 17 / 26

slide-43
SLIDE 43

Search for an optimal strategy - 1

A2 = no ∅ Q1 = 1 Q1 = 2 A1 = no, A2 = no, A1 = no, A2 = no, Q1 = 1 Q1 = 2 A1 = no, Q1 = 2 A2 = no, Q1 = 1 A1 = no, A2 = no A1 = no, Q1 = 1 A2 = no, Q1 = 2 A1 = no

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 18 / 26

slide-44
SLIDE 44

Search for an optimal strategy - 2

s⋆(en) ... the subtree of optimal strategy s⋆ rooted at node n

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 19 / 26

slide-45
SLIDE 45

Search for an optimal strategy - 2

s⋆(en) ... the subtree of optimal strategy s⋆ rooted at node n Observe s⋆(A1 = no, A2 = no, Q1 = yes) ≡ s⋆(A2 = no, Q1 = yes, A1 = no) ≡ . . . any permutation of en

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 19 / 26

slide-46
SLIDE 46

Search for an optimal strategy - 2

s⋆(en) ... the subtree of optimal strategy s⋆ rooted at node n Observe s⋆(A1 = no, A2 = no, Q1 = yes) ≡ s⋆(A2 = no, Q1 = yes, A1 = no) ≡ . . . any permutation of en If we store s⋆(en) for explored subtrees the we get a reduction in search complexity: O((n + m)!) − → O(2n+m)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 19 / 26

slide-47
SLIDE 47

Heuristic search for an optimal strategy

The goal:

  • ECR(en) ... an estimate of Expected Cost of Repair of strategy s⋆(en)

such that

  • ECR(en) ≤ ECR(en),

so that it is an optimistic heuristic. For every Ci ∈ C: sCi

en denotes optimal strategy for given en ∪ Ci = yes.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 20 / 26

slide-48
SLIDE 48

Heuristic search for an optimal strategy

The goal:

  • ECR(en) ... an estimate of Expected Cost of Repair of strategy s⋆(en)

such that

  • ECR(en) ≤ ECR(en),

so that it is an optimistic heuristic. For every Ci ∈ C: sCi

en denotes optimal strategy for given en ∪ Ci = yes.

Define

  • ECR(en) =
  • Ci∈C

p(Ci = yes | en) · ECR(sCi

en | en ∪ Ci = yes)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 20 / 26

slide-49
SLIDE 49

Computation of ECR

For every cause Ci the actions that may solve the problem (i.e. such that P(A = yes | Ci = yes) > 0) are ordered according to p(A = yes | Ci = yes) cA (There are usually only few such actions for every cause).

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 21 / 26

slide-50
SLIDE 50

Computation of ECR

For every cause Ci the actions that may solve the problem (i.e. such that P(A = yes | Ci = yes) > 0) are ordered according to p(A = yes | Ci = yes) cA (There are usually only few such actions for every cause). The cause is known therefore ∀Aj, Ak ∈ A : Aj ⊥ ⊥ Ak | Ci = yes and the sequence of actions ordered according to p/c ratio is

  • ptimal strategy sCi

en (S. Srinivas, 1995).

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 21 / 26

slide-51
SLIDE 51

Computation of ECR

For every cause Ci the actions that may solve the problem (i.e. such that P(A = yes | Ci = yes) > 0) are ordered according to p(A = yes | Ci = yes) cA (There are usually only few such actions for every cause). The cause is known therefore ∀Aj, Ak ∈ A : Aj ⊥ ⊥ Ak | Ci = yes and the sequence of actions ordered according to p/c ratio is

  • ptimal strategy sCi

en (S. Srinivas, 1995).

p(A = yes | Ci = yes) can be read from the original model.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 21 / 26

slide-52
SLIDE 52

Computation of ECR

For every cause Ci the actions that may solve the problem (i.e. such that P(A = yes | Ci = yes) > 0) are ordered according to p(A = yes | Ci = yes) cA (There are usually only few such actions for every cause). The cause is known therefore ∀Aj, Ak ∈ A : Aj ⊥ ⊥ Ak | Ci = yes and the sequence of actions ordered according to p/c ratio is

  • ptimal strategy sCi

en (S. Srinivas, 1995).

p(A = yes | Ci = yes) can be read from the original model. Observe: an update of the model is necessary only for p(Ci|en). No other expensive computations are required!

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 21 / 26

slide-53
SLIDE 53

Branch&Bound

The algorithm performs a depth first search with pruning: Store the temporary best ECR′(en)

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 22 / 26

slide-54
SLIDE 54

Branch&Bound

The algorithm performs a depth first search with pruning: Store the temporary best ECR′(en) If CS+

  • utcomes

P(S = outcome|e)· ECR(e∪S = outcome) ≥ ECR′(en) then prune the branch starting with step S.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 22 / 26

slide-55
SLIDE 55

Branch&Bound

The algorithm performs a depth first search with pruning: Store the temporary best ECR′(en) If CS+

  • utcomes

P(S = outcome|e)· ECR(e∪S = outcome) ≥ ECR′(en) then prune the branch starting with step S. Since the applied estimate ECR is optimistic the optimum is guaranteed.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 22 / 26

slide-56
SLIDE 56

AO⋆ algorithm

A⋆ algorithm for AND/OR graphs (J. Pearl, Heuristics: intelligent search strategies for computer problem solving, 1984.) All not expanded neighbors of frontier nodes are evaluated using the heuristic function ECR.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 23 / 26

slide-57
SLIDE 57

AO⋆ algorithm

A⋆ algorithm for AND/OR graphs (J. Pearl, Heuristics: intelligent search strategies for computer problem solving, 1984.) All not expanded neighbors of frontier nodes are evaluated using the heuristic function ECR. All partial strategies are evaluated by ECR while for the not expanded neighbors of frontier nodes the ECR value is used

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 23 / 26

slide-58
SLIDE 58

AO⋆ algorithm

A⋆ algorithm for AND/OR graphs (J. Pearl, Heuristics: intelligent search strategies for computer problem solving, 1984.) All not expanded neighbors of frontier nodes are evaluated using the heuristic function ECR. All partial strategies are evaluated by ECR while for the not expanded neighbors of frontier nodes the ECR value is used From all partial strategies the cheapest one is chosen.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 23 / 26

slide-59
SLIDE 59

AO⋆ algorithm

A⋆ algorithm for AND/OR graphs (J. Pearl, Heuristics: intelligent search strategies for computer problem solving, 1984.) All not expanded neighbors of frontier nodes are evaluated using the heuristic function ECR. All partial strategies are evaluated by ECR while for the not expanded neighbors of frontier nodes the ECR value is used From all partial strategies the cheapest one is chosen. A frontier node of the cheapest strategy is expanded (different approaches).

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 23 / 26

slide-60
SLIDE 60

AO⋆ algorithm

A⋆ algorithm for AND/OR graphs (J. Pearl, Heuristics: intelligent search strategies for computer problem solving, 1984.) All not expanded neighbors of frontier nodes are evaluated using the heuristic function ECR. All partial strategies are evaluated by ECR while for the not expanded neighbors of frontier nodes the ECR value is used From all partial strategies the cheapest one is chosen. A frontier node of the cheapest strategy is expanded (different approaches). The first fully expanded strategy is optimum.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 23 / 26

slide-61
SLIDE 61

A real-time suboptimal search

Dezide troubleshooter: Developed in the Laboratory for Normative Systems, within a joint project of Hewlett-Packard and Aalborg University.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 24 / 26

slide-62
SLIDE 62

A real-time suboptimal search

Dezide troubleshooter: Developed in the Laboratory for Normative Systems, within a joint project of Hewlett-Packard and Aalborg University. Exploits several heuristics based on the p/c ratio.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 24 / 26

slide-63
SLIDE 63

Dezide troubleshooter vs. optimum (based on ECR)

Problem | A | | Q | OPTIM Dezide LBE P/C 53 6 2 433.238 443.305 501.625 444.544 Tray 9 3 129.214 129.214 131.585 155.096 Overrun 11 3 106.204 112.456 117.377 116.801 Load 12 3 38.3777 38.4229 42.6062 43.0535 Pjam 13 4 124.323 124.365 299.415 300.855 Scatter 14 4 115.410 115.862 324.38 236.578 NotDupl 9 9 70.6740 73.5984 77.3768 121.098 Spots 16 5 161.385 162.246 863.362 286.749 MIO1 10 10 250.452 253.310 355.943 479.956

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 25 / 26

slide-64
SLIDE 64

References

References:

  • D. Heckerman, J. S. Breese, and K. Rommelse:

Decision-theoretic troubleshooting. Communications of the ACM,

  • Vol. 38(3), pp. 49—57, 1995.
  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 26 / 26

slide-65
SLIDE 65

References

References:

  • D. Heckerman, J. S. Breese, and K. Rommelse:

Decision-theoretic troubleshooting. Communications of the ACM,

  • Vol. 38(3), pp. 49—57, 1995.

F . V. Jensen, U. Kjaerulff, B. Kristiansen, H. Langseth, C. Skaanning, J. Vomlel, and M. Vomlelov´ a: The SACSO methodology for troubleshooting complex systems. Special Issue

  • n AI in Equipment Service, Artificial Intelligence for Engineering

Design, Analysis and Manufacturing (AIEDAM), Vol. 15, pp. 321—333, 2001.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 26 / 26

slide-66
SLIDE 66

References

References:

  • D. Heckerman, J. S. Breese, and K. Rommelse:

Decision-theoretic troubleshooting. Communications of the ACM,

  • Vol. 38(3), pp. 49—57, 1995.

F . V. Jensen, U. Kjaerulff, B. Kristiansen, H. Langseth, C. Skaanning, J. Vomlel, and M. Vomlelov´ a: The SACSO methodology for troubleshooting complex systems. Special Issue

  • n AI in Equipment Service, Artificial Intelligence for Engineering

Design, Analysis and Manufacturing (AIEDAM), Vol. 15, pp. 321—333, 2001.

  • M. Vomlelov´

a and J. Vomlel: Troubleshooting: NP-hardness and solution methods. Soft Computing Journal, Volume 7, Number 5, April 2003, pp. 357—368.

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 26 / 26

slide-67
SLIDE 67

References

References:

  • D. Heckerman, J. S. Breese, and K. Rommelse:

Decision-theoretic troubleshooting. Communications of the ACM,

  • Vol. 38(3), pp. 49—57, 1995.

F . V. Jensen, U. Kjaerulff, B. Kristiansen, H. Langseth, C. Skaanning, J. Vomlel, and M. Vomlelov´ a: The SACSO methodology for troubleshooting complex systems. Special Issue

  • n AI in Equipment Service, Artificial Intelligence for Engineering

Design, Analysis and Manufacturing (AIEDAM), Vol. 15, pp. 321—333, 2001.

  • M. Vomlelov´

a and J. Vomlel: Troubleshooting: NP-hardness and solution methods. Soft Computing Journal, Volume 7, Number 5, April 2003, pp. 357—368. Software:

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 26 / 26

slide-68
SLIDE 68

References

References:

  • D. Heckerman, J. S. Breese, and K. Rommelse:

Decision-theoretic troubleshooting. Communications of the ACM,

  • Vol. 38(3), pp. 49—57, 1995.

F . V. Jensen, U. Kjaerulff, B. Kristiansen, H. Langseth, C. Skaanning, J. Vomlel, and M. Vomlelov´ a: The SACSO methodology for troubleshooting complex systems. Special Issue

  • n AI in Equipment Service, Artificial Intelligence for Engineering

Design, Analysis and Manufacturing (AIEDAM), Vol. 15, pp. 321—333, 2001.

  • M. Vomlelov´

a and J. Vomlel: Troubleshooting: NP-hardness and solution methods. Soft Computing Journal, Volume 7, Number 5, April 2003, pp. 357—368. Software: Dezide - Bayesian automated diagnostics, http://www.dezide.com

  • J. Vomlel ( ´

UTIA AV ˇ CR) Troubleshooting 11th July, 2007 26 / 26