Assign a binary code in some orderly manner to the 52 playingcards. Use the minimum number of bits.

Rui Baldwin

Rui Baldwin

Answered question

2021-04-06

Assign a binary code in some orderly manner to the 52 playingcards. Use the minimum number of bits.

Answer & Explanation

Nathaniel Kramer

Nathaniel Kramer

Skilled2021-04-08Added 78 answers

Assign a binary code in some orderly manner to the 52 playingcards. Use the minimum number of bits.
The minimum number of bits required is 6.So.assign eachsix bit binary code word to each card.
Jeffrey Jordon

Jeffrey Jordon

Expert2021-10-01Added 2605 answers

By Using minimum number of bits assign a binary code in some orderly manner to the 52 playing cards.

In a deck of 52 cards, we have 13 diamonds, 13 hearts, 13 clubs and 13 spades.

To represent a deck of 52 cards, we need 6 bits (25<52<26).

Here only 52 out of 64 patterns are used.

Let the most significant bits select the suit of card, where 00 represents diamond, 01 represents hearts, 10 represents clubs, and 11 represents spades.

The remaining 4 bits selects the number of the cards (ace to 10), where 1011(11) represents jack, 1100(12) represents queen and 1101(13) represents king.

For example, 00_ 1011  represents a Jack of diamond.

Jeffrey Jordon

Jeffrey Jordon

Expert2021-10-01Added 2605 answers

2x=52

x5.7
x=6
i.e 6 bits are required.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?