计算机科学 > 数据结构与算法
[提交于 2020年8月12日]
标题:Cadences in Grammar-Compressed Strings
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Julian Pape-Lange[v1] 2020年8月12日 星期三 22:51:47 UTC