Published January 1, 2014
| Version v1
Conference paper
Open
Shortest Unique Substring Query Revisited
- 1. Bilkent Univ, Dept Comp Engn, Bilkent, Turkey
- 2. TUBITAK, Natl Res Inst Elect & Cryptol, Ankara, Turkey
- 3. Eastern Washington Univ, Dept Comp Sci, Cheney, WA 99004 USA
Description
We revisit the problem of finding shortest unique substring (SUS) proposed recently by Pei et al. (ICDE'13). We propose an optimal O(n) time and space algorithm that can find an SUS for every location of a string of size n and thus significantly improve their O(n(2)) time complexity. Our method also supports finding all the SUSes covering every location, whereas theirs can find only one SUS for every location. Further, our solution is simpler and easier to implement and can also be more space efficient in practice, since we only use the inverse suffix array and the longest common prefix array of the string, while their algorithm uses the suffix tree of the string and other auxiliary data structures. Our theoretical results are validated by an empirical study that shows our method is much faster and more space-saving.
Files
bib-e2c8730d-9a40-4c79-a8e4-bb77dc18de6f.txt
Files
(123 Bytes)
| Name | Size | Download all |
|---|---|---|
|
md5:8e8c0ca5c25f4f7eb181cfd6428cebb6
|
123 Bytes | Preview Download |