answersLogoWhite

0


Best Answer

Given:

  • Length (L) = 10
  • Characters: 0, 1, therefore Count (n) = 2
  • 5 consecutive zeros or 5consecutiveones

I'll try to map out some logic for you. I'm sorry this took so many edits for me to get the correct answer. These problems can some times be a little tricky, and I just kept tripping up on the logic.:


First, calculate the maximum amount of possibilities, without any constants.

This step is optional, however it gives you a check on your final answer.

Length = 10

n = 2

Therefore, the maximum amount of possibilities without any constants is 2^10 = 1084. If you get a number higher than 1084, which in one of my edits I did, than your answer is obviously incorrect.


Case 1: Fiveconsecutivezeros

[0][0][0][0][0][?][?][?][?][?] ==> 2^5 possibilities (2 x 2 x 2 x 2 x 2)

[1][0][0][0][0][0][?][?][?][?] ==> 2^4 possibilities

[?][1][0][0][0][0][0][?][?][?] ==> 2^4 possibilities

[?][?][1][0][0][0][0][0][?][?] ==> 2^4 possibilities

[?][?][?][1][0][0][0][0][0][?] ==> 2^4 possibilities

[?][?][?][?][1][0][0][0][0][0] ==> 2^4 possibilities (1 possibility duplicated from case 2)


Case 2:

[1][1][1][1][1][?][?][?][?][?] ==> 2^5 possibilities (2 x 2 x 2 x 2 x 2)

[0][1][1][1][1][1][?][?][?][?] ==> 2^4 possibilities

[?][0][1][1][1][1][1][?][?][?] ==> 2^4 possibilities

[?][?][0][1][1][1][1][1][?][?] ==> 2^4 possibilities

[?][?][?][0][1][1][1][1][1][?] ==> 2^4 possibilities

[?][?][?][?][0][1][1][1][1][1] ==> 2^4 possibilities (1 possibility duplicated from case 1)


Special Cases (don't count these, they are counted twice in previous cases)

[0][0][0][0][0][1][1][1][1][1] ==> 1 possibility (counted in case 1)

[1][1][1][1][1][0][0][0][0][0] ==> 1 possibility (counted in case 2)

We need to subtract 2 from the final answer to account for this.


As you can see, the number of possibilities for each case are:

2^5 + 5(2^4) = 112


There are two cases, you can multiply that by 2 to get your answer.

2(2^5 + 4(2^4)) = 2(112) = 224 possibilities


Subtract the special cases:

224 possibilities - 2 possibilities = 222 possibilities


The answer to the question is:

There are 222 unique ten bit strings that contain five consecutive zeros or five consecutive ones.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many ten bit strings contain five consecutive zeros or five consecutive ones?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many bit strings of length 8 contain either three consecutive 0s or four consecutive 1s?

Five (5) have one or the other but not both. Six (6) have both. Total of eleven (11).


How much zeros in five lakhs?

Five zeros.


How many strings of five ASCII characters contain the character at least once?

the total 128 ^5 the strings without @ at all 127^5 to get the strings that has at least @ once 128^5 - 127^5


How many zeros does 2.5 million contain?

The number 2.5 million is written in figures as 2500000 - and therefore contains five zeroes.


How many zeros does 24 lacs have?

Five zeros.


How many zeros in five billion?

In English speaking countries there are 9 zeros in five billion. 5,000,000,000 In other countries there may be 12 zeros in five billion. 5,000,000,000,000


What are five consecutive strikes called?

Most people refer five consecutive strikes as a five bagger.


How many zeros are in five thousand crore?

Ten zeros.


How many zeros on 5.7 million?

Five zeros: 5,700,000


How many zeros are in 35 million?

Five of them.


How much zeros in 1 lac taka?

Five zeros


What are the seven consecutive composite numbers from one to hundred?

We're not sure exactly what the question is looking for, so I made upmy own, and it leads to a fascinating investigation. I hope this is actuallywhat the questioner has in mind.The question seems to be asking: "Find seven consecutive numbers that areall composite."I did a quick investigation, and found some neat stuff. I sure hope my method was valid.-- There actually is a string of seven composite numbers less than 100.They are: 90, 91, 92, 93, 94, 95, 96.-- There are seven strings of five consecutive composite numbers, all less than 100.-- The next series of seven consecutive composites doesn't occur until 360-366.But on the way there, there are five strings of 9 composites, two strings of 11 composites,and three strings of 13 composites.-- There are no series of an even number of consecutive composites, at leastnot up to 200,000 . Wonder why that is.-- The string of 19 consecutive numbers from 888 to 906 are all composite.-- Up to 200,000, the grand-daddy is the range from 155,922 to 156,006 ...a series of 85 consecutive integers that are all composite.