首页> 外文会议>String processing and information retrieval >Approximate Regular Expression Matching with Multi-strings
【24h】

Approximate Regular Expression Matching with Multi-strings

机译:带多字符串的近似正则表达式匹配

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

摘要

In this paper, we are interested in solving the approximate regular expression matching problem: we are given a regular expression R in advance and we wish to answer the following query: given a text T and a parameter k, find all the substrings of T which match the regular expression R with at most k errors (an error consist in deleting inserting, or substituting a character). There exists a well known solution for this problem in time O(mn) where m is the size of the regular expression (the number of operators and characters appearing in R) and n the length of the text. There also exists a solution for the case k = 0 (exact regular expression matching) which solves the problem in time O(dn), where d is the number of strings in the regular expression (a string is a sequence of characters connected with concatenation operator). In this paper, we show that both methods can be combined to solve the approximate regular approximate matching problem in time O(kdn) for arbitrary k. This bound can be much better than the bound O(mn/ log_(k+2)n) achieved by the best actual regular expression matching algorithm in case d < m/(klog_(k+2)n)(that is k is not too large and R contains much less occurrences of ∪ and * than occurrences of (·)).
机译:在本文中,我们有兴趣解决近似正则表达式匹配问题:我们预先给定了正则表达式R,并希望回答以下查询:给定文本T和参数k,找到T的所有子字符串,其中将正则表达式R最多匹配k个错误(错误在于删除插入或替换字符)。对于时间O(mn),存在一个众所周知的解决方案,其中m为正则表达式的大小(R中出现的运算符和字符数),n为文本长度。对于k = 0(精确的正则表达式匹配)的情况,也存在一种解决方案,它解决了时间O(dn)的问题,其中d是正则表达式中的字符串数(字符串是与串联连接的字符序列)运算符)。在本文中,我们证明了两种方法都可以结合起来解决任意k时刻O(kdn)的近似正则近似匹配问题。在d

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号