Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( Due January 2 4 ) In class, we designed automata for recognizing integers and real numbers. 1 . 1 . Use the same ideas
Due January In class, we designed automata for recognizing integers and real numbers.
Use the same ideas to describe an automaton for the following task. Most Russian female last names end in a letter Describe an automaton for recognizing words that end in For example, "Ivanov" should be rejected, but "Ivanova" or "IVANOVA" should be accepted.
A natural idea is to have states:
the start state S
the state A indicating that the last read letter was a or A and
the state D indicating that the last read letter was different from and
Start is the starting state, is the only final state. The transitions are as follows:
from letters a and A lead to state any other letter leads to state ;
from A letters and A lead to state A any other letter leads to state D;
from D letters and A lead to state A any other letter leads to state D
Trace, stepbystep, how the finite automaton from Part will check whether the following two words sequences of symbols are ends with the letter small or capital:
the word Iva which this automaton should accept and
the word Iv which this automaton should reject
Write down the tuple corresponding to the automaton from Part :
Q is the set of all the states,
is the alphabet, ie the set of all the symbols that this automaton can encounter; for simplicity, consider only three letters: and ;
: is the function that describes, for each state and for each symbol the state to which the automaton that was originally in the state q moves when it sees the symbol s you do not need to describe all possible transitions this way, just describe two of them;
is the starting state, and
is the set of all final states.
For each automaton let denote the language of all the words accepted by this automaton, ie of all the words for which this automaton ends up in a final state. In class, we learned a general algorithm that:
given two automata A and that correspond to languages and
constructs two new automata for recognizing, correspondingly, the union and intersection o languages and
Apply this algorithm to the following two automata:
the automaton from Part as Automaton and
an automaton for words not containing letter since some people have difficulty pronouncing this sound as Automaton
A natural idea is to have states for Automaton B: start s words with no letters n and words with letter r Start is the starting state, is the only final state. The transitions are a follows:
from s letter leads to any other symbol leads to ;
from n letter leads to any other symbol leads to ;
from r every symbol leads back to r
For simplicity, in your automaton for recognizing the union and intersection of the two languages, feel free to assume that you only have symbols a r and A
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