Computing Abelian String Regularities Based on RLE
Computing Abelian String Regularities Based on RLE
复制标题
基于RLE计算阿贝尔弦正则
DOI:
10.1007/978-3-319-78825-8_34
复制
发表时间:
2018
期刊:
影响因子:
--
通讯作者:
Masayuki Takeda
中科院分区:
文献类型:
--
作者:
Shiho Sugimoto;Naoki Noda;Shunsuke Inenaga;Hideo Bannai;Masayuki Takeda
Two stringsxandyare said to be Abelian equivalent ifxis a permutation ofy, or vice versa. If a stringzsatisfieswithxandybeing Abelian equivalent, thenzis said to be anAbelian square. If a stringwcan be factorized into a sequenceof strings such that, ...,are all Abelian equivalent andis a substring of a permutation of, thenwis said to have aregular Abelian period(p,t) whereand. If a substringof a stringand a substringof another stringare Abelian equivalent, then the substrings are said to be a common Abelian factor ofandand if the lengthis the maximum of such then the substrings are said to be alongest common Abelian factorofand. We propose efficient algorithms which compute these Abelian regularities using therun length encoding (RLE)of strings. For a given stringwof lengthnwhose RLE is of sizem, we propose algorithms which compute all Abelian squares occurring inwinO(mn) time, and all regular Abelian periods ofwinO(mn) time. For two given stringsandof total lengthnand of total RLE sizem, we propose an algorithm which computes all longest common Abelian factors intime.