SMS: Combinatorial algorithms