Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Constructing DFAs ( 3 0 points; each part 1 0 points ) For each of the following languages over the alphabet Sigma
Constructing DFAs points; each part points
For each of the following languages over the alphabet Sigma give a DFA that recognizes the language,
and explain why its correct. Try to use as few states as possible.
aw in Sigma w has an odd number of s For instance, has five s and is in the language,
and has one and is in the language, while has four s and is not in the
language.
bw in Sigma w starts and ends with the same character For instance, starts and ends with
and is in the language, and starts and ends with and is in the language, while
starts with but ends with and is not in the language.
cw in Sigma w starts and ends with the same character and has an odd number of s
A DFA and its Language points; each part points
Consider the following DFA over the alphabet Sigma a b c:
ab
start
a Write out the formal definition of this DFA as a tuple Describe the transition function in a table.
b What is the language recognized by this DFA? Give a short English description, then explain in
a paragraph why your description is correct.
cBONUS additional points How many strings of length are accepted by this DFA? Prove
your answer.
c c
q b q q
bc a
a abc
q
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started