Question

Part B - Automata Construction

  1. Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that the number of 0s is divisible by 2 and the number of 1s is divisible by 5. Your DFA must handle all intput strings in {0,1}*.
    Here is a methodical way to do this:
    • Figure out all the final states and label each with the shortest string it accepts,
    • work backwards from these states to the starting state, labelling each state you create with the shortest string accepted so far,
    • add the missing transitions.
    The labelling of the states with the shortest string it accepts is important in order to not get confused.
  2. Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that the number of 0s is not divisible by 2 or the number of 1s is not divisible by 5. Your DFA must handle all intput strings in {0,1}*.
    (Hint: look at solution of previous question)
  3. Draw the simplest possible (i.e. with fewest number of states) NFA which accepts the following language over the alphabet of {a, e, i, o, u, b, p, r, s, t}: the set of strings which start with a vowel, then two consonants, then 0 or more vowels, followed by the first vowel.
  4. Assuming that you have the following three automata, A1, A2, A3 recognizing the languages L1, L2, L3 respectively, shown here as black boxes:
    S1 F1A2.GIF· F32 4 鈴
    1. Draw an NFA called A which recognizes the language L2 (L1 | L3) L2*
    2. What is the starting state of A?
    3. What are A's final states?
S1 F1

· F32 4 鈴
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here I - [0,1). Since DFA accepts the set of all strings such that the number of 0s is divisible by 2 and the number of 1s is

Third part:

Draw the simplest possible (i.e. with fewest number of states) NFA which accepts the following language over the alphabet of {a, e, i, o, u, b, p, r, s, t}: the set of strings which start with a vowel, then two consonants, then 0 or more vowels, followed by the first vowel.

Here the part ‘followed by first vowel’ is not clear? If it is the first vowel (from where the string is started), then DFA/ NFA is not possible as some additional memory required to remember it and we have to go for Pushdown automata.

Last part:

(b) starting state of A is S2

(c) All states of A1 and A3 are final states

Add a comment
Know the answer?
Add Answer to:
Part B - Automata Construction Draw a DFA which accepts the following language over the alphabet...
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
ADVERTISEMENT