# Compressed data structure

The term **compressed data structure** arises in the computer science subfields of algorithms, data structures, and theoretical computer science. It refers to a data structure whose operations are roughly as fast as those of a conventional data structure for the problem, but whose size can be substantially smaller. The size of the compressed data structure is typically highly dependent upon the information entropy of the data being represented.
Important examples of compressed data structures include the compressed suffix array^{[1]}^{[2]} and the FM-index,^{[3]}both of which can represent an arbitrary text of characters *T* for pattern matching. Given any input pattern *P*, they support the operation of finding if and where *P* appears in *T*. The search time is proportional to the sum of the length of pattern *P*, a very slow-growing function of the length of the text *T*, and the number of reported matches. The space they occupy is roughly equal to the size of the text *T* in entropy-compressed form, such as that obtained by Prediction by Partial Matching or gzip. Moreover, both data structures are self-indexing, in that they can reconstruct the text *T* in a random access manner, and thus the underlying text *T* can be discarded. In other words, they simultaneously provide a compressed and quickly searchable representation of the text *T*. They represent a substantial space improvement over the conventional suffix tree and suffix array, which occupy many times more space than the size of *T*. They also support searching for arbitrary patterns, as opposed to the inverted index, which can support only word-based searches. In addition, inverted indexes do not have the self-indexing feature.

An important related notion is that of a succinct data structure, which uses space roughly equal to the information-theoretic minimum, which is a worst-case notion of the space needed to represent the data. In contrast, the size of a compressed data structure depends upon the particular data being represented. When the data are compressible, as is often the case in practice for natural language text, the compressed data structure can occupy space very close to the information-theoretic minimum, and significantly less space than most compression schemes.^{[example needed]}^{[citation needed]}

## References

- ↑ Grossi, Roberto; Vitter, Jeffrey Scott (January 2005). "Compressed Suffix Arrays and Suffix Trees with Applications to Text Indexing and String Matching".
*SIAM Journal on Computing***35**(2): 378–407. doi:10.1137/S0097539702402354. http://www.ittc.ku.edu/~jsv/Papers/GrV05.text_indexing.pdf. - ↑ R. Grossi, A. Gupta, and J. S. Vitter, High-Order Entropy-Compressed Text Indexes,
*Proceedings of the 14th Annual SIAM/ACM Symposium on Discrete Algorithms*, January 2003, 841-850. - ↑ Ferragina, P.; Manzini, G. (2000). "Opportunistic data structures with applications".
*Proceedings 41st Annual Symposium on Foundations of Computer Science*. pp. 390–398. doi:10.1109/SFCS.2000.892127. ISBN 0-7695-0850-2.

Original source: https://en.wikipedia.org/wiki/Compressed data structure.
Read more |