Optimal Prefix Free Codes With Partial Sorting

preprint2016arXivOpen access

Abstract

We describe an algorithm computing an optimal prefix free code for nn unsorted positive weights in time within O(n(1+lg⁡α))⊆O(nlg⁡n)O(n(1+\lg α))\subseteq O(n\lg n), where the alternation α∈[1..n−1]α\in[1..n-1] measures the amount of sorting required by the computation. This asymptotical complexity is within a constant factor of the optimal in the algebraic decision tree computational model, in the worst case over all instances of size nn and alternation αα. Such results refine the state of the art complexity of Θ(nlg⁡n)Θ(n\lg n) in the worst case over instances of size nn in the same computational model, a landmark in compression and coding since 1952, by the mere combination of van Leeuwen's algorithm to compute optimal prefix free codes from sorted weights (known since 1976), with Deferred Data Structures to partially sort a multiset depending on the queries on it (known since 1988).

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.