Cursus: M1, computer-science Code UE: JEIN8602
Subject: Formal languages theory Date: 20 March 2016
Duration: 3H
Documents: authorized
Lectures by: Mr G´eraud S´enizergues
The exercises are independant one from each other.
It is not required to solve all the exercises. Every correct solution to an exercise will give (around) 4 points.
Exercice 1 [/4] We consider the finite automaton A described on figure 1. Note that 0 is
0
g c
e
f
1 b 2 3
a d
Figure 1: finite automaton A the only initial state and 3 is the only final state.
0- Describe accepting computations of A over the words:
abd, agabd, af bd, abcbd, e.
1- Construct a regular expression for the language L
Arecognized by the automaton A.
Explain the successive steps of your construction.
We consider the monoid homomorphism h : {a, b, c, d, e, f, g}
∗→ {a, b}
∗defined by:
h(a) = a, h(b) = ba, h(c) = abb, h(d) = b, h(e) = bb, h(f) = aa, h(g) = b.
2- Give a regular expression for the language h(L
A).
3- Construct a finite automaton recognizing the language h(L
A).
Exercice 2 [/4] Let us consider the regular expression:
e := (((ab) ∪ (bc))
∗a)
∗c
Construct, by Glushkov’s method, a finite automaton recognizing L
e.
Exercice 3 [/4] We consider the finite automaton B described on figure 2. Note that 0 is
0
1
2
3 4
5 6
a
a a c
a
b c
a b b a, b