arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1403.1065cs.DS
收藏

压缩子序列匹配与压缩树着色

Compressed Subsequence Matching and Packed Tree Coloring

Philip Bille, Patrick Hagge Cording, Inge Li Gørtz

摘要:

提出了一种新的文法压缩串的子序列匹配算法。给定一个大小为$n$的文法,在一个大小为$σ$的字母表上压缩一个大小为$N$的字符串和一个大小为$m$的模式字符串,我们的算法使用$O(n+\frac{nσ}{w})$空间和$O(n+\frac{nσ}{w}+m\log N\log w\cdot occ)$或$O(n+\frac{nσ}{w}\log w+m\log N\cdot occ)$时间。这里$w$是字的大小,而$occ$是模式出现的次数。我们的算法使用更少的空间比以前的算法,也是更快的$occ=o(\frac{n}{\log N})$发生。该算法使用了一种新的数据结构,使我们能够有效地找到下一次出现的一个给定的字符后,一个给定的位置在压缩字符串。该数据结构又基于树颜色问题的新数据结构,其中节点颜色被打包在位串中。

英文摘要:

We present a new algorithm for subsequence matching in grammar compressed strings. Given a grammar of size $n$ compressing a string of size $N$ and a pattern string of size $m$ over an alphabet of size $σ$, our algorithm uses $O(n+\frac{nσ}{w})$ space and $O(n+\frac{nσ}{w}+m\log N\log w\cdot occ)$ or $O(n+\frac{nσ}{w}\log w+m\log N\cdot occ)$ time. Here $w$ is the word size and $occ$ is the number of occurrences of the pattern. Our algorithm uses less space than previous algorithms and is also faster for $occ=o(\frac{n}{\log N})$ occurrences. The algorithm uses a new data structure that allows us to efficiently find the next occurrence of a given character after a given position in a compressed string. This data structure in turn is based on a new data structure for the tree color problem, where the node colors are packed in bit strings.

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

↑