Back to Search Start Over

Finding submasses in weighted strings with Fast Fourier Transform

Authors :
Bansal, Nikhil
Cieliebak, Mark
Lipták, Zsuzsanna
Source :
Discrete Applied Mathematics. Apr2007, Vol. 155 Issue 6/7, p707-718. 12p.
Publication Year :
2007

Abstract

Abstract: We study the Submass Finding Problem: given a string s over a weighted alphabet, i.e., an alphabet with a weight function , we refer to a mass as a submass of s if s has a substring whose weights sum up to M. Now, for a set of input masses , we want to find those which are submasses of s, and return one or all occurrences of substrings with mass . We present efficient algorithms for both the decision and the search problem. Furthermore, our approach allows us to compute efficiently the number of different submasses of s. The main idea of our algorithms is to define appropriate polynomials such that we can determine the solution for the Submass Finding Problem from the coefficients of the product of these polynomials. We obtain very efficient running times by using Fast Fourier Transform to compute this product. Our main algorithm for the decision problem runs in time , where is the total mass of string s. Employing methods for compressing sparse polynomials, this runtime can be viewed as , where denotes the number of different submasses of s. In this case, the runtime is independent of the size of the individual masses of characters. [Copyright &y& Elsevier]

Details

Language :
English
ISSN :
0166218X
Volume :
155
Issue :
6/7
Database :
Academic Search Index
Journal :
Discrete Applied Mathematics
Publication Type :
Academic Journal
Accession number :
23946717
Full Text :
https://doi.org/10.1016/j.dam.2005.09.019