Algorithms for Graphical Models (AGM)

Practical 05: Sampling


  1. Some maths
  2. Forming join trees
  3. Manual triangulation
  4. Graham's algorithm
  5. Basic sampling

Some maths

Solution: Look at i) and ii) of Exercise 8


Forming join trees (or not as the case may be)

The graph is not triangulated since it has a cycle with 4 nodes without a chord. To get a triangulated graph just add a chord.


Manual triangulation

First one was already triangulated! The numbers give the elimination ordering.

triangulation answers


Graham's algorithm

A complicated solution Simpler, but perhaps slower ones are fine.


Basic sampling

Have a look at my approach. Perhaps it would be faster to use a tree-based method.


Last modified: Mon Nov 20 11:08:50 GMT 2006

Valid XHTML 1.1!