SMS dit: Stochastic models: an algorithmic approach