An on-line card game uses a deck of 32 cards containing 4 Aces, 8 Kings, 16 Queens, 2 Jacks and 2 Tens. In each round of the game the cards are shuffled, the players make a bet about what type of card will be drawn, then a single card is drawn and the winners are paid off. The drawn card is reinserted into the deck before the next round begins.
i. How much information does a player receive when she is told that a King has been drawn? Which type of card yields the least information? ii. What is the average information content received when learning about the outcome of a round (aka the entropy)? Show your work.
iii. Use Huffman’s algorithm to create a variable-length prefix-free encoding that minimizes the expected length of messages reporting the outcome of a sequence of rounds (show the steps in building the tree). Specify your encoding for each of Ace, King, Queen, Jack and Ten. What is the expected length of a message reporting the outcome of 1000 rounds iv. One day there is a strange outage that causes the Queens to be omitted from the deck. Is the entropy reduced or increased? What is now the expected length of a message reporting the outcome of 1000 rounds (conditional on the omission of all Queens)?
An on-line card game uses a deck of 32 cards containing 4 Aces, 8 Kings, 16...
Problem 3 [25 pts (4(2,2),6,10,5)]: Information and Entropy An on-line card game uses a deck of 32 cards containing 4 Aces, 8 Kings, 16 Queens, 2 Jacks and 2 Tens. In each round of the game the cards are shuffled, the players make a bet about what type of card will be drawn, then a single card is drawn and the winners are paid off. The drawn card is reinserted into the deck before the next round begins i. How...
the game of the euchre uses just 9s,10s,jacks,queens,kings and aces from a standard deck of 52 cards. how many five-card euchre hands have all black cards. is the right answer 495 wayswhich i got by doing 12C5 x 40C0= 495 ways
2. Consider a standard 52 card deck of playing cards. In total there are four cards that are Aces, four cards that are Kings, four cards that are Queens and four cards that are Jacks. The remaining 36 cards are four each of the numbers 2, 310. That is there are four cards that are twos, four cards that are threes etc. For this question, suppose that we reduce the number of cards in the deck by removing one of...
1. (25 total points) Probability and card games; Recall that an ordinary decdk of playing cards has 52 cards of which 13 cards are from each of the four suits hearts, diamonds, spades, and clubs. Each suit contains the cards 2 to 10, ace, jack, queen, and king. (a) (10 points) Three cards are randomly selected, without replacement, from an or- dinary deck of 52 playing cards. Compute the conditional probability that the first card selected is a spade, given...
the card game Acey Deucey, which is also known by several other names. In general, the game is played with three or more people that continue to gamble for a pot of money. The pot grows and shrinks depending on how much General description of the game ● Two cards are dealt face up to a player from a shuffled deck of cards. ○ If the face of each card is the same then the player adds $1 into the...
Card Game Simulation(in Python 3.8.1) The purpose of this assignment is to help you gain experience using while loops to solve problems. For this assignment, you will simulate a simplified card game that has some similarity to the game of 21. At the start of the program, the user will be asked to supply both the winning score (an integer from 1 thru 21) and the number of times to run the simulation (an integer from 100 to 100,000). To...