(Loopy) Belief Propagation on Markov Random Fields