5. Ternary strings. A ternary string is a word from the alphabet {0,1,2}{0,1,2}. For example, 022101022101...

70.2K

Verified Solution

Question

Advance Math

5. Ternary strings. A ternary string is a wordfrom the alphabet {0,1,2}{0,1,2}. For example, 022101022101 is aternary string of length 6.

(a) Enumerate all ternary strings of length 2.
(b) Generalize: how many ternary strings have length r?
(c) A ternary string of length 6 is to be made. How many ways canwe choose how many 0's, 1's, and 2's to include in thestring?
(d) A ternary string of length 6 is to have two 0's, a 1, and three2's. How many strings have this property?
(e) What is the probability that a ternary string of length 6 hastwo 0's, a 1, and three 2's?

Answer & Explanation Solved by verified expert
4.4 Ratings (799 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students