【24h】

A New Linearizing Restriction in the Pattern Matching Problem

机译:模式匹配问题中的新线性化限制

获取原文
获取原文并翻译 | 示例

摘要

In the pattern matching problem, there can be a quadratic number of matching substrings in the size of a given text. The linearizing restriction finds, at most, a linear number of matching substrings. We first explore two well-known linearizing restriction rules, the longest-match rule and the shortest-match substring search rule, and show that both rules give the same result when a pattern is an infix-free set even though they have different semantics. Then, we introduce a new linearizing restriction, the leftmost non-overlapping match rule that is suitable for find-and-replace operations in text searching, and propose an efficient algorithm when the pattern is a regular language according to the new match rule.
机译:在模式匹配问题中,给定文本的大小可能存在二次匹配的子字符串。线性化限制最多只能找到线性数目的匹配子串。我们首先探索两个众所周知的线性化限制规则,即最长匹配规则和最短匹配子字符串搜索规则,并证明当模式为无固定集时,即使它们具有不同的语义,这两个规则也会给出相同的结果。然后,我们引入了一种新的线性化限制条件,即最适合文本搜索中的查找和替换操作的最不重叠的匹配规则,并根据新的匹配规则,提出了一种模式为常规语言时的高效算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号