Message-passing Algorithms in Graphical Models and their Applications to Large-Scale Stochastic Systems 03-23-2004