What is the percentage of compression you achieve above

Assignment Help Basic Computer Science
Reference no: EM131049120

Suppose a file contains the letters a, b, c, and d. Nominally, we require 2 bits per letter to store such a file.

(a) Assume the letter a occurs 50% of the time, b occurs 30% of the time, and c and d each occur 10% of the time. Give an encoding of each letter as a bit string that provides optimal compression. Hint: Use a single bit for a.

(b) What is the percentage of compression you achieve above? (This is the average of the compression percentages achieved for each letter, weighted by the letter's frequency.)

(c) Repeat this, assuming a and b each occur 40% of the time, c occurs 15% of the time, and d occurs 5% of the time.

Reference no: EM131049120

Questions Cloud

Characteristic of monopolistic competition : What is the most important characteristic of monopolistic competition? How do firms behave differently from perfect competitors? What are the implications of having a large number of firms in a monopolistically competitive market?
What equal payments be : Mr. Bill S. Preston Esq. purchased a new house for $160,000. He paid $15,000 down and agreed to pay the rest over the next 10 years in 10 equal end of year payments plus 5 percent compound interest on the unpaid balance. What equal payments be?
Components of consumption spending : According to the Keynesian model, what are the two components of consumption spending? What factors determine how consumption changes when real disposable income changes? Explain.
Spot exchange rate-comparison to the dollar : Assume the spot exchange rate is 6.22 Chinese yuan per U.S. dollar. If the inflation rate in China is expected to be double that in the U.S. for the next two years, then what will happen to the yuan in comparison to the dollar?
What is the percentage of compression you achieve above : What is the percentage of compression you achieve above? (This is the average of the compression percentages achieved for each letter, weighted by the letter's frequency.)
Organized manner and cite specific examples : How did they achieve their goals? How did their efforts affect life today? Present your response in a clear, organized manner and cite specific examples.
Compounding periods can greatly affect amount of interest : The number of compounding periods can greatly affect the amount of interest (as a percent or in real value) paid when considering loans. The compounding frequency can also affect investments through which we earn interest. How is this? Also, how do w..
Production possibility frontier : Which of the following statements about productive efficiency is true? X It means that an economy is producing at a point on its production possibility frontier.
Instead of making the monthly payment : You decide to take a 30-year mortgage of $ 170,000 offered by Oppenheimer Bank. Instead of making the monthly payment of $ 1,080.08 every month, you can make half the payment every two weeks (so that you will make 52 2 = 26 payments a year). How long..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identify and describe specific capabilities of computing

Identify and describe 5 specific capabilities of computing (e.g., speed, permanence/storage) made possible or enhanced by computing technology.

  Importance in technological innovation in firm

What is technology diffusion and discuss its importance in technological innovation in a given firm?

  Standardize programming between many processor platforms

Do you think the java virtual machine is a good way to standardize programming between many processor platforms? Explain your view with details.

  What are four of the most commonly used methods

What are four of the most commonly used methods or tools for creating multiple users or groups in Active Directory?

  The microprocessor used on the raspberry pi is a soc

The microprocessor used on the Raspberry Pi is a SoC (system on a chip). Find a data sheet for the SoC and indicate the processor speed, DC voltage requirements, and the amount of memory.What is the difference between a microcontroller and a SoC?

  Give cfg for the following language

Give CFG for the language L={x %u03F5 {0,1}*/x has unequal number of 0's and 1's}

  Change the number of parameters an operator takes

"You cannot change the number of parameters an operator takes." What does this really mean and what are implications of this when you use polymorphism in your programs? Try to provide specific examples and 600 words.

  Compare time complexity-convolution using direct convolution

Compare time complexity of convolution with n x n kernel when using: direct convolution with 2-D mask, and separable kernel.

  Find the average case complexity of sequential search

Find the average case complexity of sequential search in an array if the probability of accessing the last cell equals 1/2, the probability of the next to the last cell equals 1/4 .

  Force p that will cause impending motion

The coefficient of static friction between the crate and the ground is µs = 0.2, and between the wheel and the ground µ's = 0.5.

  Create advantages and efficiencies for an enterprise

Discuss how server virtualization, architecture, and Hyper-V can create advantages and efficiencies for an enterprise, including considerations for how to decide what an enterprise should factor in when calculating Return on Investment (ROI) befor..

  Creating a new course registration system

Suppose that your university were interested in creating a new course registration system that could support Web-based registration.

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