Mind the Gap! - Online Dictionary Matching with One Gap.

ALGORITHMICA(2019)

引用 10|浏览82
暂无评分
摘要
We examine the complexity of the online Dictionary Matching with One Gap Problem (DMOG) which is the following. Preprocess a dictionary D of d patterns, where each pattern contains a special gap symbol that can match any string, so that given a text that arrives online, a character at a time, we can report all of the patterns from D that are suffixes of the text that has arrived so far, before the next character arrives. In more general versions the gap symbols are associated with bounds determining the possible lengths of matching strings. Online DMOG captures the difficulty in a bottleneck procedure for cyber-security, as many digital signatures of viruses manifest themselves as patterns with a single gap. In this paper, we demonstrate that the difficulty in obtaining efficient solutions for the DMOG problem, even in the offline setting, can be traced back to the infamous 3SUM conjecture. We show a conditional lower bound of ((GD)+op) time per text character, where GD is a bipartite graph that captures the structure of D, (GD) is the degeneracy of this graph, and op is the output size. Moreover, we show a conditional lower bound in terms of the magnitude of gaps for the bounded case, thereby showing that some known offline upper bounds are essentially optimal. We also provide upper-bounds in terms of the degeneracy for the online DMOG problem. In particular, we introduce algorithms whose time cost depends linearly on (GD). Our algorithms make use of graph orientations, together with some additional techniques. These algorithms are of interest for practical cases in which (GD) is a small constant. Since (GD) can in general be as large as d, and even larger if GD is a multi-graph, we also obtain other solutions adequate for such dense cases.
更多
查看译文
关键词
Pattern matching,Dictionary matching,3SUM,Triangle reporting
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要