RE to DFA by direct method(Compiler Design) Example 1

  Рет қаралды 241,385

Easy Computer Engineering

Easy Computer Engineering

Күн бұрын

RE to DFA by direct method(Compiler Design), Regular Expression to DFA by computing Nullable, Firstpos, Lastpos and Followpos functions. Here we are converting Regular Expression to DFA by direct method. We generate syntax tree for Firstpos, Lastpos, then we compute followpos using algorithm. Using followpos we design DFA, for this you can refer book "Compilers" by Aho, Lam, Ullman, Sethi.
Also watch the Video RE to DFA by direct method example 2: • RE to DFA by direct me...

Пікірлер: 97
@surajkumar-cv3xb
@surajkumar-cv3xb 4 жыл бұрын
really very well explained. Better than IIT Kharagpur's professors.
@rajashri86
@rajashri86 4 жыл бұрын
Thank you for your comment
@ayushchhabra5745
@ayushchhabra5745 3 жыл бұрын
abe iit ki building me ghusne nahi milega.....
@debashishtiu2919
@debashishtiu2919 11 ай бұрын
IIT kgp cs me ladkiya kaisi hai 😅😅
@memes1719
@memes1719 7 ай бұрын
@@debashishtiu2919 bsdk ladkiyon ke peeche pade ga to hogayee teri engineering
@rupaktiwari5195
@rupaktiwari5195 Ай бұрын
This is gold. Best video on RE to DFA direct conversion.
@rajashri86
@rajashri86 Ай бұрын
Thank you so much 🙏
@shristisisodiya553
@shristisisodiya553 2 жыл бұрын
you explained better than most of the youtubers but hesitating so much as a first timer knowing rules I had to repeat, if possible please retake this video explaining rules, btw thanks for the explanation.
@rajashri86
@rajashri86 2 жыл бұрын
Thank you 😊
@salmansamikhan4854
@salmansamikhan4854 5 жыл бұрын
very calm easy and clear explanation. Best video I found on this topic so far. Thank you so much mam
@abhijeetbatra8451
@abhijeetbatra8451 5 жыл бұрын
Thanks mam ,understood better than our class lecture
@turtlepedia5149
@turtlepedia5149 3 жыл бұрын
At last good video on this topic
@rajashri86
@rajashri86 3 жыл бұрын
Thank you 😊
@srivenkatanathann1630
@srivenkatanathann1630 6 жыл бұрын
Slow, easy and understandable!! Thank u mam👌
@anaskhan4176
@anaskhan4176 3 жыл бұрын
In second example {1,2,3,5} is not showing transition for c, then how can we call it a dfa? Is there something that i dont know ?
@turtlepedia5149
@turtlepedia5149 3 жыл бұрын
there would be a reject transition at c from {1,2,3,5}
@malikkhan6003
@malikkhan6003 4 жыл бұрын
In * node 3 and 4 we are adding the last pos in 1 pos But you add 3 in 4 its wrong.
@padmalochanmaiti9695
@padmalochanmaiti9695 7 ай бұрын
How's the second example a dfa when there are no transitions on c input from so many states??
@RubelTube2020
@RubelTube2020 5 жыл бұрын
it's really understandable! thank you mam
@AndersonVish
@AndersonVish 4 жыл бұрын
Thank you! Very helpful.
@sharanpreetkaur8662
@sharanpreetkaur8662 5 жыл бұрын
mam you saved me,,, video was so guddd, thankyou!!!
@hkiscrazy
@hkiscrazy 3 жыл бұрын
Well Explained 👍
@rajashri86
@rajashri86 3 жыл бұрын
Thank you so much..🙏
@adhayajain616
@adhayajain616 5 жыл бұрын
Very good explanation. Thank you mam.
@rakshitp9124
@rakshitp9124 3 жыл бұрын
Thank you so much!!
@dipenpatel2029
@dipenpatel2029 3 жыл бұрын
Dil khush ho gaya
@dimitrios67
@dimitrios67 4 жыл бұрын
very good job!!
@amancoder1
@amancoder1 7 күн бұрын
wonderfull video
@rajashri86
@rajashri86 6 күн бұрын
Thank you so much 😊
@aksharkottuvada
@aksharkottuvada 6 жыл бұрын
thank you mam it helped me understand this concept
@Ak20231
@Ak20231 6 жыл бұрын
Thanks alot!!
@nirmalpatel6543
@nirmalpatel6543 5 жыл бұрын
Thanks a lot for a admirable help...
@vishwaknama7608
@vishwaknama7608 2 жыл бұрын
really well explained, thanks a lot But for the last example shouldn't we be considering a dead state? As some of the states doesn't have transitions to some inputs so the answer is not a complete DFA
@rajashri86
@rajashri86 2 жыл бұрын
Thank you so much.
@bobfreecode8106
@bobfreecode8106 6 жыл бұрын
thanks goodly explained
@kalgikansara7369
@kalgikansara7369 3 жыл бұрын
How you created diagram please explain
@rajashri86
@rajashri86 3 жыл бұрын
Watch complete video you will understand how to create diagram. Or watch below video for better understanding kzbin.info/www/bejne/hqS6d6inmZeCbsU
@dhanush6670
@dhanush6670 2 жыл бұрын
Clear Cut Explanation.
@rajashri86
@rajashri86 2 жыл бұрын
Thank you so much 😊
@nagendra1282
@nagendra1282 3 ай бұрын
Thank you mam. You helped me a lot ❤
@rajashri86
@rajashri86 3 ай бұрын
Thank you so much 😊
@shreyashachoudhary480
@shreyashachoudhary480 2 жыл бұрын
Really amazing
@rajashri86
@rajashri86 2 жыл бұрын
Thank you so much 😊
@zahidhassan3099
@zahidhassan3099 5 жыл бұрын
thanks mam.
@ajayprakash1167
@ajayprakash1167 5 жыл бұрын
Super mam
@bahraebrahimkhalid3408
@bahraebrahimkhalid3408 4 жыл бұрын
Please answer the questions Convert regular expressions to dfa directly (a|ab) ^*bb(a|b) ^*
@rajashri86
@rajashri86 4 жыл бұрын
Please find answer in below link. drive.google.com/file/d/1fL6LqbR8NeK8RZ8aCa67lsDJkqRrxgv9/view?usp=drivesdk
@bahraebrahimkhalid3408
@bahraebrahimkhalid3408 4 жыл бұрын
@@rajashri86 owwww thank you my dear ❤️😘😘 love all
@amatuluzma3828
@amatuluzma3828 5 жыл бұрын
Thanks a lot
@PREETHAM-mp25
@PREETHAM-mp25 3 жыл бұрын
Ma'am how to draw Tree for (a/b)*ab*
@rahulmacwan4494
@rahulmacwan4494 4 жыл бұрын
Thank you
@me-klaus
@me-klaus 3 жыл бұрын
👍👍👍👍👍👍👍
@gauravkapoor2580
@gauravkapoor2580 3 жыл бұрын
Hey , i know you , u had started a startup with initial funding of 100 crore...congratulations brother
@JayDee-b5u
@JayDee-b5u 5 ай бұрын
I have come up with an algorithm that is much much much faster than this. No graph creation necessary. Everything can be done with a binary tree.
@koushikk7076
@koushikk7076 5 ай бұрын
Could you tell me?
@koushikk7076
@koushikk7076 5 ай бұрын
Could you tell me the algorithm
@shlokgandhi2054
@shlokgandhi2054 4 жыл бұрын
I'm getting confused after 16:50, please help.
@rajashri86
@rajashri86 4 жыл бұрын
kzbin.info/www/bejne/hqS6d6inmZeCbsU Watch above video u will understand how to solve examples.
@shlokgandhi2054
@shlokgandhi2054 4 жыл бұрын
nd also not getting the followpos of 2nd example
@shlokgandhi2054
@shlokgandhi2054 4 жыл бұрын
Great, I've got it. Best explanation.
@rajashri86
@rajashri86 4 жыл бұрын
Thank you 🙏🙏🙏
@shlokgandhi2054
@shlokgandhi2054 4 жыл бұрын
@@rajashri86 If possible can I get syntax tree with follow pos. table of :- (a|b|c)*a(b|c)*# Please send me.
@Armando_Lara
@Armando_Lara 4 жыл бұрын
Thank you very much, you really helped me to understand this concept madam. I needed to program it in Python, this is the finished product: in github armandolara24/REtoDFA
@KushChoudhary
@KushChoudhary 4 жыл бұрын
but u made it 14 days before, even the last commit is 14 days before
@KushChoudhary
@KushChoudhary 4 жыл бұрын
I checked the code, 3/5 keep it up
@Armando_Lara
@Armando_Lara 4 жыл бұрын
@@KushChoudhary Your really are a keen observer. I forgot to say thank you, I came back. Also I'm writing my report so I revisited to check something. Greetings.
@KushChoudhary
@KushChoudhary 4 жыл бұрын
@@Armando_Lara haha thanks buddy
@Lakshmi_Krishna
@Lakshmi_Krishna Жыл бұрын
Mam is it good to do it as same as in formal language automata theory (flat) our lecturer said you can do it can anybody plz help with this question
@rajashri86
@rajashri86 Жыл бұрын
Yes, this question solved the compiler design perspective. You can solve it by normal automata questions. For that please watch the TOC playlist of this channel. You will get a number of examples of RE and on FA.
@kaushalniroula4129
@kaushalniroula4129 3 жыл бұрын
In second example I think it should be {1, 2, 3 } not {1,2,3, 5}
@vishwaknama7608
@vishwaknama7608 2 жыл бұрын
here + symbol is nullable so we should take the union of both firstpos(+) and firstpos(#)
@thiruprabhume
@thiruprabhume 2 жыл бұрын
Can you solve a.(a+b)*.a using direct method
@balajinaik07
@balajinaik07 4 жыл бұрын
Can i get ppt of this?
@kumaranr463
@kumaranr463 4 жыл бұрын
Exact anser
@abhijeetboricha8722
@abhijeetboricha8722 9 ай бұрын
isse ghatiya explanation ho hi nahi sakta
@YashashriShinde
@YashashriShinde 9 ай бұрын
I think you don't have a level to understand this video. First this video comes under Compiler Design not TOC.
@rajashri86
@rajashri86 9 ай бұрын
Thank you so much 🙏
@bimalagautam934
@bimalagautam934 Жыл бұрын
Thank you ma
@rajashri86
@rajashri86 Жыл бұрын
Thank you 😊
@gyanvidhilekhan1265
@gyanvidhilekhan1265 4 жыл бұрын
Wrong confused !!!
@rajashri86
@rajashri86 4 жыл бұрын
Example is correct. Watch carefully u will understand
@gyanvidhilekhan1265
@gyanvidhilekhan1265 4 жыл бұрын
@@rajashri86 first {1, 2} had written than you changed to {1,2,3} actually you are trying to match the answer
@rajashri86
@rajashri86 4 жыл бұрын
Hello dear why I will match the answer, watch below video kzbin.info/www/bejne/hqS6d6inmZeCbsU Still u have problem then I can't help you.
@gyanvidhilekhan1265
@gyanvidhilekhan1265 3 жыл бұрын
@@misc1217 yes !!
@onlyfostudypurpose1669
@onlyfostudypurpose1669 4 жыл бұрын
Vague tutorial, not understandable. Practise before making videos
@rajashri86
@rajashri86 4 жыл бұрын
First of all do you know this concept? For your understanding read Compiler design book by Ago,Ulman, Sethi. No need to watch my video.
@Armando_Lara
@Armando_Lara 4 жыл бұрын
@@rajashri86 Don't listen to this person. Explanation is excelent, by the way, what did you use to make the figures and animations? Thanks!
@rajashri86
@rajashri86 4 жыл бұрын
Thanks , Simple Power point presentation nothing special.😊
@NaveenKumar-tn2tm
@NaveenKumar-tn2tm 4 жыл бұрын
@@rajashri86 at 12:33 followpos(i) = followpos(i) U firstpos(i) . I don't understand, and it doesn't make sense
@rajashri86
@rajashri86 4 жыл бұрын
Its followpos(i) = followpos(i) U firstpos(c2) check it properly
@vishakamohan5336
@vishakamohan5336 3 жыл бұрын
Thank you so much!
@rajashri86
@rajashri86 3 жыл бұрын
You're welcome!
@rabisubedichettri7217
@rabisubedichettri7217 3 жыл бұрын
Thank you so much
@rajashri86
@rajashri86 3 жыл бұрын
Thank you..
@yogitajain8003
@yogitajain8003 5 жыл бұрын
Thank u mam
@mahfouzamer9720
@mahfouzamer9720 6 жыл бұрын
Thank you
RE to DFA by direct method (Compile Design) Example 2
20:17
Easy Computer Engineering
Рет қаралды 57 М.
NFA To DFA Conversion Using Epsilon Closure
7:08
TutorialsPoint
Рет қаралды 315 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,2 МЛН
I Made Sorting Algorithms Race Each Other
8:24
Green Code
Рет қаралды 124 М.
Minimized DFA using Optimization of  DFA Based Pattern Matches
18:24
MSD Learning World
Рет қаралды 104 М.
x86 Assembly Crash Course
10:45
HackUCF
Рет қаралды 835 М.
Minimization of DFA (Example 1)
15:56
Neso Academy
Рет қаралды 1,6 МЛН
you can learn assembly FAST with this technique (arm64 breakdown)
12:37
Low Level Learning
Рет қаралды 166 М.
Object-oriented Programming in 7 minutes | Mosh
7:34
Programming with Mosh
Рет қаралды 3,9 МЛН