Skip to main navigation Skip to search Skip to main content

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

  • Antonio Fariña
  • , Travis Gagie
  • , Giovanni Manzini
  • , Gonzalo Navarro
  • , Alberto Ordóñez

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

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.

Original languageEnglish
Title of host publicationString Processing and Information Retrieval - 23rd International Symposium, SPIRE 2016, Proceedings
EditorsShunsuke Inenaga, Kunihiko Sadakane, Tetsuya Sakai
PublisherSpringer Verlag
Pages50-60
Number of pages11
ISBN (Print)9783319460482
DOIs
Publication statusPublished - 2016
Externally publishedYes
Event23rd International Symposium on String Processing and Information Retrieval, SPIRE 2016 - Beppu, Japan
Duration: 18 Oct 2016 → 20 Oct 2016

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume9954 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference23rd International Symposium on String Processing and Information Retrieval, SPIRE 2016
Country/TerritoryJapan
CityBeppu
Period18/10/16 → 20/10/16

Fingerprint

Dive into the research topics of 'Efficient and compact representations of some non-canonical prefix-free codes'. Together they form a unique fingerprint.

Cite this