Question

2. For L = {a, bb}, how many strings of length 10 are there in L...

2. For L = {a, bb}, how many strings of length 10 are there in L ∗

Homework Answers

Answer #1

Given L = {a, bb}.

Solution :

Strings of Length 1: 'a' ==>One string

Strings of Length 2: 'aa', 'bb' ==> Two strings

Strings of Length 3: aaa, 'bba', 'abb' ==>Three strings

Observe the above pattern,

We are getting string of length n,

  • By appending string "a" to a string which is of length n−1 and
  • By appending "bb" to a string which is of length n−2.

Therefore, Length(n) = Length(n-1) + Length (n-2)

n Number of strings
1 1
2 2
3 2 + 1 =3
4 3 + 2= 5
5 5 + 3 = 8
6 8 + 5 =13
7 13 + 8 = 21
8 21 + 13 = 34
9 34 + 21 = 55
10 55 + 34 = 89

Note that 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 is fibonacci series. Tenth fibonacci number is 89.

Therefore, Total number of strings of length 10 are 89.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
How many different decimal strings of length 2 (strings of length two where each element of...
How many different decimal strings of length 2 (strings of length two where each element of the string is one of the decimal digits 0-9) are there where no digit can be repeated? How many length 3 decimal strings are there like this. How many length 7 decimal strings are there like this? How many length 11 decimal strings are there like this? Give an example of one of the length 11 strings.
This is a Discrete math problem. a. How many bit strings of length 12 are there...
This is a Discrete math problem. a. How many bit strings of length 12 are there in total? b. How many bit strings of length 12 contain an odd number of 1s? c. How many bit strings of length 12 contain “111000” as a substring of 6 consecutive bits in a row?
Consider strings of length 8 made up of elements in {0,1}. How many strings contain 000...
Consider strings of length 8 made up of elements in {0,1}. How many strings contain 000 as a substring? How many strings contain more 0’s than 1’s?
Let letters A,B,C,D,E,F,G be used to form strings of length 4. How many strings of length...
Let letters A,B,C,D,E,F,G be used to form strings of length 4. How many strings of length 4 with repetitions contain A and B. How about without repetitions?
Assume strings contain ONLY the letters: a, b. How many bit strings of length 8 either...
Assume strings contain ONLY the letters: a, b. How many bit strings of length 8 either start with bbb or end with aa ?
How many bit strings of length 12 contain the substring "111000"?
How many bit strings of length 12 contain the substring "111000"?
Do each of the following. a) How many ternary strings of length 20 contain at least...
Do each of the following. a) How many ternary strings of length 20 contain at least four 1s? (Hint: A ternary string consists of 0s, 1s, and 2s.) b) How many ternary strings of length 20 contain exactly four 1s?
Discrete Math a.) How many bit strings are there of length five or less, not counting...
Discrete Math a.) How many bit strings are there of length five or less, not counting the empty string? b.) How many different three-letter initials with none of the letters repeated can people have? c.) How many different three-letter initials are there that begin with the letter B? d.) How many 5-element DNA sequences end with A? e.) How many bit strings of length nine both begin and end with 1?
1.How many possible orderings of letters ABCDEFG are there? 2.How many strings of length 4 can...
1.How many possible orderings of letters ABCDEFG are there? 2.How many strings of length 4 can be made using the letters ABCDEFG? 3.How many subsets of size 4 are there of the letters ABCDEFG. 4.How many possible strings are there of the letters "MATTER"? 5.Consider four books: an engineering book (E), a physics book (P), a history book (H), and an Art book (A). Consider the following problem: Suppose that the library has at least six copies of each of...
how many bit of strings of length five start either or end with two zeros?
how many bit of strings of length five start either or end with two zeros?