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 条
  • [41] Maximum Matching in the Online Batch-arrival Model
    Lee, Euiwoong
    Singla, Sahil
    ACM TRANSACTIONS ON ALGORITHMS, 2020, 16 (04)
  • [42] Maximum Matching in the Online Batch-Arrival Model
    Lee, Euiwoong
    Singla, Sahil
    INTEGER PROGRAMMING AND COMBINATORIAL OPTIMIZATION, IPCO 2017, 2017, 10328 : 355 - 367
  • [43] Online bipartite matching in the probe-commit model
    Borodin, Allan
    Macrury, Calum
    MATHEMATICAL PROGRAMMING, 2025,
  • [44] Online Bipartite Matching in the Probe-Commit Model
    Department of Computer Science, University of Toronto, Toronto
    ON, Canada
    arXiv, 1600,
  • [45] Dynamic Dictionary Algorithms for Model Order and Parameter Estimation
    Austin, Christian D.
    Ash, Joshua N.
    Moses, Randolph L.
    IEEE TRANSACTIONS ON SIGNAL PROCESSING, 2013, 61 (20) : 5117 - 5130
  • [46] Online doctor-patient dynamic stable matching model based on regret theory under incomplete information
    Zhao, Meng
    Wang, Yajun
    Zhang, Xueyi
    Xu, Chang
    SOCIO-ECONOMIC PLANNING SCIENCES, 2023, 87
  • [47] Compressed automata for dictionary matching
    I, Tomohiro
    Nishimoto, Takaaki
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    THEORETICAL COMPUTER SCIENCE, 2015, 578 : 30 - 41
  • [48] Dictionary matching with a few gaps
    Amir, Amihood
    Levy, Avivit
    Porat, Ely
    Shalom, B. Riva
    THEORETICAL COMPUTER SCIENCE, 2015, 589 : 34 - 46
  • [49] Online Dictionary of Idioms
    Lobzhanidze, Irina
    PROCEEDINGS OF THE XVII EURALEX INTERNATIONAL CONGRESS: LEXICOGRAPHY AND LINGUISTIC DIVERSITY, 2016, : 710 - 716
  • [50] A dictionary of tourism online
    Lepinette, Brigitte
    CEDILLE-REVISTA DE ESTUDIOS FRANCESES, 2015, (11): : 581 - 584