Zaslat SMS: Graph theory, combinatorics, and algorithms