I have implemented a python version of the Gap-Bide algorithm according to Efficiently Mining Closed Subsequences with Gap Constraints . The algorithm is to mine a set of gap-constrained patterns from a set of sequence. The source code is release at http://code.google.com/p/pygapbide/ , under MIT License . Note the code has been migrated to github, at https://github.com/socrateslee/pygapbide .