循环字典匹配问题是经典字典匹配问题的扩展,其中字典中的每个字符串都被解释为循环字符串:在读取字符串的最后一个字符后,我们可以回到它的第一个字符。循环字典匹配问题由生物信息学和计算几何中的应用所推动。2011年,Hon等人[ISAAC 2011]展示了如何在压缩空间内通过基于Mantaci等人的eBWT和Sadakane的压缩后缀树来高效解决循环字典匹配查询。该提出的解决方案基于以下假设:字典中的字符串都是互不相同且非周期性的,没有字符串是其他字符串的循环旋转,且字典中的字符串具有相似的长度。在本文中,我们考虑任意字典,并展示如何在压缩空间内使用 $ n \log σ(1 + o(1)) + O(n) + O(d \log n) $ 比特,在 $ O((m + occ) \log n) $ 时间内解决循环字典匹配查询,其中 $ n $ 是字典的总长度,$ m $ 是模式的长度,$ occ $ 是出现的次数,$ d $ 是字典中字符串的数量,$ σ $ 是字母表的大小。我们的解决方案基于将后缀数组扩展到任意字典,以及一种受图索引和压缩最新结果启发的字典LCP数组的采样机制。
英文摘要:
The circular dictionary matching problem is an extension of the classical dictionary matching problem where every string in the dictionary is interpreted as a circular string: after reading the last character of a string, we can move back to its first character. The circular dictionary matching problem is motivated by applications in bioinformatics and computational geometry.
In 2011, Hon et al. [ISAAC 2011] showed how to efficiently solve circular dictionary matching queries within compressed space by building on Mantaci et al.'s eBWT and Sadakane's compressed suffix tree. The proposed solution is based on the assumption that the strings in the dictionary are all distinct and non-periodic, no string is a circular rotation of some other string, and the strings in the dictionary have similar lengths.
In this paper, we consider arbitrary dictionaries, and we show how to solve circular dictionary matching queries in $ O((m + occ) \log n) $ time within compressed space using $ n \log σ(1 + o(1)) + O(n) + O(d \log n) $ bits, where $ n $ is the total length of the dictionary, $ m $ is the length of the pattern, $ occ $ is the number of occurrences, $ d $ is the number of strings in the dictionary and $ σ$ is the size of the alphabet. Our solution is based on an extension of the suffix array to arbitrary dictionaries and a sampling mechanism for the LCP array of a dictionary inspired by recent results in graph indexing and compression.
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Massachusetts Institute of Technology(麻省理工学院);Feicheng Hailiang Foreign Language School(费城海亮外国语学校);Tsinghua University(清华大学)
Online matching games in bipartite expanders: applications to bitprobes and dictionaries with non-adaptive probing
National Research University Higher School of Economics, Faculty of Computer Science(高等经济大学计算机学院);Department of Computer and Information Sciences, Towson University(汤森大学计算机与信息科学系)