Combinatorial methods in algebraic geometry and commutative algebra