Efficient Algorithms For Finding Submasses In Weighted Strings

COMBINATORIAL PATTERN MATCHING, PROCEEDINGS(2004)

引用 5|浏览7
暂无评分
摘要
We study the Submass Finding Problem: Given a string s over a weighted alphabet, i.e., an alphabet Sigma with a weight function mu: Sigma --> N, decide for an input mass M whether s has a substring whose weights sum up to M. If M is indeed a submass, then we want to find one or all occurrences of such substrings. 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 O(mu(s) log mu(s)), where mu(s) is the total mass of string s. Employing standard methods for compressing sparse polynomials, this runtime can be viewed as O(sigma(s) log(2) sigma(s)), where sigma(s) denotes the number of different submasses of s. In this case, the runtime is independent of the size of the individual masses of characters.
更多
查看译文
关键词
fast fourier transform,decision problem,weight function
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要