Question

1. Call a string of letters legal if it can be produced by concatenating (running together) copies of the strings a, b,

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) aa, bb, cc, ab, ba -> t2-5

b) aaa, bbb, ddd, acc, bcc, cca, ccb, aab, aba, baa, bba,bab, abb -> t3- 13

c) t_n=2t_{n-1}+t_{n-2}+t_{n-3} because we can append either 'a' or 'b' to a string of length (n-1) or append 'cc' to a string of length (n-2) or 'ddd' to a string of length (n-3)' to create a 'legal' string

d) t_4=2t_{3}+t_{2}+t_{1}=2\cdot 13+5+2={\color{Red} 33}

Add a comment
Know the answer?
Add Answer to:
1. Call a string of letters "legal if it can be produced by concatenating (running together) copies of the strings...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT