Comparison of Efficient Algorithms for Sequence Generation in Data Mining