English

Solving Cyclic Longest Common Subsequence in Quadratic Time

Data Structures and Algorithms 2012-08-17 v3

Abstract

We present a practical algorithm for the cyclic longest common subsequence (CLCS) problem that runs in O(mn) time, where m and n are the lengths of the two input strings. While this is not necessarily an asymptotic improvement over the existing record, it is far simpler to understand and to implement.

Keywords

Cite

@article{arxiv.1208.0396,
  title  = {Solving Cyclic Longest Common Subsequence in Quadratic Time},
  author = {Andy Nguyen},
  journal= {arXiv preprint arXiv:1208.0396},
  year   = {2012}
}

Comments

Updated references; an O(n^2) solution already exists, though it is terribly unwieldy

R2 v1 2026-06-21T21:45:05.503Z