PaREM:一种新的并行正则表达式匹配方法
PaREM: A Novel Approach for Parallel Regular Expression Matching
摘要:
正则表达式匹配对于许多应用程序都是必不可少的,例如查找文本中的模式,探索大型DNA序列中的子串或词法分析。然而,顺序正则表达式匹配对于大问题大小可能是时间限制性的。在本文中,我们描述了一个新的算法并行正则表达式匹配通过确定性有限自动机。此外,我们提出了我们的工具PaREM,接受正则表达式和有限自动机作为输入,并自动生成相应的代码,我们的算法是适合共享内存系统上的并行执行。我们评估我们的并行算法的经验,通过比较它与常用的算法顺序正则表达式匹配。在具有24个物理核的双插槽共享内存系统上的实验表明,对于48个线程,速度提升高达21倍。
英文摘要:
Regular expression matching is essential for many applications, such as finding patterns in text, exploring substrings in large DNA sequences, or lexical analysis. However, sequential regular expression matching may be time-prohibitive for large problem sizes. In this paper, we describe a novel algorithm for parallel regular expression matching via deterministic finite automata. Furthermore, we present our tool PaREM that accepts regular expressions and finite automata as input and automatically generates the corresponding code for our algorithm that is amenable for parallel execution on shared-memory systems. We evaluate our parallel algorithm empirically by comparing it with a commonly used algorithm for sequential regular expression matching. Experiments on a dual-socket shared-memory system with 24 physical cores show speed-ups of up to 21x for 48 threads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。