Intro & Quick Demo

License: Dual
Python 3.8+

Official research companion and demo website for the Longest Sorted Bucket Sequence (LSBS) algorithm, a unique algorithmic approach that bridges the Longest Common Subsequence (LCS) and 2D Longest Increasing Subsequence (LIS) problems, while simplifying the renowned algorithm intorduced by James W. Hunt and Thomas G. Szymanski.

LSBS is a unique algorithm that solves the Longest Common Subsequence problem by transforming it into a 2D Longest Increasing Subsequence problem through the use of a Common Element Table (CET). The approach provides both theoretical insights and practical implementations for sequence analysis.

Key Innovation

  • LSBS Algorithm: Transforms LCS computation into 2D LIS finding
  • Common Element Table (CET): Efficiently maps character occurrences between sequences
  • Multiple LIS Backends: Supports both Dynamic Programming and Patience Sorting approaches
  • Performance Analysis: Comprehensive comparison with classical LCS algorithms


Extract Longest Common Subsequence using LSBS
Characters - /20
Characters - /20