Bayesian Algorithm Definition And Examples