1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alexus [3.1K]
3 years ago
8

How many bitstrings of length 10 contain three consecutive 0’s or 4 consecutive 1’s? How many bitstrings of length 10 contain tw

o sets of 3 consecutive 0’s or two sets of 3 consecutive 1’s?
Mathematics
1 answer:
Yuki888 [10]3 years ago
7 0

Answer:

147 bitstrings.

Step-by-step explanation:

To start with, we will compute the number of bit strings that has 3 consecutive 0's.

For each of the consecutive 0's, they can start at either 1st, 2nd, 3rd or 4th positions (because there are eight positions)

If we begin from the 1st position, there will be strings in the form of 000xxxxx

The other positions can be anything, count= 25 =32.

If we begin from the 2nd position, there will be strings in the form of 1000xxxx.

Note that the 1st position must contain 1, otherwise there will be more than one count strings.

The remaining 4 positions can be anything, count= 24 = 16.

If we begin from the 3rd position, there will be strings in the form of x1000xxx.

Note that the 2nd position must contain 1, or there will be more than one count strings as in the first scenario.

The remaining 4 positions can be anything, count= 24=16.

If we begin from the 4th, 5th, or 6th position, it would be the same analysis.

Therefore,

total count= 32 + 16 + 16 + 16 + 16 +16 = 112.

From the analysis done so far, we have double counted these 5 strings: 00010000, 00010001, 00001000, 00011000, 10001000

So, the actual strings that contain 3 consecutive 0's is 112-5 = 107.

If we also calculate the number of strings with 4 consecutive 1's, we will have: 16 + 8 + 8 + 8 + 8 = 48.

Therefore, there are 8 strings that we have double counted and they are: 11110000, 11110001, 11111000, 01111000, 00011110, 00011111, 00001111, 10001111.

So, for our final answer, the total number of bit strings of length 8 that contain either three consecutive 0's or four consecutive 1's is 107 + 48 - 8= 147.

You might be interested in
how many different shapes can you make with the 4 triangles cut from this rectangle? how do you know?
Dima020 [189]
Where is the rectangle, I will help you when you show me the rectangle because I need the rectangle
8 0
3 years ago
Which equation has a slope of 3 and a y intercept of 4?
snow_tiger [21]
y = mx + n

m: slope
n: y-intercept
7 0
4 years ago
Read 2 more answers
What is the simplified form of the equation fraction 4 over 5 n minus fraction 1 over 5 equals fraction 2 over 5 n?
Gennadij [26K]
4/5n – 1/5 = 2/5n
Add 1/5 to both sides
4/5n = 2/5n + 1/5
Subtract 2/5n from both sides
2/5n = 1/5
Divide both sides by 2/5

n = 1/2

6 0
3 years ago
Read 2 more answers
Solve and write multiplication equations<br><br>72=0.6r
Juliette [100K]
The answer is 120 instead of 12 because 12 equals 7.2
6 0
3 years ago
Read 2 more answers
Please help!!!! I really need it :((
Julli [10]
6 and 3/7 , use can always use a online fraction calculator
7 0
3 years ago
Other questions:
  • (hw#41 q#10) help asap
    9·1 answer
  • After each charging, a battery is able to hold only 97% of the charge from the previous charging. The battery was used for 18 ho
    6·1 answer
  • What is the square root of 2985
    10·2 answers
  • What is 6^2 x 6^0 what is the expression
    14·1 answer
  • Find 3 ratios equivalent to 4:3
    10·1 answer
  • 1/3(15y-6)<br><br> I need help plz!!!
    9·1 answer
  • The length of the side of a square is 8 V12 in. What is the area of the square? es A) 16 V12 in? B) 64 V12 in? C) 384 in2 D) 768
    6·1 answer
  • I need someone to do this pls! Will give brainiest!
    6·1 answer
  • –41 – y = −17 linear equations by elimination ​
    7·2 answers
  • What is the length of PR?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!