Longest Common Abelian Factors and Large Alphabets

被引:3
|
作者
Badkobeh, Golnaz [1 ]
Gagie, Travis [2 ]
Grabowski, Szymon [3 ]
Nakashima, Yuto [4 ,5 ]
Puglisi, Simon J. [2 ]
Sugimoto, Shiho [4 ]
机构
[1] Univ Warwick, Dept Comp Sci, Coventry, W Midlands, England
[2] Univ Helsinki, Helsinki Inst Informat Technol, Dept Comp Sci, Helsinki, Finland
[3] Lodz Univ Technol, Inst Appl Comp Sci, Lodz, Poland
[4] Kyushu Univ, Dept Informat, Kyushu, Japan
[5] Japan Soc Promot Sci, Tokyo, Japan
关键词
D O I
10.1007/978-3-319-46049-9_24
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Two strings X and Y are considered Abelian equal if the letters of X can be permuted to obtain Y (and vice versa). Recently, Alatabbi et al. (2015) considered the longest common Abelian factor problem in 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 uses O(sigma n(2)) time and O(sigma n) space, where n is the length of the pair of strings and sigma is the alphabet size. In this paper we describe an algorithm that uses O(n(2) log(2) n log* n) time and O(n log(2) n) space, 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).
引用
收藏
页码:254 / 259
页数:6
相关论文
共 50 条