Lecture-20 Kleene’s Theorem-1.pptx best for understanding the automata

HUSNAINAHMAD39 158 views 25 slides May 01, 2024
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

A lecture to read about anything automata related to fa and kleans theorems


Slide Content

Kleene’s Theorem Part III

Kleene’s Theorem Part III If the language can be expressed by a RE then there exists an FA accepting the language.

Kleene’s Theorem Part III I f r1 and r2 are regular expressions then their sum , concatenation and closure are also regular expressions, Hence an FA can be built for any regular expression if the methods can be developed for building the FAs corresponding to the sum, concatenation and closure of the regular expressions along with their FAs.

Kleene’s Theorem Part III Union of two FAs: Using the FAs corresponding to r1 and r2, an FA can be built, corresponding to r1+ r2.

Kleene’s Theorem Part III Example 8 Let r1 = ( a+b )*b defines L1 and the FA1 be and r2 = ( a+b )* aa ( a+b )* defines L2 and FA2 be

Kleene’s Theorem Part III Let FA3 be an FA corresponding to r1+ r2, then the initial state of FA3 must correspond to the initial state of FA1 and the initial state of FA2. Since the language corresponding to r1+ r2 is the union of corresponding languages L1 and L2, And consists of the strings belonging to L1or L2 or both, therefore a final state of FA3 must correspond to a final state of FA1 or FA2 or both.

Kleene’s Theorem Part III

Kleene’s Theorem Part III RE corresponding to the above FA may be r1+r2 = ( a+b )*b + ( a+b )* aa ( a+b )*.

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem Part III Concatenation of two FAs: Using the FAs corresponding to r1 and r2, an FA can be built, corresponding to r1r2.

Kleene’s Theorem Part III Example 11 Let r1 = ( a+b )*b defines L1 & FA1 be & r2 = ( a+b )* aa ( a+b )* defines L2 and FA2 be

Kleene’s Theorem Part III Let FA3 be an FA corresponding to r1r2, Here the initial state of FA3 must correspond to the initial state of FA1 and the final state of FA3 must correspond to the final state of FA2. Since the language corresponding to r1r2 is the concatenation of corresponding languages L1 and L2, consisting of the strings obtained, concatenating the strings of L1 to those of L2, therefore the moment a final state of first FA is entered, the possibility of the initial state of second FA will be included as well.

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem Part III Closure of an FA Building an FA corresponding to r*, using the FA corresponding to r. It is to be noted that if the given FA already accepts the language expressed by the closure of certain RE, then the given FA is the required FA.

Kleene’s Theorem Part III Closure of an FA, is same as concatenation of an FA with itself, except that the initial state of the required FA is a final state as well. Here the initial state of given FA, corresponds to the initial state of required FA and a non final state of the required FA as well.

Kleene’s Theorem Part III Example 13 Let r = ( a+b )*b and the corresponding FA be Then the FA corresponding to r* may be determined as under

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem Part III

Kleene’s Theorem It is to be noted that as observed in the examples discussed in previous slides, if at the initial state of the given FA, there is either a loop or an incoming transition edge, the initial state corresponds to the final state and a non-final state as well, of the required FA, otherwise the initial state of given FA will only correspond to a single state of the required FA (i.e. initial state is final as well).