Dynamic Dictionary Matching in the Online Model

被引:1
|
作者
Golan, Shay [1 ]
Kociumaka, Tomasz [1 ]
Kopelowitz, Tsvi [1 ]
Porat, Ely [1 ]
机构
[1] Bar Ilan Univ, Ramat Gan, Israel
来源
关键词
D O I
10.1007/978-3-030-24766-9_30
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the classic dictionary matching problem, the input is a dictionary of patterns D = {P-1, P-2, ... , P-k} and a text T, and the goal is to report all the occurrences in T of every pattern from D. In the dynamic version of the dictionary matching problem, patterns may be either added or removed from D. In the online version of the dictionary matching problem, the characters of T arrive online, one at a time, and the goal is to establish, immediately after every new character arrival, which of the patterns in D are a suffix of the current text. In this paper, we consider the dynamic version of the online dictionary matching problem. For the case where all the patterns have the same length m, we design an algorithm that adds or removes a pattern in O(mlog log parallel to D parallel to) time and processes a text character in O(log log parallel to D parallel to) time, where parallel to D parallel to = Sigma(P is an element of D) vertical bar P vertical bar. For the general case where patterns may have different lengths, the cost of adding or removing a pattern P is O(vertical bar P vertical bar log log parallel to D parallel to + logd/ log log d) while the cost per text character is O(log log parallel to D parallel to + (1 + occ) log d/ log log d), where d = vertical bar D vertical bar is the number of patterns in D and occ is the size of the output. These bounds improve on the state of the art for dynamic dictionary matching, while also providing online features. All our algorithms are Las-Vegas randomized and the time costs are in the worst-case with high probability. A by-product of our work is a solution for the fringed colored ancestor problem, resolving an open question of Breslauer and Italiano [J. Discrete Algorithms, 2013].
引用
收藏
页码:409 / 422
页数:14
相关论文
共 50 条
  • [21] ONLINE RECOGNITION BY DEVIATION-EXPANSION MODEL AND DYNAMIC-PROGRAMMING MATCHING
    LIN, CK
    FAN, KC
    LEE, FTP
    PATTERN RECOGNITION, 1993, 26 (02) : 259 - 268
  • [22] Experimental Analysis of an Online Dictionary Matching Algorithm for Regular Expressions with Gaps
    Saikkonen, Riku
    Sippu, Seppo
    Soisalon-Soininen, Eljas
    EXPERIMENTAL ALGORITHMS, SEA 2015, 2015, 9125 : 327 - 338
  • [23] Efficient dynamic dictionary matching with DAWGs and AC-automata
    Hendrian, Diptarama
    Inenaga, Shunsuke
    Yoshinaka, Ryo
    Shinohara, Ayumi
    THEORETICAL COMPUTER SCIENCE, 2019, 792 : 161 - 172
  • [24] A NEW LINEAR-TIME DYNAMIC DICTIONARY MATCHING ALGORITHM
    Khancome, Chouvalit
    Boonjing, Veera
    COMPUTING AND INFORMATICS, 2013, 32 (05) : 897 - 923
  • [25] ECG Beats Classification via Online Sparse Dictionary and Time Pyramid Matching
    Li, Nanyu
    Si, Yujuan
    Deng, Duo
    Yuan, Chunyu
    2017 17TH IEEE INTERNATIONAL CONFERENCE ON COMMUNICATION TECHNOLOGY (ICCT 2017), 2017, : 1537 - 1543
  • [26] EFFICIENT ONLINE DICTIONARY ADAPTATION AND IMAGE RECONSTRUCTION FOR DYNAMIC MRI
    Ravishankar, Saiprasad
    Moore, Brian E.
    Nadakuditi, Raj Rao
    Fessler, Jeffrey A.
    2017 FIFTY-FIRST ASILOMAR CONFERENCE ON SIGNALS, SYSTEMS, AND COMPUTERS, 2017, : 835 - 839
  • [27] A Primal-Dual Online Algorithm for Online Matching Problem in Dynamic Environments
    Zhou, Yu-Hang
    Hu, Peng
    Liang, Chen
    Xu, Huan
    Huzhang, Guangda
    Feng, Yinfu
    Da, Qing
    Wang, Xinshang
    Zeng, An-Xiang
    THIRTY-FIFTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THIRTY-THIRD CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE AND THE ELEVENTH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2021, 35 : 11160 - 11167
  • [28] A model for an online Australian English cultural dictionary database
    Kwary, Deny A.
    Miller, Julia
    TERMINOLOGY, 2013, 19 (02): : 258 - 276
  • [29] Internal Dictionary Matching
    Charalampopoulos, Panagiotis
    Kociumaka, Tomasz
    Mohamed, Manal
    Radoszewski, Jakub
    Rytter, Wojciech
    Walen, Tomasz
    ALGORITHMICA, 2021, 83 (07) : 2142 - 2169
  • [30] On Randomized Algorithms for Matching in the Online Preemptive Model
    Chiplunkar, Ashish
    Tirodkar, Sumedh
    Vishwanathan, Sundar
    ALGORITHMS - ESA 2015, 2015, 9294 : 325 - 336