Bayesian network AI algorithms