Combinatorics and discrete mathematics constitute the study of finite or countable structures and the algorithms that govern them.