Longest Common Abelian Factors and Large Alphabets
Longest Common Abelian Factors and Large Alphabets
复制标题
最长公共阿贝尔因子和大字母
DOI:
10.1007/978-3-319-46049-9_24
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
Simon J. Puglisi and Shiho Sugimoto
中科院分区:
文献类型:
--
作者:
Golnaz Badkobeh;Travis Gagie;Szymon Grabowski;Yuto Nakashima;Simon J. Puglisi and Shiho Sugimoto
Two stringsXandYare considered Abelian equal if the letters ofXcan be permuted to obtainY(and vice versa). Recently, Alatabbi et al. (2015) considered thelongest common Abelian factor problemin which we are asked to find the length of the longest Abelian-equal factor present in a given pair of strings. They provided an algorithm that usestime andspace, wherenis the length of the pair of strings andis the alphabet size. In this paper we describe an algorithm that usestime andspace, significantly improving Alatabbi et al.’s result unless the alphabet is small. Our algorithm makes use of techniques for maintaining a dynamic set of strings under split, join, and equality testing (Melhorn et al., Algorithmica 17(2), 1997).