Lecture 11: May 1, 2000

Similar documents
Lecture 13: May 10, 2002

These notes present some properties of chordal graphs, a set of undirected graphs that are important for undirected graphical models.

EE512 Graphical Models Fall 2009

Decomposition of log-linear models

EE512 Graphical Models Fall 2009

Chordal graphs MPRI

Ch9: Exact Inference: Variable Elimination. Shimi Salant, Barak Sternberg

STAT 598L Probabilistic Graphical Models. Instructor: Sergey Kirshner. Exact Inference

Junction Trees and Chordal Graphs

Bayesian Networks, Winter Yoav Haimovitch & Ariel Raviv

Chordal Graphs: Theory and Algorithms

Lecture 5: Exact inference. Queries. Complexity of inference. Queries (continued) Bayesian networks can answer questions about the underlying

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Algorithms For Inference Fall 2014

Graph Theory. Probabilistic Graphical Models. L. Enrique Sucar, INAOE. Definitions. Types of Graphs. Trajectories and Circuits.

EE512A Advanced Inference in Graphical Models

A NEW TEST FOR INTERVAL GRAPHS. Wen-Lian Hsu 1

Lecture 5: Exact inference

Probabilistic Graphical Models

Junction Trees and Chordal Graphs

6 : Factor Graphs, Message Passing and Junction Trees

Info 2950, Lecture 16

Faster parameterized algorithms for Minimum Fill-In

Maximal Label Search algorithms to compute perfect and minimal elimination orderings

Learning Bounded Treewidth Bayesian Networks

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Computing a Clique Tree with the Algorithm Maximal Label Search

Faster parameterized algorithms for Minimum Fill-In

Lecture 7. s.t. e = (u,v) E x u + x v 1 (2) v V x v 0 (3)

Maximum Cardinality Search for Computing Minimal Triangulations of Graphs 1

A Parallel Algorithm to Test Chordality of Graphs

Last course. Last course. Michel Habib 28 octobre 2016

Recitation 4: Elimination algorithm, reconstituted graph, triangulation

A Decomposition for Chordal graphs and Applications

Small Survey on Perfect Graphs

Forensic Statistics and Graphical Models (2) Richard Gill Spring Semester

On Covering a Graph Optimally with Induced Subgraphs

Junction tree propagation - BNDG 4-4.6

Distributed minimum spanning tree problem

Treewidth and graph minors

An O(m + nlog n) On-Line Algorithm for Recognizing Interval Graphs

3 : Representation of Undirected GMs

THE LEAFAGE OF A CHORDAL GRAPH

NOTE ON MINIMALLY k-connected GRAPHS

Reachability in K 3,3 -free and K 5 -free Graphs is in Unambiguous Logspace

Lecture 2. 1 Introduction. 2 The Set Cover Problem. COMPSCI 632: Approximation Algorithms August 30, 2017

Acyclic Network. Tree Based Clustering. Tree Decomposition Methods

Clique trees of infinite locally finite chordal graphs

Lecture 3: Graphs and flows

CS242: Probabilistic Graphical Models Lecture 2B: Loopy Belief Propagation & Junction Trees

Some results on Interval probe graphs

arxiv: v2 [cs.ds] 25 Jan 2017

Lecture 2 - Graph Theory Fundamentals - Reachability and Exploration 1

Belief propagation in a bucket-tree. Handouts, 275B Fall Rina Dechter. November 1, 2000

LEX M (lexicographic labelling along paths) Lex BFS. MCS (cardinality labelling of neighbors) MCS M (cardinality labelling along paths)

9 About Intersection Graphs

Chordal deletion is fixed-parameter tractable

arxiv: v5 [math.co] 5 Oct 2017

CS242: Probabilistic Graphical Models Lecture 3: Factor Graphs & Variable Elimination

CPSC 536N: Randomized Algorithms Term 2. Lecture 10

A taste of perfect graphs (continued)

Coloring edges and vertices of graphs without short or long cycles

CS270 Combinatorial Algorithms & Data Structures Spring Lecture 19:

Applied Mathematics Letters. Graph triangulations and the compatibility of unrooted phylogenetic trees

Algorithmic Aspects of Communication Networks

GENERATING JUNCTION TREES OF DECOMPOSABLE GRAPHS WITH THE CHRISTMAS TREE ALGORITHM

Computability Theory

CSC 373: Algorithm Design and Analysis Lecture 4

Artificial Intelligence

Triangulation Heuristics for BN2O Networks

val(y, I) α (9.0.2) α (9.0.3)

Bipartite Roots of Graphs

V,T C3: S,L,B T C4: A,L,T A,L C5: A,L,B A,B C6: C2: X,A A

Recall from last time. Lecture 4: Wrap-up of Bayes net representation. Markov networks. Markov blanket. Isolating a node

Draft: More complex graph computations for undirected graphical models by the CoCo bundle for R

Computer Vision Group Prof. Daniel Cremers. 4. Probabilistic Graphical Models Directed Models

Pre-processing for Triangulation of Probabilistic Networks

FMA901F: Machine Learning Lecture 6: Graphical Models. Cristian Sminchisescu

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Distributed Algorithms 6.046J, Spring, Nancy Lynch

