首页> 外文期刊>Algorithmica >Streaming Pattern Matching with d Wildcards
【24h】

Streaming Pattern Matching with d Wildcards

机译:带d通配符的流模式匹配

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

摘要

In the pattern matching with d wildcards problem one is given a text T of length n and a pattern P of length m that contains d wildcard characters, each denoted by a special symbol '?'. A wildcard character matches any other character. The goal is to establish for each m-length substring of T whether it matches P. In the streaming model variant of the pattern matching with d wildcards problem the text T arrives one character at a time and the goal is to report, before the next character arrives, if the last m characters match P while using only o(m) words of space. In this paper we introduce two new algorithms for the d wildcard pattern matching problem in the streaming model. The first is a randomized Monte Carlo algorithm that is parameterized by a constant 0 = delta = 1. This algorithm uses (O) over tilde (d(1-delta)) amortized time per character and (O) over tilde (d(1+delta)) words of space. The second algorithm, which is used as a black box in the first algorithm, is a randomized Monte Carlo algorithm which uses O(d + log m) worst-case time per character and O(d + log m) words of space.
机译:在与d个通配符匹配的模式中,给定一个长度为n的文本T和一个长度为m的模式P,其中包含d个通配符,每个通配符由特殊符号“?”表示。通配符与任何其他字符匹配。目标是为T的每个m长度子串确定是否与P匹配。在与d通配符匹配的模式的流模型变体中,文本T一次到达一个字符,目标是在下一个之前报告如果仅使用o(m)个空格字,最后m个字符与P匹配,则字符到达。本文针对流模型中的d通配符模式匹配问题介绍了两种新算法。第一种是由常数0 <= delta <= 1参数化的随机蒙特卡洛算法。此算法在每个字符上使用(O)代字号(d(1-delta))摊销时间,使用(O)代字号(d (1 + delta))个空格字。第二种算法在第一种算法中被用作黑匣子,它是一种随机蒙特卡洛算法,该算法使用每个字符O(d + log m)的最坏情况时间和O(d + log m)个空间字。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号