On demand string sorting over unbounded alphabets

被引:3
|
作者
Kent, Carmel [2 ]
Lewenstein, Moshe [1 ]
Sheinwald, Dafna [2 ]
机构
[1] Bar Ilan Univ, Dept Comp Sci, Ramat Gan, Israel
[2] IBM Res Lab, Haifa, Israel
基金
以色列科学基金会;
关键词
String matching; Data structures; SUFFIX TREE CONSTRUCTION; LINEAR-TIME CONSTRUCTION; ARRAYS;
D O I
10.1016/j.tcs.2011.12.001
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
On-demand string sorting is the problem of preprocessing a set of strings to allow subsequent queries for finding the k lexicographically smallest strings (and afterward the next k etc.) This on-demand variant strongly resembles the search engine queries which give you the best k-ranked pages recurringly. We present a data structure that supports this in O(n) preprocessing time, where n is the number of strings, and answer queries in O(log n) time. There is also a cost of O(N) time amortized over all operations, where N is the total length of the strings. Our data structure is a heap of strings, which supports heapify and delete-mins. As it turns out, implementing a full heap with all operations is not that simple. For the sake of completeness, we propose a heap with full operations based on balanced indexing trees that supports the heap operations in optimal times. (C) 2011 Elsevier B.V. All rights reserved.
引用
收藏
页码:66 / 74
页数:9
相关论文
共 50 条
  • [41] Expansions in multiple bases over general alphabets
    Komornik, V
    Lu, J.
    Zou, Y.
    ACTA MATHEMATICA HUNGARICA, 2022, 166 (02) : 481 - 506
  • [42] Bounds for Covering Codes over Large Alphabets
    Gerzson Kéri
    Patric R. J. Östergård
    Designs, Codes and Cryptography, 2005, 37 : 45 - 60
  • [43] Inverse semigroup shifts over countable alphabets
    Goncalves, Daniel
    Sobottka, Marcelo
    Starling, Charles
    SEMIGROUP FORUM, 2018, 96 (02) : 203 - 240
  • [44] On Generalized Pseudostandard Words Over Binary Alphabets
    Masse, Alexandre Blondin
    Paquin, Genevieve
    Tremblay, Hugo
    Vuillon, Laurent
    JOURNAL OF INTEGER SEQUENCES, 2013, 16 (02)
  • [45] Optimal Square Detection Over General Alphabets
    Ellert, Jonas
    Gawrychowski, Pawel
    Gourdel, Garance
    PROCEEDINGS OF THE 2023 ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, SODA, 2023, : 5220 - 5242
  • [46] Ultragraphs and shift spaces over infinite alphabets
    Goncalves, Daniel
    Royer, Danilo
    BULLETIN DES SCIENCES MATHEMATIQUES, 2017, 141 (01): : 25 - 45
  • [47] Galois LCD codes over mixed alphabets
    Bajalan, Maryam
    Tabue, Alexandre Fotue
    Kabore, Joel
    Martinez-Moro, Edgar
    FINITE FIELDS AND THEIR APPLICATIONS, 2023, 85
  • [48] Classification of MDS Codes over Small Alphabets
    Kokkala, Janne I.
    Krotov, Denis S.
    Ostergard, Patric R. J.
    CODING THEORY AND APPLICATIONS, 4TH INTERNATIONAL CASTLE MEETING, 2015, 3 : 227 - 235
  • [49] A Note on Sequence Prediction over Large Alphabets
    Gagie, Travis
    ALGORITHMS, 2012, 5 (01) : 50 - 55
  • [50] Performance of universal codes over infinite alphabets
    Orlitsky, A
    Santhanam, NP
    DCC 2003: DATA COMPRESSION CONFERENCE, PROCEEDINGS, 2003, : 402 - 410