Optimal Prefix Free Code in Linear Time

Abstract

We describe an algorithm computing an optimal prefix free code from N unsorted positive integer weights in time linear in the number of machine words holding those weights. This algorithm takes advantage of common non-algebraic instructions, and of specific results on optimal prefix free codes. This result improves over the state of the art complexities of O(N N) in the algebraic decision tree model and O(N N) in the RAM model for the computation of Huffman's codes, a landmark in compression and coding since 1952.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…