A Complete Anytime Algorithm for Treewidth

COMP260 Spring 2014 Notes: February 4th

Pre-processing for Triangulation of Probabilistic Networks

Enumerating the decomposable neighbours of a decomposable graph under a simple perturbation scheme

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

GRAPHS Lecture 19 CS2110 Spring 2013

Multiagent Graph Coloring: Pareto Efficiency, Fairness and Individual Rationality By Yaad Blum, Jeffrey S. Rosenchein

Computer Vision Group Prof. Daniel Cremers. 4. Probabilistic Graphical Models Directed Models

Interaction Between Input and Output-Sensitive

GRAPHS Lecture 17 CS2110 Spring 2014

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

Lecture 3: Recap. Administrivia. Graph theory: Historical Motivation. COMP9020 Lecture 4 Session 2, 2017 Graphs and Trees

Summary. Acyclic Networks Join Tree Clustering. Tree Decomposition Methods. Acyclic Network. Tree Based Clustering. Tree Decomposition.

Characterization of Super Strongly Perfect Graphs in Chordal and Strongly Chordal Graphs

arxiv: v1 [math.co] 20 Nov 2018

6.896 Topics in Algorithmic Game Theory March 1, Lecture 8

1 Connected components in undirected graphs

Maximal Independent Set

CMPSCI 311: Introduction to Algorithms Practice Final Exam

Honour Thy Neighbour Clique Maintenance in Dynamic Graphs

Acyclic Network. Tree Based Clustering. Tree Decomposition Methods

Transcription:

/ EE596 Pat. Recog. II: Introduction to Graphical Models Spring 2000 Lecturer: Jeff Bilmes Lecture 11: May 1, 2000 University of Washington Dept. of Electrical Engineering Scribe: David Palmer 11.1 Graph Theory (review from last time) (decomposable) (chordal) (every min. -separation is complete) (there exists a junction tree of cliques) We want to try to get any graph into this family of equivalences, so that we can then construct a junction tree from the graph. Next time we will relate this to independence and inference. Running Intersection Property (RIP): a sequence ( ) of sets has the RIP if, where for some! #"%$&(') +*, + (the separator set) /$"- +.!.. (the history up to and including j) 0 $ (') (the residual or innovation) The sequence of cliques formed by a well-ordering (e.g., breadth-first or depth-first search order) of a junction tree has the RIP Why is this true? 1#"%$&(') +*, +#"- +2(34*, 4 567 4283 (since it is a junction tree), where 9):, a neighbor in the tree according to the search order 11.2 Constructing a Junction Tree Algorithm: constructing a junction tree input: 2 (the cliques of a chorded graph satisfying RIP) step 1: associate each node in the graph with each clique step 2: for "-; < >= add an edge between? and 4 for some 4 such that 1@7 (#"%$&(') +*, + ) Intuition: Why does it work? For a junction tree, for any node A, cliques containing A must induce a connected tree, and there are two cases: Case 1: ACBD1, and we know that 1:7 and :7 +, which means that ACBD? and AEB, 4 Case 2: ACFD1, which means that AEB "- 4 0 $G(') 11-1

