arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.11829cs.DC
收藏

大规模并行计算模型中带通配符的字符串匹配

String Matching with Wildcards in the Massively Parallel Computation Model

MohammadTaghi Hajiaghayi, Hamed Saleh, Saeed Seddighin, Xiaorui Sun

摘要:

研究了存在通配字符的字符串匹配问题的分布式算法。给定一个字符串T(一个文本),我们寻找另一个字符串P(一个模式)作为字符串T的子串的所有出现。模式中的每个通配字符都根据其类型匹配特定的字符串类。字符串匹配是计算机科学中最基本的问题之一,特别是在生物信息学和机器学习领域。自20世纪60年代以来,经过不懈的努力,已经产生了多种解决该问题的算法。随着大数据的兴起和解决大数据集问题的必然需求,已经有许多尝试将经典算法应用到MPC框架中以获得进一步的效率。MPC是一个新的大数据并行计算框架,旨在捕获类似MapReduce的算法。在本文中,我们研究了字符串匹配问题,使用一组工具转换为MPC模型。我们在字符串匹配中考虑三种类型的通配符:- '?“”模式:在此设置中,模式允许包含特殊“?'字符或与文本的任何字符匹配的无关字符。利用快速卷积可以解决无关字符串的匹配问题,并给出了一种固定循环数的MPC算法,该算法在固定循环数的MPC中利用FFT。- “+”字符:“+”字符是一个专用字符,允许任意重复一个字符。当模式中包含“+”通配字符时,通过子集匹配问题的约简,算法运行在固定的MPC轮数中。- “*”字符串:“*”是一个专用字符,与文本的任何子字符串匹配。当模式中允许使用“*”时,我们在对数轮中解决问题的两种特殊情况。

英文摘要:

We study distributed algorithms for string matching problem in presence of wildcard characters. Given a string T (a text), we look for all occurrences of another string P (a pattern) as a substring of string T . Each wildcard character in the pattern matches a specific class of strings based on its type. String matching is one of the most fundamental problems in computer science, especially in the fields of bioinformatics and machine learning. Persistent effort has led to a variety of algorithms for the problem since 1960s. With rise of big data and the inevitable demand to solve problems on huge data sets, there have been many attempts to adapt classic algorithms into the MPC framework to obtain further efficiency. MPC is a recent framework for parallel computation of big data, which is designed to capture the MapReduce-like algorithms. In this paper, we study the string matching problem using a set of tools translated to MPC model. We consider three types of wildcards in string matching: - '?' wildcard: In this setting, the pattern is allowed to contain special '?' characters or don't cares that match any character of the text. String matching with don't cares could be solved by fast convolutions, and we give a constant round MPC algorithm for which by utilizing FFT in a constant number of MPC rounds. - '+' wildcard: '+' wildcard is a special character that allows for arbitrary repetitions of a character. When the pattern contains '+' wildcard characters, our algorithm runs in a constant number of MPC rounds by a reduction from subset matching problem. - '*' wildcard: '*' is a special character that matches with any substring of the text. When '*' is allowed in the pattern, we solve two special cases of the problem in logarithmic rounds.

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

↑