Question

(a) Suppose we create strings from the alphabet {a, b}, for example, “baba”, “abab”, or “aaab”....

(a) Suppose we create strings from the alphabet {a, b}, for example, “baba”, “abab”, or “aaab”. How many strings of length 10 are there that have at least one of each letter in the alphabet?

(b) Suppose we change to the alphabet {a, b, c}. Now how many strings of length 10 are there that have at least one of each letter in the alphabet?

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

a) creating the string of length 10, there are 2 choices to fill each position

number of all possible string = 210

b) creating the string of length 10, there are 3 choices to fill each position

number of all possible string = 310

press like

Add a comment
Know the answer?
Add Answer to:
(a) Suppose we create strings from the alphabet {a, b}, for example, “baba”, “abab”, or “aaab”....
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