Discrete math is sometimes referred to as the math for computer science. Topics in discrete math that are used in computer science include graphs, recursive formulas, counting, logic, probability and matrices. Discrete math methods may be used in designing algorithms and computer systems, as well as in software engineering.