Optimal Prefix Free Code: word-RAM Linear and Algebraic Instance Optimal

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Preliminary draft

Scientific paper

We describe a new technique to compute an optimal prefix-free code over $\alphabetSize$ symbols from their frequencies $\{\frequency_1,..,\frequency_\alphabetSize\}$. This technique yields an algorithm running in linear time in the $\Omega(\lg \alphabetSize)$-word RAM model when each frequency holds into $\Oh(1)$ words, hence improving on the $\Oh(\alphabetSize\lg\lg\alphabetSize)$ solution based on sorting in the word RAM model. In a more restricted model, this yields also an algorithm performing $\Oh(\alphabetSize(1{+}\entropy(\alphabetSize_1,...,\alphabetSize_\nbCodeLengths))) \subset\Oh(\alphabetSize(1{+}\lg\nbCodeLengths)) \subset\Oh(\alphabetSize\lg\alphabetSize)$ algebraic operations, where $\nbCodeLengths$ is the number of distinct code lengths optimally assigned, $\alphabetSize_i$ is the number of frequencies assigned to the $i$-th code length, and $\entropy(\alphabetSize_1,..,\alphabetSize_\nbCodeLengths)=\alphabetSize\lg \alphabetSize-\sum\alphabetSize_i\lg\alphabetSize_i$ is the entropy of $(\alphabetSize_1,...,\alphabetSize_\nbCodeLengths)$. The first complexity is optimal in the word-RAM model, while the latter complexity is instance optimal over all input order oblivious algorithms in the algebraic decision tree model, and improves over both the traditional $O(\alphabetSize\lg\alphabetSize)$ algorithm from Huffman and the $O(\alphabetSize\nbCodeLengths)$ adaptive algorithm from Belal and Elmasry.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Optimal Prefix Free Code: word-RAM Linear and Algebraic Instance Optimal does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Optimal Prefix Free Code: word-RAM Linear and Algebraic Instance Optimal, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Optimal Prefix Free Code: word-RAM Linear and Algebraic Instance Optimal will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-313393

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.