Mathematics
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)

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 17:30, ahnagoede2768
Thelime contains the point(-3,0) and parallel x-3y=3( show all work)
Answers: 3
image
Mathematics, 21.06.2019 21:30, xaguilar
Data from 2005 for various age groups show that for each $100 increase in the median weekly income for whites, the median weekly income of blacks increases by $105. also, for workers of ages 25 to 54 the median weekly income for whites was $676 and for blacks was $527. (a) let w represent the median weekly income for whites and b the median weekly income for blacks, and write the equation of the line that gives b as a linear function of w. b = (b) when the median weekly income for whites is $760, what does the equation in (a) predict for the median weekly income for blacks?
Answers: 2
image
Mathematics, 21.06.2019 22:30, lorilhuff8197
Proving the parallelogram diagonal theoremgiven abcd is a parralelogam, diagnals ac and bd intersect at eprove ae is conruent to ce and be is congruent to de
Answers: 1
image
Mathematics, 21.06.2019 23:40, haybales6019
Cos^2x+cos^2(120°+x)+cos^2(120°-x)i need this asap. pls me
Answers: 1
Do you know the correct answer?
Consider the set of binary strings (i. e. made of zeros and one's) that do not contain the substring...

Questions in other subjects:

Konu
Mathematics, 15.12.2021 23:50
Konu
Mathematics, 15.12.2021 23:50