Huffman coding based compression, Advanced Statistics

Assignment Help:

Huffman code is used to compress data file, where the data is represented as a sequence of characters. Huffman's greedy algorithm uses a table giving how often each character occurs; it then uses this table to build up an optimal way of representing each character as a binary string. We call the binary string the codeword for that character. A property of Huffman code is that it is a prefix code, i.e., in Huffman coding, no codeword is a prefix of some other codeword. The advantage of prefix code is that it makes decoding easier, as we do not need to use delimiter between two successive codewords. Given the frequency of each of the character, we can devise a greedy algorithm for finding the optimal Huffman codeword of each of the characters. For details of the greedy algorithm,

In this assignment, we will build a compression library that compress text les using Huffman coding scheme. This library will have two programs: compress, and decompress; compress accepts a text file and produces a compressed representation of that text file; decompress accepts a file that was compressed with the compress program, and recovers the original file.


Related Discussions:- Huffman coding based compression

Epidemic, The rapid development or growth of the disease in a community or ...

The rapid development or growth of the disease in a community or region. Statistical thinking has made very much significant contributions to the understanding of such type of phen

Mortality odds ratio, Mortality odds ratio  is the ratio equivalent to the ...

Mortality odds ratio  is the ratio equivalent to the odds ratio used in case-control studies where the equivalent of the cases are deaths from the cause of interest and the equival

Two-phase sampling, Two-phase sampling is the sampling scheme including tw...

Two-phase sampling is the sampling scheme including two distinct phases, in the first of which the information about the particular variables of interest is collected on all the m

Fuzzy set theory, A radically different approach of dealing with the uncert...

A radically different approach of dealing with the uncertainty than the traditional probabilistic and the statistical methods. The necessary feature of the fuzzy set is a membershi

Describe item-total correlation, Item-total correlation is an  extensively...

Item-total correlation is an  extensively used method for checking the homogeneity of the scale made up of number of items. It is simply the Pearson's product moment correlation c

Rates of return, An investor with a stock portfolio sued his broker, claimi...

An investor with a stock portfolio sued his broker, claiming that a lack of diversification in his portfolio had led to poor performance. The data, shown below, are the rates of re

Particlefilters, Particlefilters is a simulation method for tracking movin...

Particlefilters is a simulation method for tracking moving target distributions and for reducing computational burden of the dynamic Bayesian analysis. The method uses a Markov ch

Case series, Case series : It is the series of reports on the condition of ...

Case series : It is the series of reports on the condition of the individual patients made by treating physician. Such reports might be helpful and informative for the rare disease

Explain lattice distribution, Lattice distribution : A class of probability...

Lattice distribution : A class of probability distributions to which most of the distributions for discrete random variables used in statistics belongs. In such type of distributio

Treatment allocation ratio, Treatment allocation ratio is the ratio of the...

Treatment allocation ratio is the ratio of the number of subjects allocated to the two treatments in a clinical trial. The equal allocation is most usual in practice, but it might

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd