go to previous page   go to home page   go to next page

Answer:

StringBeedZZeeDudgreedFLEdKNeedMOON Mooo
Match or
Reject?
Match Match Match Reject Reject Match Reject Match

Automaton for One or More Instances

three state finite automaton

An automaton that accepts one or more instances of a character has a required transition for that character to a state that has a loop for the character. The above automaton is for [A-Z]+[aeiou]+[bd]?.

The automaton has two final states, q2 and q3. This is fine.


QUESTION 20:

Write a RE for strings that start with one or more alphabetical characters, upper or lower case, followed by any number of alphanumeric characters, upper or lower case.