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

Half-normal plot, Half-normal plot is a  plot for diagnosing the model inad...

Half-normal plot is a  plot for diagnosing the model inadequacy or revealing the presence of outliers, in which the absolute values of, for instance, the residuals from the multipl

Analysis of variance, Thomas Economic Forecasting, Inc. and Harmon Economet...

Thomas Economic Forecasting, Inc. and Harmon Econometrics have the same mean error in forecasting the stock market over the last ten years. However, the standard deviation for Thom

Explain identification keys., Identification keys: The devices for identif...

Identification keys: The devices for identifying the samples from a set of known taxa, which contains a tree- structure where each node corresponds to the diagnostic question of t

Explain normal approximation, Normal approximation : Normal distributions w...

Normal approximation : Normal distributions which approximate other distributions; such as, a normal distribution with the mean np and variance np(1 - p) which acts as an approxima

Describe prior distribution, Prior distributions : The probability distribu...

Prior distributions : The probability distributions which summarize the information about a random variable or parameter known or supposed at a given time instant, prior to attaini

Expected monetary value, Ask quesoil company is considering whether or not ...

Ask quesoil company is considering whether or not to bid for an offshore drilling contract. If they bid, the value would be $600m with a 65% chance of gaining the contract. The com

Dirichlet process mixture models, The nonparametric Bayesian inference appr...

The nonparametric Bayesian inference approach to using the finite mixture distributions for modelling data suspected of the containing distinct groups of observations; this approac

Chebyshev''s inequality, Chebyshev's inequality: A statement about the pro...

Chebyshev's inequality: A statement about the proportion of the observations which fall within some number of the standard deviations of the mean for any of the probability distri

Effect sparsity, The term which is used in the industrial experimentation, ...

The term which is used in the industrial experimentation, where there is commonly a large set of candidate factors believed to have the possible significant influence on the respon

Define radical statistics group, Radical statistics group : The national ne...

Radical statistics group : The national network of the social scientists in United Kingdom committed to the critique of statistics as taken in use in the policy making procedure. T

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