arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2008.05594cs.DS
收藏

语法压缩字符串中的终止

Cadences in Grammar-Compressed Strings

Julian Pape-Lange

摘要:

终止符是对应于基础字符串中相等字符的索引的结构最大算术级数。本文提出了一种多项式时间检测文法压缩二进制串中3-终止的算法。该算法也转化为一个线性时间检测算法的3-终止在未压缩的二进制字符串。此外,本文证明了几个变种的韵律检测问题是NP-完全的语法压缩字符串。因此,长度为3的模式的等距子序列匹配问题是NP-完全的语法压缩的三进制字符串。

英文摘要:

Cadences are structurally maximal arithmetic progressions of indices corresponding to equal characters in an underlying string. This paper provides a polynomial time detection algorithm for 3-cadences in grammar-compressed binary strings. This algorithm also translates to a linear time detection algorithm for 3-cadences in uncompressed binary strings. Furthermore, this paper proves that several variants of the cadence detection problem are NP-complete for grammar-compressed strings. As a consequence, the equidistant subsequence matching problem with patterns of length three is NP-complete for grammar-compressed ternary strings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