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

Rui Baldwin 2021-04-06 Answered
Assign a binary code in some orderly manner to the 52 playingcards. Use the minimum number of bits.
You can still ask an expert for help

Expert Community at Your Service

• Live experts 24/7
• Questions are typically answered in as fast as 30 minutes
• Personalized clear answers

Solve your problem for the price of one coffee

• Available 24/7
• Math expert for every subject
• Pay only if we can solve it

## Expert Answer

Nathaniel Kramer
Answered 2021-04-08 Author has 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.
###### Not exactly what you’re looking for?
Jeffrey Jordon
Answered 2021-10-01 Author has 2047 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 (${2}^{5}<{5}^{2}<{2}^{6}$).

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.

###### Not exactly what you’re looking for?
Jeffrey Jordon
Answered 2021-10-01 Author has 2047 answers

${2}^{x}=52$

$x\sim 5.7$
x=6
i.e 6 bits are required.

###### Not exactly what you’re looking for?

Expert Community at Your Service

• Live experts 24/7
• Questions are typically answered in as fast as 30 minutes
• Personalized clear answers

Solve your problem for the price of one coffee

• Available 24/7
• Math expert for every subject
• Pay only if we can solve it