TY - GEN
T1 - On demand string sorting over unbounded alphabets
AU - Kent, Carmel
AU - Lewenstein, Moshe
AU - Sheinwald, Dafna
PY - 2007
Y1 - 2007
N2 - On-demand string sorting is the problem of preprocessing a set of n strings to allow subsequent queries of finding the k < n lexicographically smallest strings (and afterwards 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, and answers 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.
AB - On-demand string sorting is the problem of preprocessing a set of n strings to allow subsequent queries of finding the k < n lexicographically smallest strings (and afterwards 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, and answers 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.
UR - http://www.scopus.com/inward/record.url?scp=37849025609&partnerID=8YFLogxK
U2 - 10.1007/978-3-540-73437-6_5
DO - 10.1007/978-3-540-73437-6_5
M3 - Conference contribution
AN - SCOPUS:37849025609
SN - 9783540734369
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 16
EP - 27
BT - Combinatorial Pattern Matching - 18th Annual Symposium, CPM 2007, Proceedings
PB - Springer Verlag
T2 - 18th Annual Symposium on Combinatorial Pattern Matching, CPM 2007
Y2 - 9 July 2007 through 11 July 2007
ER -