How many bits need to be sent for each train

Assignment Help Computer Engineering
Reference no: EM132145661

On the Swamp County Railroad system there are 6 types of train

P1 P2 F1 F2 F3 F4

They occur with the following probabilities

P1 0.10

P2 0.10

F1 0.20

F2 0.30

F3 0.15

F4 0.15

A trackside device transmits the type of train that passes.

(a) If a fixed-length code is used, how many bits need to be sent for each train?

(b) Given the probabilities above, devise a Huffman code and fill in the following table.

Symbol Code

P1

P2

F1

F2

F3

F4

(c) What is the AWCL of your answer to (b)?

(d) If 1000 trains pass, with the distribution shown, how many bits are saved by using the Huffman code instead of the fixed code from (a). Show your calculations.

Reference no: EM132145661

Questions Cloud

Create a table listing all tasks separately : Create a table listing all tasks separately, with their duration.Identify all dependent tasks, and indicate what predecessor tasks are required.
Represent the sentences by predicate calculus : Represent the sentences by predicate calculus Turn them into clause form Using resolution and unification to prove that Michael Phelps was joyful.
Why is it important to match the user interface to the task : Why is it important to match the user interface to the task? Explain. How does simplicity affect accuracy in good form design? Explain.
Discuss about the project plan : Discuss about the project plan (activities and scheduling).What are the new tools and strategies used in project plan or management??
How many bits need to be sent for each train : If a fixed-length code is used, how many bits need to be sent for each train? Given the probabilities above, devise a Huffman code and fill in the table.
Create the first part of a rock and paper and scissors game : Create the first part of a Rock, Paper, Scissors game. Tell the user what you are playing and then ask them to choose either rock, paper or scissors.
Grows at its sustainable growth rate : If the firm grows at its sustainable growth rate, how much debt will be issued next year? (Do not round intermediate calculations.)
Fundamental analysis and intrinsic value : Discuss the relationship between fundamental analysis and intrinsic value. Include real-world examples in your explanation.
Which syscall is a must for every program : When a syscall is called which register must have the syscall number? Which syscall is a must for every program? Why?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe quality management at the performer level

Evaluate and summarize overall quality management at the organization level. Evaluate and summarize quality management at the process level. Evaluate and describe quality management at the performer level.

  How many words are required for virtual memory

A system has a virtual memory space of 8 virtual pages for a process with 8 blocks per page and 4 words per block. The main memory consists of 4 page frames with 4 blocks per page and 8 words per block. How many words are required for virtual memo..

  List at least ten types of environmental impacts

In DFE help to improve the quality of a product, in terms of its functionality, reliability, and reparability?

  What will you tell your managers to convince them

How will you overcome their objections? Persuade your managers by overcoming their objections with compelling arguments.

  Write down a statement to create a view

Write down a satement to add a check constraint to the above defined table that guarantees that values entered in the inspection small date field are not older than today, meaning from now on. According to new requirements from your business analys..

  Write function that compares two words and prints all letter

Write a function that compares two words and prints all the letters that appear in both. Change the encode function so that spaces are simply skipped.

  Why is the object-oriented database model

Why is the object-oriented database model gaining acceptance for developing applications and managing  hypermedia databases at business websites.

  Include the declaration in a program

Write down a declaration to store the string "This is a sample" in an array named samtest. Include the declaration in a program that displays the values in samtest in a for loop that uses a pointer to access each element in the array.

  Define a class named taxreturn that contains a tax id number

Define a class named TaxReturn that contains a tax ID number, last name, first name, annual income, number of dependents, and amount of tax owed for a taxpayer.

  Why are java and javas gui are popular

The GUI offers all types of functionality in the graphical sense. Why are Java and Javas GUI are so popular? What are some applications that use a Java GUI.

  Compare the time for a query and response

Compare the time for a query and response for a complete DNS query and response (to all required nameservers) if M=1, M=2, and M=3.

  Calculate the balance and the other to determine the message

Your portion of the code requires you to create a class that will take into it the amount of money someone has earned for a month and their monthly expenses.

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