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 条
  • [31] Algorithms for modeling distributions over large alphabets
    Orlitsky, A
    Sajama
    Santhanam, N
    Viswanathan, K
    Zhang, JN
    2004 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY, PROCEEDINGS, 2004, : 306 - 306
  • [32] Random Regular Expression Over Huge Alphabets
    Nicaud, Cyril
    Rotondo, Pablo
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2021, 32 (05) : 419 - 438
  • [33] Towards regular languages over infinite alphabets
    Neven, R
    Schwentick, T
    Vianu, V
    MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2001, 2001, 2136 : 560 - 572
  • [34] Bordered Conjugates of Words over Large Alphabets
    Harju, Tero
    Nowotka, Dirk
    ELECTRONIC JOURNAL OF COMBINATORICS, 2008, 15 (01):
  • [35] Weighted Variable Automata over Infinite Alphabets
    Pittou, Maria
    Rahonis, George
    IMPLEMENTATION AND APPLICATION OF AUTOMATA, CIAA 2014, 2014, 8587 : 304 - 317
  • [36] General Idempotency Languages Over Small Alphabets
    Leupold, Peter
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2016, 27 (03) : 343 - 357
  • [37] Bounds for covering codes over large alphabets
    Kéri, G
    Östergård, PRJ
    DESIGNS CODES AND CRYPTOGRAPHY, 2005, 37 (01) : 45 - 60
  • [38] Expansions in multiple bases over general alphabets
    V. Komornik
    J. Lu
    Y. Zou
    Acta Mathematica Hungarica, 2022, 166 : 481 - 506
  • [39] On Redundancy of Memoryless Sources Over Countable Alphabets
    Hosseini, Maryam
    Santhanam, Narayana
    2014 INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY AND ITS APPLICATIONS (ISITA), 2014, : 299 - 303
  • [40] Inverse semigroup shifts over countable alphabets
    Daniel Gonçalves
    Marcelo Sobottka
    Charles Starling
    Semigroup Forum, 2018, 96 : 203 - 240