Seol mar théacs é seo: Stochastic models: an algorithmic approach