 GSP algorithm makes multiple database passes.In the first pass, all single items (1-sequences) are counted.From the frequent items, a set of candidate 2-sequences are formed, and another pass is made to identify their frequency.