The Tutte polynomial and applications