The mathematics behind worldwide elimination-style competitions.