Seol mar théacs é seo: Dynamic Programming and Bayesian Inference, Concepts and Applications