Presentation is loading. Please wait.

Presentation is loading. Please wait.

JUNCTION TREE CONSTRUCTION Practice exercise. Example 1: Junction Tree Construction AB D C G HF E Step1: Insert link between parents of common child 2.

Similar presentations


Presentation on theme: "JUNCTION TREE CONSTRUCTION Practice exercise. Example 1: Junction Tree Construction AB D C G HF E Step1: Insert link between parents of common child 2."— Presentation transcript:

1 JUNCTION TREE CONSTRUCTION Practice exercise

2 Example 1: Junction Tree Construction AB D C G HF E Step1: Insert link between parents of common child 2

3 Example 1: Junction Tree Construction AB D C G HF E Step2: Convert into undirected graph AB D C G HF E 3

4 Example 1: Junction Tree Construction AB D C G HF E Step3: Triangulate a graph if it has circle of length>3 Note : No need of triangulation in this example. 4

5 Example 1: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together. AB D C G HF E

6 Example 1: Junction Tree Construction Step4: Ordered the node by max cardinality search. Five cliques are found in Example 1: One clique of four nodes Four cliques of three nodes Definition: A Clique in a graph is set of adjacent vertices which is a complete graph. ABCDE ACD CDF CEH EHG AB D C G HF E

7 Example 1: Junction Tree Construction ABCDE ACD CEH CDF EHG ABCDE ACD CDF CEH EHG Construct Tree 7

8 Example 2: Junction Tree Construction A BDC G H FE Step1: Insert link between parents of common child I 8

9 Example 2: Junction Tree Construction Step2: Convert into undirected graph A BDC G H FE I A BDC G H FE I 9

10 Example 2: Junction Tree Construction A BDC G H FE I Step3: Triangulate a graph if it has circle of length>3 10

11 Example 2: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together. A BDC G H FE I F has three numbered neighbour B, C and D where B and D are not connected therefore add link between B and D and restart numbering again from beginning. 11

12 Example 2: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together A BDC G H FE I 12

13 Example 2: Junction Tree Construction Step4: Ordered the node by max cardinality search. Five cliques are found in Example 2: Two cliques of four nodes Four cliques of three nodes A BDC G H FE I Clique Nodes Max Cardinality BCDF BEF DFG EFH FGI ABCD 9 13

14 Example 2: Junction Tree Construction ABCD BCDF DFG BEF FGI BCDF BEF DFG EFH FGI ABCD 9 EFH Construct Tree 14

15 Example 2: Junction Tree Construction (with different triangulation ) A BDC G H FE Step1: Insert link between parents of common child I 15

16 Example 2: Junction Tree Construction Step2: Convert into undirected graph A BDC G H FE I A BDC G H FE I 16

17 Example 2: Junction Tree Construction A BDC G H FE I Step3: Triangulate a graph if it has circle of length>3 17

18 Example 2: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together G has three numbered neighbour F, C and D where F and D are not connected therefore add link between F and D and restart numbering again from beginning. 5 7 A BDC G H FE I 18

19 Example 2: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together A BDC G H FE I F has three numbered neighbour E, C and D where E and D are not connected therefore add link between E and D and restart numbering again from beginning. 19

20 Example 2: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together A BDC G H FE I E has three numbered neighbour B, C and D where B and D are not connected therefore add link between B and D and restart numbering again from beginning. 20

21 Example 2: Junction Tree Construction Step3: Numbered the node if its numbered neighboured nodes are connected together A BDC G H FE I

22 Example 2: Junction Tree Construction Step4: Ordered the node by max cardinality search. Cliques are found in Example 2: Four cliques of four nodes. Two cliques of three nodes. Clique Nodes Max Cardinality BCDE CDEF CDFG EFH FGI ABCD A BDC G H FE I

23 Example 2: Junction Tree Construction Construct Tree BCDE CDEF CDFG EFH FGI ABCD 9 23 ABCD BCDE CDEF CDFG FGI EFH


Download ppt "JUNCTION TREE CONSTRUCTION Practice exercise. Example 1: Junction Tree Construction AB D C G HF E Step1: Insert link between parents of common child 2."

Similar presentations


Ads by Google