Lecture 11: May 1, 2000 11-2 Note: node is a candidate for some later node that has A. See Lauritzen for the formal proof. 11.3 More Graph Theory Basics Definition: Perfect DAG - a DAG is perfect if the parents of every node form a complete set. A Perfect DAG NOT a Perfect DAG Figure 11.1: Examples of perfect and non-perfect DAGS Definition: Perfect Numbering - a node numbering (A A A ) of an UGM is perfect if the neighbors of any node that have a lower number than that node are complete, that is for which ne(a ) * A A A is complete. B D E A C Figure 11.2: Example Graph: ABCDEF is a perfect numbering but ABCEFD is not. Is ABCDEF a perfect numbering? yes Is ABCEFD a perfect numbering? no Note: any ordering of a complete graph is perfect F Give a well-ordered (e.g., topological order) (A A A ) perfect DAG, its undirected version A A < A a perfect numbering is chordal with Why? is decomposable: (' form a decomposition, where: " * (note that denotes closure w.r.t. the undirected graph) #"D!*(' " A A < A

Lecture 11: May 1, 2000 11-3 D (') " * A A < A A A < A (' * A A < A ) The first term * A A A is complete and therefore decomposable. The second term A A < A (' is decomposable by induction. The third term * A A < A is complete. Suppose we are given a perfect numbering (A A A ) of an UGM. We can produce a perfect DAG by pointing lower numbered vertices to higher numbered vertices. 4 4 2 6 2 6 1 1 5 5 3 Figure 11.3: Producing a perfect DAG from an UGM. 3 (again from Lauritzen) An UGM is chordal iff it admits a perfect numbering. Summary of equivalent conditions on graphs: decomposable chordal every minimal > -separator is complete. there is a junction tree of cliques the graph admits a perfect numbering But how do we tell if a graph is chordal? Two important definitions: Definition: simplicial - is simplicial if bd( ) is complete (all neighbors are joined in UGM) α Definition: eliminatable - a graph algorithm without adding any edges Not simplicial α Simplicial Figure 11.4: Examples of simplicial and non-simplicial nodes. Remember elimination algorithm (from first 2 lectures): 1. choose an ordering is eliminatable if all nodes can be successfully removed by the elimination

Lecture 11: May 1, 2000 11-4 2. pick nodes in order, join all neighbors 3. remove node, repeat Note: running elimination on a perfect numbering produces a chordal graph Any eliminatable graph is chordal. Proof: by induction Base case: 1 node is obvious Assume true for N, show N+1 Given an eliminatable graph with N+1 nodes, we know that it has at least one simplicial node A 0 is triangulated by induction (i.e. since 0 is eliminatable also) but A doesn t produce any chordless cycles because it is simplicial 5 G is chordal But how do we know if a graph is eliminatable? Could we run the elimination algorithm many times for all possible orderings? No, this would be prohibitively expensive. We need an efficient procedure for testing the chordality of a graph. 11.4 Maximum Cardinality Search Maximum Cardinality Search (MCS) is an algorithm that tests an UGM for chordality in O(V+E) time. First published by Tarjan and Yannakakis (1984), it is a very important algorithm for Bayes Net systems. Full reference: Robert Endre Tarjan, Mihalis Yannakakis: Simple Linear-Time Algorithms to Test Chordality of Graphs, Test Acyclicity of Hypergraphs, and Selectively Reduce Acyclic Hypergraphs. SIAM Journal on Computing, Volume 13, Number 3, August 1984, pp. 566-579.

Lecture 11: May 1, 2000 11-5 Algorithm: Maximum Cardinality Search Input: undirected graph Outputs: 1) whether is chordal or not 2) a perfect numbering for, if it is chordal set output = chordal set i=1 set L = set c(v) = 0 A B while (L " V) U = V 0 L A :" A "%A argmax ;; i is a counter >A ;; L is the set of previously labeled vertices ;; array counting number of previously labeled neighbors of each node v ;; current set of unlabeled vertices ;; find, from the unlabeled nodes, one with the greatest number of previously labeled neighbors, breaking ties arbitrarily. ;; rename so A gets the name A if A * is not complete ;; " " A * output = not chordal ". A i = i + 1 if set of previously labeled neighbors is not complete, not chordal ;; set of prev. labeled neighbors of A B A * ;; increment counds of all neighbors of this newly labeled node. Later we pick one with many neighbors. The idea is that we maximize the cardinality of the set of previously labeled neighbords, i.e., >A *. The cardinality is increased by increasing, so next node we choose will have many labeled neighbrods. We can prove that if ever such a set is not complete, then it is not chordal.

" " / Lecture 11: May 1, 2000 11-6 x4 6 2 x2 x6 5 1 x1 x3 3 x5 Figure 11.5: Node ordering produced by MCS algorithm: (1,2,3,5,6,4). Note: the first node in the ordering is chosen arbitrarily, since A :" 4 for all nodes during the first iteration. Also note: the resulting labels A A < A constitute a vertex ordering. This ordering will be perfect (if the graph is chordal) since for any node A, will be complete. 11.5 Finding Cliques Satisfying RIP Key idea: given the ordering produced by MCS, we can find a clique ordering satisfying RIP Algorithm: ladder-based clique construction start with node ordering (A A < A ) from MCS " ;; cardinality of sets of previously labeled neighbors define i as ladder node if th ladder node. +" are the cliques of G and clique ordering ( ) satisfies the RIP Proof: see Cowel et al. Probabilistic Networks and Expert Systems Table 11.1 shows the result of running the ladder-based clique construction algorithm on the node ordering produced by the MCS algorithm. The clique ordering produced by this algorithm is: 3,1,2, 5,2,3, 6,2,5, 4,2.

Lecture 11: May 1, 2000 11-7 Table 11.1: Ladder-based Clique Construction. Labeling 1 2 3 5 6 4 1 1,2 2,3 2,5 2 0 1 2 2 2 1 Ladder? N N Y Y Y Y 11.6 Look-ahead Triangulation What if the graph is not chordal or if it is a DAG? We need the smallest clique sizes in order to make probabilistic inference efficient, but choosing the best triangulation is an NP-Hard problem Full Reference: Mihalis Yannakakis. Edge-deletion problems. SIAM Journal on Computing, 10(2):297-309, May 1981. Algorithm: One-step look-ahead triangulation set i=k (k = number of nodes) unnumber all nodes while ( unnumbered nodes) select unnumbered node v that optimizes c(v) label v as i form set consisting of A and its unnumbered neighbors join all unjoined pairs of nodes in? eliminate A i = i+1 Note: quality of triangulation depends on choice of c(v) Elimination yields a triangulated graph Proof. (by induction) single nodes are obvious, so assume holds for N, show for N+1. Eliminating a node results in N node graph which is chorded by induction. The elimination step by itself does not produce chordless cycles since it joints all neighbords of nodes (forming a complete set). Any chordless cycle must go through that node. Note: not every tree of cliques from a chorded graph is a junction tree, as we will see. The weight of a tree of cliques w(t) = sum of cardinalities of separator sets needs to be maximum.