Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Section 1 . Entropy You are playing an on - line card game that uses a deck of 1 0 0 cards containing: 3 Aces

Section 1. Entropy
You are playing an on-line card game that uses a deck of 100 cards containing:
3 Aces
7 Kings
25 Queens
31 Jacks
34 Tens
In each round of the game the cards are shuffled, you make a bet about what type of card will be drawn,
then a single card is drawn and the winners are paid off. The card is reinserted into the deck before the next
round begins.
1.1 How much information do you receive when told that a Queen has been drawn during the current round?
1.2 Give a numeric expression for the average information content received when learning about the
outcome of a round. The value of the numeric expression is 1.97.
1.3 Construct a variable-length Huffman encoding that minimizes the length of messages that report the
outcome of a sequence of rounds. The outcome of a single round is encoded as A (ace), K (king), Q (queen),
J (jack) or X (ten). Specify your encoding for each A, K, Q, J and X. Using your code, what is the expected
length of a message reporting the outcome of 1000 rounds (i.e., a message that contains 1000 symbols)?
1.4 Same question as the previous one but using Shannon-Fano instead of Huffman.
1.5 The Monaco Gaming Commission regularly received messages in which the outcome for each round is
encoded using the symbols A, K, Q, J and X. They discover that a large number of messages describing the
outcome of 1000 rounds (i.e. messages with 1000 symbols) can be compressed by the LZW algorithm into
files of size 43 bytes in total. They immediately issue an indictment for running a crooked game. Briefly
explain their reasoning.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago