Efficient and compact representations of some non-canonical prefix-free codes

4Citations
Citations of this article
2Readers
Mendeley users who have this article in their library.
Get full text

Abstract

For many kinds of prefix-free codes there are efficient and compact alternatives to the traditional tree-based representation. Since these put the codes into canonical form, however, they can only be used when we can choose the order in which codewords are assigned to characters. In this paper we first show how, given a probability distribution over an alphabet of σ characters, we can store a nearly optimal alphabetic prefix-free code in o(σ) bits such that we can encode and decode any character in constant time. We then consider a kind of code introduced recently to reduce the space usage of wavelet matrices (Claude, Navarro, and Ordóñez, Information Systems, 2015). They showed how to build an optimal prefix-free code such that the codewords’ lengths are non-decreasing when they are arranged such that their reverses are in lexicographic order. We show how to store such a code in O(σ log L + 2εL) bits, where L is the maximum codeword length and ε is any positive constant, such that we can encode and decode any character in constant time under reasonable assumptions. Otherwise, we can always encode and decode a codeword of ℓ bits in time O(ℓ) using O(σ log L) bits of space.

Cite

CITATION STYLE

APA

Fariña, A., Gagie, T., Manzini, G., Navarro, G., & Ordóñez, A. (2016). Efficient and compact representations of some non-canonical prefix-free codes. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9954 LNCS, pp. 50–60). Springer Verlag. https://doi.org/10.1007/978-3-319-46049-9_5

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free