Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
433858 | Theoretical Computer Science | 2015 | 9 Pages |
We consider the problem of indexing a collection DD of D strings (documents) of total n characters from an alphabet set of size σ, such that whenever a pattern P (of p characters) and an integer τ∈[1,D]τ∈[1,D] come as a query, we can efficiently report all (i) maximal generic words and (ii) minimal discriminating words as defined below:•maximal generic word is a maximal extension of P occurring in at least τ documents.•minimal discriminating word is a minimal extension of P occurring in at most τ documents.These problems were introduced by Kucherov et al. (SPIRE) [8], they proposed indexes occupying O(nlogn)O(nlogn) bits with query times O(p+output)O(p+output) and O(p+loglogn+output)O(p+loglogn+output) for Problem (i) and Problem (ii) respectively. The query time for Problem (ii) is later improved to optimal O(p+output)O(p+output) by Gawrychowski et al. (SPIRE) [6]. In this paper, we describe succinct indexes of nlogσ+o(nlogσ)+O(n)nlogσ+o(nlogσ)+O(n) bits space with near-optimal query times i.e., O(p+loglogn+output)O(p+loglogn+output) for both these problems.