Question #83760

How many 8-bits sequences that start with the same two bits or their fourth and fifth bits are equal or end with the same two bits are there?

Expert's answer

Answer on Question #83760 – Math – Discrete Mathematics

Question

How many 8-bits sequences that start with the same two bits or their fourth and fifth bits are equal or end with the same two bits are there?

Solution

The total number of 8-bit sequences is 28=2562^8 = 256.

Denote N1N_{1} the number of sequences with the stated property. We have


N1=256N2N_{1} = 256 - N_{2}


where N2N_{2} is the number of 8-bit sequences with all different pairs: 1st1^{\text{st}} and 2nd2^{\text{nd}} different bits, and 4th4^{\text{th}} and 5th5^{\text{th}} different bits, and 7th7^{\text{th}} and 8th8^{\text{th}} different bits.

Calculate N2N_{2}.

There are 2 ways to choose the 1st1^{\text{st}} bit, after that the 2nd2^{\text{nd}} bit is defined automatically – it is opposite to the 1st1^{\text{st}}. There are 2 ways to choose the 3rd3^{\text{rd}} bit, 2 ways to choose the 4th4^{\text{th}} bit – 5th5^{\text{th}} is defined automatically, 2 ways to choose the 6th6^{\text{th}} bit, 2 ways to choose the 7th7^{\text{th}} bit – 8th8^{\text{th}} is defined automatically.

So totally there are 22222=322 \cdot 2 \cdot 2 \cdot 2 \cdot 2 = 32 ways, N2=32N_{2} = 32.

Then N1=256N2=224N_{1} = 256 - N_{2} = 224.

Answer: 224.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS