Algorithmica, volume 55, issue 1, pages 29-41
A Fast Algorithm for Adaptive Prefix Coding
MAREK KARPINSKI
1
,
YAKOV NEKRICH
1
Publication type: Journal Article
Publication date: 2007-12-14
Journal:
Algorithmica
scimago Q1
SJR: 0.905
CiteScore: 2.8
Impact factor: 0.9
ISSN: 01784617, 14320541
Computer Science Applications
Applied Mathematics
General Computer Science
Abstract
In this paper we present a new algorithm for adaptive prefix coding. Our algorithm encodes a text S of m symbols in O(m) time, i.e., in O(1) amortized time per symbol. The length of the encoded string is bounded above by (H+1)m+O(nlog 2 m) bits where n is the alphabet size and H is the entropy. This is the first algorithm that adaptively encodes a text in O(m) time and achieves an almost optimal bound on the encoding length in the worst case. Besides that, our algorithm does not depend on an explicit code tree traversal.
Found
Are you a researcher?
Create a profile to get free access to personal recommendations for colleagues and new articles.