[CE 160 homepage]
CE 160 Automata and Formal Languages
Some Exam Questions from First Semester, 2002-2003
- Construct graphically a finite automaton equivalent to
the regular expression: (10)*+[(0+11)0*1]*. The automaton
may be nondeterministic with e-moves.
- Consider the following claim:
For every NFA with e-moves, having two or more final
states, there is an equivalent NFA with e-moves with
exactly one final state.
- Explain how the equivalent NFA could be
constructed graphically, given the graph of the
NFA having two or more final states.
- Let M=(Q,S,d,A,F) be an NFA with e-moves with |F|
>= 2. Construct formally the equivalent NFA
with e-moves M'=(Q',S,d',A',F'), with exactly one
final state, by specifying Q', d', A', F' in
relation to M=(Q,S,d,A,F).
- Construct graphically an NFA that accepts the language
described as the set of all strings over {0,1}such that
the 10th symbol from the right end is 1.
- Let S = {0,1}and let L be a finite subset of S*. Explain
why L is regular.
- Let L = {0i1j0i+j | i
>=1 and j >= 1}, a subset of {0,1}*. Use the
pumping lemma for regular sets to show that L is not
regular.
- Let L be the set of all strings in {0,1}* that DO NOT
have three consecutive 0's. Construct graphically a DFA
accepting L.
- Recall that the equivalence relation RL
associated with a language is defined as follows:
if and are strings, then x RL y if and only if
for each string z, either both or neither of xz and yz
are in L.
Let L = {x | x is in {0,1}* and x = xR }where
xR is x written backward; for example, (011)R
= 110.
- Identify an infinite set S, of strings in {0,1}*
such that any two strings in S belong to
different equivalence classes induced by RL.
Explain briefly why the strings in S belong to
different equivalence classes of L.
- Why can it be concluded from part (a) that L is
nonregular?
- Let M = ( {a,b,c,d,e,f}, {0,1}, d, a, {a,c} ) be a DFA
with d defined by the following table:
|
0 |
1 |
a |
b |
d |
b |
e |
c |
c |
b |
f |
d |
a |
e |
e |
e |
e |
f |
c |
e |
Find a minimum state DFA equivalent to M.
This page has been accessed
times since June 25, 2002.