Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Interval Coding

1. For the ensemble X with alphabet A = { 1, 2, 3} and probabilities p = ( 1=4, 1=3, 5=12 )

(a) Evaluate the cumulative distribution function F(a) = P(x ≤ a) for a ∈ A and give the values of F(1), F(2), and F(3)

(b) Evaluate the binary intervals for [F(0), F(1))2, [F(1), F(2))2, and [F(2), F(3))2 (where F(0) = 0). Use the repeating notation (e.g., 0:101) where necessary.

(c) Construct the Shannon-Fano-Elias code for X, code the input sequence x = 3 3 1 1 2, and decode the sequence 011001110.

(d) Evaluate the expected length L(C,X) for the code just constructed.

(e) Is the code you just constructed an optimal code in terms of expected length? Explain why or why not?

Arithmetic Coding

1. Consider the Dirichlet multinomial model with m = (3, 3, 3) for the alphabet A = {a, b, c}. Evaluate the following probabilities under this model:

(a) P(x = b)
(b) P(x = a|baa)
(c) P(x = b|ac)
(d) P(x = c|s) where s is a sequence consisting of 100 as and 200 bs and no cs.

2. Using an arithmetic coder with the above Dirichlet multinomial model:

(a) Code the sequence cba.
(b) Decode the rst three symbols of the input sequence 11111 : : : of all 1s. Be sure to show the intervals and probabilities at each step.

3. Without doing a new coding, describe how the arithmetic code for cba would be di erent from the previous one if a Dirichlet multinomial model with m = (1, 100, 1) was used. Explain what sort of input sequences would be given the longest arithmetic codes under this new model?

Lempel-Ziv Coding

1. Use the LZ78 algorithm to code the sequence aaabababaaaa. Show the steps you used to build the code.

2. What kind of sequences from the alphabet A = {a, b}:
(a) Result in the longest possible LZ77 codes, assuming a window size of W = 2?
Give an example.
(b) Result in the longest possible LZ78 codes? Give an example and show the resulting tree.

Noisy-Channel Coding

1. Consider a channel with inputs X = fa, b, cg, outputs Y = fa, cg, and transition matrix

150_Noisy-Channel Coding.png

(a) Assuming a uniform distribution over input symbols, what is the mutual information I(X, Y ) between the input and output of the channel? What is the average probability of error?

(b) Assuming a distribution p = (0:5, 0, 0:5) over input symbols, what is the mutual information and average probability of error?

(c) Using the previous answer, give a non-zero lower bound for the capacity of this channel?

(d) Design a simple code for this channel that achieves a maximal probability of error less than 0:05.

2. Let Q be a channel with four inputs and outputs, each expressed as a 2-bit symbol.

That is, X = Y = { 00, 01, 10, 11}. Each time this channel is used, exactly one of the two input bits is flipped and the other are transmitted unchanged. Both bits are equally likely to be the one that is
ipped.

(a) Write out the transition matrix for this channel

(b) Evaluate the capacity of this channel.

(c) Design a block code with zero error for this channel with the highest possible rate.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9717213

Have any Question?


Related Questions in Computer Engineering

Assembly programs use 32 bits to address memory and can

Assembly programs use 32 bits to address memory and can access up to 4gb of memory. If an assembly code for a system uses 16 bits to address memory, how many bytes of memory can the program access? Is it as simple as 2^1 ...

Suppose you want to represent graphs where the number of

Suppose you want to represent graphs where the number of nodes is unknown in advance, and the nodes IDs are arbitrary (not contiguous). You want the following operations to be performed efficiently: Add a node. Remove a ...

A grocery store rewards card has a 7 digit number to

A grocery store rewards card has a 7 digit number to identify the user. The first digit must be 1 or 2. The remaining six digits take values randomly between 0 - 9 inclusively. What is the probability that the ID number ...

Recall that one of the ways to randomize an algorithm that

Recall that one of the ways to randomize an algorithm that operates on an array is to "shuffle" the array -- i.e., randomly permute it. Give an algorithm that randomly permutes an input array A. What is the run-time of y ...

Your university is running a special offer on tuition this

Your university is running a special offer on tuition. This year's tuition cost is $18,000. Next year's tuition cost is scheduled to be $19080. The university offers to discount next year's tuition at a rate of 6% If you ...

Suppose that on your birthday you checked the balance on

Suppose that on your birthday you checked the balance on your retirement account and you decided to make a $1,000 payment at the end of every month until you retire at the specified age. If you disreagard the inflation ( ...

Suppose you are given an undirected graph g with weighted

Suppose you are given an undirected graph G with weighted edges and a minimum spanning tree T of G. • Design an algorithm to update the minimum spanning tree when the weight of a single edge e is increased. • Design an a ...

Consider the car-caravan analogy from section 4 in chapter

Consider the car-caravan analogy from Section 4 in Chapter 1.  In this problem, assume a propagation speed of 120 km/hr and that each toll booth takes 8 seconds to service a car. a) Suppose the caravan of 10 cars begins ...

Question multiple users access a specific computer on the

Question: Multiple users access a specific computer on the network in ABC Inc. The users use the computer to access a remote FTP server. The computer runs the Windows Server OS. The network administrator wants user-speci ...

Question 1 assume that you are the project manager for an

Question: 1) Assume that you are the project manager for an upcoming new information systems project designed to replace your organization's old inventory management system. The server and database will also be upgraded. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As