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

  Why you think that the cio is this type of manager

Using the IT Savvy four types of the CIO (page 146 IT Savvy below), choose a type for each of CIO or IT leaders for the following 8 cases attached (Attachments 1-8).Give example of why you think that the CIO is this type of manager.

  Needs to be entered into a new database

Brian has a list of customers that needs to be entered into a new database. Before Brian can begin entering records into a database, he must first A. create a form to display the customer's information. B. enter information into an Excel spreadsh..

  Identify the degree and cardinalities of the relationship

A vendor builds multiple types of tablet computers. Each hs a type identification number and a name. The key specifications for each type include amount of storage and display type.

  Specific role an information system

What is a specific role an information system can play in an organization? What are three components of this system? How do they work in the enterprise?

  Give minimal dfa that performs as a mod

Give minimal DFA that performs as a mod-3 1's counter, i.e, outputs a 1 each time the number of 1's in the input sequence is a sequence is a multiple of 3.

  How does a network based idps differ from a host based idps

How does a network based IDPS differ from a host based IDPS?

  Determine the force developed in spring ab

The coefficient of static friction between the belt and the rim of the wheel is µ=0.2, and between the belt and peg Cµ'S=0.4 . The pulley at B is free to rotate

  Design a tick tac toe game

Design a Tick Tac Toe Game. You must use Arrays to represent the board You may use Pointers

  Project charter and project management plan

Project Charter and Project Management Plan

  Writing user requirements

Writing User Requirements

  Determine the smallest lever force p

Determine the smallest lever force P needed to prevent the wheel from rotating if it is subjected to a torque of M = 250 N .m The coefficient of static friction between the belt and the wheel is µs = 0.3.

  Prepare the interface which has single method decode

Prepare the interface MessageDecoder which has single method decode(String cipherText) where cipherText is the message to be decoded.

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