Papers
Topics
Authors
Recent
Search
2000 character limit reached

Dictionary Matching with One Gap

Published 11 Aug 2014 in cs.DS | (1408.2350v1)

Abstract: The dictionary matching with gaps problem is to preprocess a dictionary DD of dd gapped patterns P1,,PdP_1,\ldots,P_d over alphabet Σ\Sigma, where each gapped pattern PiP_i is a sequence of subpatterns separated by bounded sequences of don't cares. Then, given a query text TT of length nn over alphabet Σ\Sigma, the goal is to output all locations in TT in which a pattern PiDP_i\in D, 1id1\leq i\leq d, ends. There is a renewed current interest in the gapped matching problem stemming from cyber security. In this paper we solve the problem where all patterns in the dictionary have one gap with at least α\alpha and at most β\beta don't cares, where α\alpha and β\beta are given parameters. Specifically, we show that the dictionary matching with a single gap problem can be solved in either O(dlogd+D)O(d\log d + |D|) time and O(dlog<sup>ε</sup>d+D)O(d\log<sup>{\varepsilon}</sup> d + |D|) space, and query time O(n(βα)loglogdlog<sup>2</sup>mind,logD+occ)O(n(\beta -\alpha )\log\log d \log <sup>2</sup> \min { d, \log |D| } + occ), where occocc is the number of patterns found, or preprocessing time and space: O(d<sup>2</sup>+D)O(d<sup>2</sup> + |D|), and query time O(n(βα)+occ)O(n(\beta -\alpha ) + occ), where occocc is the number of patterns found. As far as we know, this is the best solution for this setting of the problem, where many overlaps may exist in the dictionary.

Citations (16)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.