Abstract
We study the problem of indexing text with wildcard positions, motivated by the challenge of aligning sequencing data to large genomes that contain millions of single nucleotide polymorphisms (SNPs) —positions known to differ between individuals. SNPs modeled as wildcards can lead to more informed and biologically relevant alignments. We improve the space complexity of previous approaches by giving a succinct index requiring (2 + o(1))n logσ + O(n) + O(d logn) + O(k logk) bits for a text of length n over an alphabet of size σ containing d groups of k wildcards. The new index is particularly favourable for larger alphabets and comparable for smaller alphabets, such as DNA. A key to the space reduction is a result we give showing how any compressed suffix array can be supplemented with auxiliary data structures occupying \(O(n) + O(d \log \frac{n}{d})\) bits to also support efficient dictionary matching queries. We present a new query algorithm for our wildcard index that greatly reduces the query working space to O(d m + m logn) bits, where m is the length of the query. We note that compared to previous results this reduces the working space by two orders of magnitude when aligning short read data to the Human genome.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Belazzougui, D.: Succinct dictionary matching with no slowdown. In: Symposium on Combinatorial Pattern Matching, pp. 88–100 (2010)
Bose, P., He, M., Maheshwari, A., Morin, P.: Succinct orthogonal range search structures on a grid with applications to text indexing. Algorithms and Data Structures, 98–109 (2009)
Briggs, P., Torczon, L.: An efficient representation for sparse sets. ACM Lett. Program. Lang. Syst. 2, 59–69 (1993)
Cole, R., Gottlieb, L.A., Lewenstein, M.: Dictionary matching and indexing with errors and don’t cares. In: ACM Symposium on Theory of Computing, pp. 91–100 (2004)
Ferragina, P., Manzini, G.: Opportunistic data structures with applications. In: Symposium on Foundations of Computer Science, pp. 390–398 (2002)
Fischer, J., Makinen, V., Navarro, G.: Faster entropy-bounded compressed suffix trees. Theoretical Computer Science 410(51), 5354–5364 (2009)
Frazer, K., Ballinger, D., Cox, D., Hinds, D., Stuve, L., Gibbs, R., et al.: A second generation human haplotype map of over 3.1 million SNPs. Nature 449(7164), 851–861 (2007)
Grossi, R., Vitter, J.: Compressed suffix arrays and suffix trees with applications to text indexing and string matching. In: ACM Symposium on Theory of Computing, pp. 397–406 (2000)
Grossi, R., Gupta, A., Vitter, J.S.: High-order entropy-compressed text indexes. In: ACM-SIAM Symposium on Discrete Algorithms, pp. 841–850 (2003)
Hon, W., Ku, T., Shah, R., Thankachan, S., Vitter, J.: Faster Compressed Dictionary Matching. In: Symposium on String Processing and Information Retrieval, pp. 191–200 (2010)
Jacobson, G.: Succinct static data structures. Ph.D. thesis, Carnegie Mellon University (1989)
Knuth, D., Morris Jr., J., Pratt, V.: Fast pattern matching in strings. SIAM J. on Computing 6, 323 (1977)
Lam, T.W., Sung, W.K., Tam, S.L., Yiu, S.M.: Space efficient indexes for string matching with don’t cares. In: Conference on Algorithms and Computation, pp. 846–857 (2007)
Lam, T., Li, R., Tam, A., Wong, S., Wu, E., Yiu, S.: High throughput short read alignment via bi-directional BWT. In: IEEE Conference on Bioinformatics and Biomedicine, pp. 31–36 (2009)
Manber, U., Myers, G.: Suffix arrays: a new method for on-line string searches. In: ACM-SIAM Symposium on Discrete Algorithms, pp. 319–327 (1990)
Munro, J., Raman, V.: Succinct representation of balanced parentheses and static trees. SIAM J. on Computing 31(3), 762–776 (2002)
Navarro, G., Mäkinen, V.: Compressed full-text indexes. ACM Computing Surveys 39(1), 2 (2007)
Ohlebusch, E., Gog, S.: A compressed enhanced suffix array supporting fast string matching. In: Symposium on String Processing and Information Retrieval, pp. 51–62 (2009)
Ohlebusch, E., Gog, S., Kügel, A.: Computing matching statistics and maximal exact matches on compressed full-text indexes. In: Symposium on String Processing and Information Retrieval, pp. 347–358 (2010)
Raman, R., Raman, V., Rao, S.: Succinct indexable dictionaries with applications to encoding k-ary trees and multisets. In: ACM-SIAM Symposium on Discrete Algorithms, pp. 233–242 (2002)
Tam, A., Wu, E., Lam, T.W., Yiu, S.M.: Succinct text indexing with wildcards. In: Symposium on String Processing and Information Retrieval, pp. 39–50 (2009)
Weiner, P.: Linear pattern matching algorithms. In: Symposium on Switching and Automata Theory, pp. 1–11 (1973)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2011 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Thachuk, C. (2011). Succincter Text Indexing with Wildcards. In: Giancarlo, R., Manzini, G. (eds) Combinatorial Pattern Matching. CPM 2011. Lecture Notes in Computer Science, vol 6661. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-21458-5_5
Download citation
DOI: https://doi.org/10.1007/978-3-642-21458-5_5
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-21457-8
Online ISBN: 978-3-642-21458-5
eBook Packages: Computer ScienceComputer Science (R0)