First, finding the most frequently occurring pairs