English

Algorithms for Longest Common Abelian Factors

Data Structures and Algorithms 2015-03-03 v1

Abstract

In this paper we consider the problem of computing the longest common abelian factor (LCAF) between two given strings. We present a simple O(σ n2)O(\sigma~ n^2) time algorithm, where nn is the length of the strings and σ\sigma is the alphabet size, and a sub-quadratic running time solution for the binary string case, both having linear space requirement. Furthermore, we present a modified algorithm applying some interesting tricks and experimentally show that the resulting algorithm runs faster.

Keywords

Cite

@article{arxiv.1503.00049,
  title  = {Algorithms for Longest Common Abelian Factors},
  author = {Ali Alatabbi and Costas S. Iliopoulos and Alessio Langiu and M. Sohel Rahman},
  journal= {arXiv preprint arXiv:1503.00049},
  year   = {2015}
}

Comments

13 pages, 4 figures

R2 v1 2026-06-22T08:40:18.192Z