Indexing permutations for binary strings
暂无分享,去创建一个
Given a pattern P of length m and a text T of length n, the permutation matching problem asks whether any permutation of P occurs in T. Indexing a string for permutation matching seems to be quite hard in spite of the existence of a simple non-indexed solution. It is an open question whether there exists an index data structure for this problem with o(n^2) time and space complexity even for a binary alphabet. In this paper, we settle this question by reducing the problem to the (min,+) convolution problem and thereby achieving an O(n^2/logn) time data structure for a binary string capable of answering permutation queries in O(m) time. The space requirement of the data structure is also improved to be linear.
[1] Zsuzsanna Lipták,et al. Searching for Jumbled Patterns in Strings , 2009, Stringology.
[2] Jan Holub,et al. Proceedings of the Prague Stringology Conference 2009 , 2009 .
[3] Louis Ibarra. Finding Pattern Matchings for Permutations , 1997, Inf. Process. Lett..
[4] Prosenjit Bose,et al. Pattern Matching for Permutations , 1993, WADS.
[5] Timothy M. Chan,et al. Necklaces, Convolutions, and X + Y , 2006, ESA.