 The frequent 2-sequences are used to generate the candidate 3-sequences, and this process is repeated until no more frequent sequences are found.There are two main steps in the algorithm.F1 = the set of frequent 1-sequence

The above algorithm looks like the Apriori algorithm.