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

Daycare, facts and statistics about daycare

facts and statistics about daycare

Quantile regression, Quantile regression is an extension of the classical ...

Quantile regression is an extension of the classical least squares from estimation of the conditional mean models to the estimation of the variety of models for many conditional q

Cube law, A law supposedly applicable to voting behaviour which has a histo...

A law supposedly applicable to voting behaviour which has a history of several decades. It may be stated thus: Consider a two-party system and suppose that the representatives of t

Spreading function and scattering function, 1)  Consider an antenna with a ...

1)  Consider an antenna with a pattern: G(θ,φ) = sinn(θ/θ0) cos(θ/θ0)   where θ0 = Π/1.5 (a) What is the 3-dB bandwidth? (b) What is the 10-dB beam width? (c) What is t

Descriptive statistics, how to describe association between quantitative an...

how to describe association between quantitative and categorical variables

Line-intersect sampling, Line-intersect sampling is a technique of unequal...

Line-intersect sampling is a technique of unequal probability sampling for selecting the sampling units in the geographical area. A sample of lines is drawn in a study area and, w

Hazard regression, Hazard regression is the procedure for modeling the haz...

Hazard regression is the procedure for modeling the hazard function which does not depend on the suppositions made in Cox's proportional hazards model, namely that the log-hazard

To create a relative frequency histogram, The total amount of protein produ...

The total amount of protein produced by a dairy cow can be estimated from periodic testing of her milk.  The following are the total annual protein production values (lb) for 28 tw

Mantel haenszel estimator, Mantel Haenszel  estimator is  an estimator o...

Mantel Haenszel  estimator is  an estimator of assumed common odds ratio in the series of two-by-two contingency tables arising from the different populations, for instance, occ

Environmental statistics, The procedures used for determining how the quali...

The procedures used for determining how the quality of life is affected by the environment, in particular by factors such as air and solid wastes, water pollution, hazardous substa

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