Regular Expression to Finite Automata Examples || Lesson 38 || Finite Automata || Learning Monkey ||

  Рет қаралды 2,910

Learning Monkey

Learning Monkey

Күн бұрын

Regular Expression to Finite Automata Examples
In this class, we discuss Regular Expression to Finite Automata Examples.
The reader should have prior knowledge of regular expression to finite automata for operators. Click Here.
Example 1:
Given regular expression r= 0* + 11
In our previous classes, we discussed how to write finite automata for 0* and 11.
We write them and join to get the final regular expression.
Take r1 = 0*
the below diagram shows the finite automata for 0*.
Take r2 = 11.
The below diagram shows the finite automata for 11.
The final regular expression is given as r = r1 + r2.
The union operator applied between r1 and r2.
The below diagram shows the final finite automata for regular expression r.
Example 2:
The given regular expression r= (10*)*.
Take r1 = 1
The below diagram shows the finite automata for r1.
Take r2 = 0*.
The below diagram shows the finite automata for r2.
The final regular expression is r = (r1.r2)*
We need to concatenate r1 and r2; then, we apply a closure.
Point to understand: How we apply closure for r1.r2
The below diagram shows the finite automata for (10*)*
To repeat the expression 10*, we applied epsilon moves from state q6 to q1.
And to accept the epsilon transition, we apply epsilon moves from state q0 to q7.
The state q7 is the final state.
Similarly, We can write finite automata for any regular expression.
Link for playlists:
/ @learningmonkey
Link for our website: learningmonkey.in
Follow us on Facebook @ / learningmonkey
Follow us on Instagram @ / learningmonkey1
Follow us on Twitter @ / _learningmonkey
Mail us @ learningmonkey01@gmail.com

Пікірлер: 2
@sarthshah5947
@sarthshah5947 4 ай бұрын
intro music>>>>>>
@AnimeshMandloi
@AnimeshMandloi 5 ай бұрын
which of the following regular expression generates complement of a language generated by regular expression (00+11)* ans is :(00+11)*(0+1)+(00+11)*(01+10)(0+1)*
NFA to Regular Expression Conversion, and Example
14:46
Easy Theory
Рет қаралды 111 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
How I Made my Perfect Minecraft Start Even Better
16:55
Wildez
Рет қаралды 133 М.
The 7 Levels of Math Symbols
14:03
The Unqualified Tutor
Рет қаралды 68 М.
o3-Mini Fully Tested - Coding, Math, and Logic GENIUS
9:58
Matthew Berman
Рет қаралды 57 М.
Powerpoint About Vouchers
23:30
Flare
Рет қаралды 29 М.
NETHER WAR EP4 - FIREBALL - Alex and Steve life (Minecraft animation)
17:15
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН