SMS dit: Probability and algorithms