subject
Mathematics, 26.10.2021 04:50 med69

Consider the set of binary strings (i. e. made of zeros and one's) that do not contain the substring 11 (i. e. 1 is never followed by another 1 in the string). Suppose that T(n) is the number of such strings with length n. A string of length n has one of two forms. It might start with a 0, in which case the rest of the string can be anything that doesn't contain 11. Or it might start with a 1, in which case the next character must be a 0, and the remaining n-2 characters can be any string that doesn't contain 11. So we can set up the following recursive definition for T(n): T(1) 2 T(2)3 T(n) = T(n-1 ) + T(n-2) Now, consider the set of strings whose characters are a, b, and c which never contain the sequences bb or bc. For example, aba and cab are in the set, but abb and cbc are not. If S(n) is the number of strings of this type with length n, then S(1) 3 and S(2)7. How should we write the recursive part of the definition for S(n)? a. S(n) 3S(n-1)+ 7S(n-2)
b. S(n) as(n-1)+ bs(n-2) °
C. S(n) = S(n-1 ) + 2S(n-2)
d. S(n) acS(n-1) +bbS(n-2)
e. S(n) S(n-1) S(n-2) S(n-3)
f. S(n) 2S(n-1) + S(n-2)

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 15:40
What is the first quartile of the data set? 10, 11, 12, 15, 17, 19, 22, 24, 29, 33, 38 a. 12 b. 19 c. 29 d. 10
Answers: 1
question
Mathematics, 21.06.2019 20:00
Find the slope of the line passing through a pair of points
Answers: 2
question
Mathematics, 21.06.2019 20:00
If the simple annual interest rate on a loan is 6, what is the interest rate in percentage per month?
Answers: 1
question
Mathematics, 21.06.2019 21:00
Ftara spends $219 a month for her car payment and she makes $3,200 a month, what percent of her monthly income is spent on her car payment?
Answers: 2
You know the right answer?
Consider the set of binary strings (i. e. made of zeros and one's) that do not contain the substring...
Questions
question
Mathematics, 14.01.2021 18:30
question
Mathematics, 14.01.2021 18:30
question
Mathematics, 14.01.2021 18:30
question
Health, 14.01.2021 18:30
question
History, 14.01.2021 18:30
Questions on the website: 13722359