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
labwork [276]
3 years ago
8

How many bit strings of length 10 do not contain the substring 00? In other words, how many strings of length 10, consisting onl

y of 1 and 0, in which there are no two consecutive zeros?
(In response, write down only the number without spaces.)
Mathematics
1 answer:
vova2212 [387]3 years ago
5 0

Answer:

  144

Step-by-step explanation:

For a bitstring of length n, there are Fibonacci(n+2) strings containing no two consecutive zeros. This can be seen by constructing the strings starting with n=1.

1-bit strings: 1, 0 -- 2 strings not containing consecutive 0s

2-bit strings: 11, 10, 01 -- 3 strings not containing consecutive 0s

Note that we have added 1 to all the 1-bit strings, and added 0 only to the string ending in 1.

3-bit strings: 111, 110, 101, 011, 010 -- 5 strings not containing consecutive 0s

Note that these 5 strings consist of all (3) of the 2-bit strings with 1 appended, and all (1) of the 2-bit strings ending in 1 with 0 appended. The number that now end in 0 is the number previously ending in 1.

__

If (x, y) represents the numbers of n-bit strings ending in (0, 1), then the number of (n+1)-bit strings ending in (0, 1) is (y, x+y). That is, the recursive relation is ...

  (x_1,y_1)=(1,1)\\(x_n,y_n)=(y_{n-1},\,x_{n-1}+y_{n-1})\\b_n=x_n+y_n\quad\text{number of n-bit strings without consecutive 0s}

For n=1 to n=10, these pairs are ...

  (1, 1), (1, 2), (2, 3), (3, 5), (5, 8), (8, 13), (13, 21), (21, 34), (34, 55), (55, 89)

The sequence of b[n] values is ...

  2, 3, 5, 8, 13, 21, 34, 55, 89, 144

which are the n=3 to n=12 numbers from the Fibonacci sequence.

That is, there will be Fibonacci(12) = 144 10-bit strings with no consecutive 0s.

You might be interested in
Solve x − 2y = 3 for x
sammy [17]

Answer:

x=2y+3

Step-by-step explanation:

x − 2y = 3

x=2y+3

3 0
3 years ago
How to solve for x in rx-sx=p
Mila [183]

Answer:

  x = p/(r-s)

Step-by-step explanation:

Collect terms and divide by the coefficient of x.

rx-sx=p\\\\x(r-s)=p\\\\x=\dfrac{p}{r-s}

8 0
3 years ago
Elaine and Rocco shared a bag of popcorn Rocco are 5/8 of the bag Elanie ate 1 3/8.how much popcorn did Elanie and Rocco eat in
amid [387]
2 bags, because when you add 5/8 and 1 3/8 you get 1 8/8 which is really 2
7 0
4 years ago
Last week, Janet used 4 cups of flour to make pizza dough. This week, she uses 3/8 the amount of flour as last week. Which state
zloy xaker [14]
The answer is D......

8 0
3 years ago
Read 2 more answers
What is the sum of twice a number and 6 is 3 written as a algebraic expression
adoni [48]
2x + 6 = 3 is the equation
4 0
3 years ago
Read 2 more answers
Other questions:
  • Please help as soon as possible
    13·1 answer
  • A local grocery store sells a variety of bagels fresh every morning. The mean weight of these bagels is 3 oz with a standard dev
    13·1 answer
  • 1/2πr2h=1/2x3.14x302x110=?
    15·1 answer
  • 1. The three salespeople for a local advertising firm are Sara, Kenny, and Leila. Sara sold $3350 in ads, Kenny sold $1368, and
    8·2 answers
  • An article that is marked $500 was sold for $450 after a discount is given. Calculate the percentage discount given
    5·1 answer
  • Hello! Can you please help me with this? I will give the first correct answer brainliest if you help + 5 stars and a like and a
    6·1 answer
  • I need help on this asapppp
    14·1 answer
  • ILL GIVE U BRAINLISTTT!!!!!
    13·2 answers
  • Can someone help me answer this
    12·2 answers
  • One of the biggest dangers of storms that produce heavy rains or storm surges is ___.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!