Skip to content

Instantly share code, notes, and snippets.

View 2grep's full-sized avatar

Niels Olson 2grep

View GitHub Profile
@2grep
2grep / lcs.py
Last active August 29, 2015 14:22 — forked from istepanov/lcs.py
#!/usr/bin/env python
# -*- coding: utf-8
"""
Search longest common substrings using generalized suffix trees built with Ukkonen's algorithm
Author: Ilya Stepanov <code at ilyastepanov.com>
(c) 2013