Topics in extremal and algebraic combinatorics