SMS versenden: Algebraic dynamic programming