Question: Question 1 Consider ternary ( base - 3 ) numbers over the digits = { 0 , 1 , 2 } . Assume that numbers
Question
Consider ternary base numbers over the digits Assume that numbers with superfluous leading zeros are allowed. Give a regular expression for each of the following languages:
Numbers where all the digits are the same. For example, and are valid, but and are invalid.
Numbers that start and end with the same digit. For example, and are valid, but and are invalid.
Numbers that do not contain consecutive repeated digits. For example, and are valid, but and are invalid.
Question
Give a DFA for each of the languages in Question
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
