Chomsky Normal Form Conversion Example

  Рет қаралды 31,844

Easy Theory

Easy Theory

Күн бұрын

Пікірлер: 50
@EasyTheory
@EasyTheory 3 жыл бұрын
Correction (from Natnael Taye): at 10:12, I incorrectly drew an arrow from B -> S0, whereas I meant B -> S (I even say it correctly...). If you see anything else wrong, reply to this and I'll credit you here.
@bhavesh.adhikari
@bhavesh.adhikari Жыл бұрын
@ 12:03 why A goes to S° ? or is it just the way we do it? since we have introduced the new start S° that goes to S, it's pretty much the same duplication for A (which you mentioned afterwards) for substitution of S° as S° goes where S goes. so if A goes to S°(say), shouldn't B does the same ? btw your videos are so helpful. thank you very much
@AcidCH
@AcidCH 21 күн бұрын
the bob ross of CFGs himself, what a great video As many have said, this is just 100x better than my lecture content which is someone reading off a script. Hearing your unfiltered thoughts as you move through is great, and your explanations are easy to follow.
@domc97
@domc97 3 жыл бұрын
what an underrated channel. The way you explained really helped!
@EasyTheory
@EasyTheory 3 жыл бұрын
Thanks very much
@yeonlee5
@yeonlee5 Жыл бұрын
watched this just now. thank you from the bottom of my heart because I was so confused with the way it was being taught in the course I'm taking, but the way you explained it sounded so clear and easy to understand
@ТамирланБельгибаев
@ТамирланБельгибаев 4 жыл бұрын
You will save my money and time, sir! Thank You!
@EasyTheory
@EasyTheory 4 жыл бұрын
You're welcome!
@t-en-t2542
@t-en-t2542 3 жыл бұрын
Thank you from Germany. I have my final exams next week. Your videos definitely helped me a lot! Keep up the great work!
@muhammed2174
@muhammed2174 3 ай бұрын
Saved me on my midterm this example!!
@qwqqq2416
@qwqqq2416 3 жыл бұрын
Thank you Professor, I wish I had you at my college to teach this.
@EasyTheory
@EasyTheory 3 жыл бұрын
You're welcome!
@eleman971
@eleman971 Жыл бұрын
final is in 7 hours. you are a life saver
@gabriellouns
@gabriellouns 7 ай бұрын
it was really helpful. i finally understand CNF... wish me luck i have an exam tomorrow. thank you so much, sir!
@natnaeltaye2279
@natnaeltaye2279 3 жыл бұрын
Thank you for your video. Super helpful! Just one question: At 10:06, why do we have a directed edge from B to S0? Shouldn't it be from B to S instead? because that's what the rule implies. Thank you.
@EasyTheory
@EasyTheory 3 жыл бұрын
Wow I didn't even notice that. Thanks!
@llimta
@llimta 3 ай бұрын
That was perfect! Thank you for this lesson
@randomguy18632
@randomguy18632 4 жыл бұрын
Now I get it! 3 hr collage voom meeting did not help.
@momusic1427
@momusic1427 2 жыл бұрын
Thanks a lot man ! You are making things so simple to understand
@juliangershwin
@juliangershwin 3 жыл бұрын
At 10:07 you draw a line from B --> S0, shouldn't that be a line from B --> S? Wouldn't that change the final form? EDIT: No it wouldn't.
@mertellialti
@mertellialti 3 жыл бұрын
but it was a mistake I think, or we think wrong? I'm confused...
@juliangershwin
@juliangershwin 3 жыл бұрын
@@mertellialti it was a mistake. However, I am pretty sure that the answer is the same.
@jussef2057
@jussef2057 2 жыл бұрын
Wanted to write the same
@MrPhilbs
@MrPhilbs 3 жыл бұрын
Thank you for your help! Great video
@EasyTheory
@EasyTheory 3 жыл бұрын
You're welcome!
@QasimKhan-nd8og
@QasimKhan-nd8og 2 жыл бұрын
excellent explanation
@stijnjongbloed1
@stijnjongbloed1 Жыл бұрын
Thanks for the video!
@امینجمالی-خ9ص
@امینجمالی-خ9ص Жыл бұрын
great explanation
@aleksandrkanygin2672
@aleksandrkanygin2672 3 жыл бұрын
Thank you, that's a great explanation. Maybe you have an example with brackets, for example with rules something like S -> A, A -> (S)A etc. It's just a bit confusing for me how we should treat brackets as terminal symbols i guess? Thank you for your explanations sir.
@swafly
@swafly 2 ай бұрын
I started last video (explaining what CNF is) with 😴😪faces. I ended up this video with 😅😌☺faces. Thanks a lot!
@constantmackin
@constantmackin Жыл бұрын
Hi, you said A can go to S0 at 12:06 but there is no edge in the graph, how can it A to S0 then please?
@to0ony3
@to0ony3 10 ай бұрын
he made mistake, there is no way A can reach S0... his graph has mistake.
@YoungFootballer
@YoungFootballer 2 жыл бұрын
much love
@vimalathithand917
@vimalathithand917 Жыл бұрын
Thanks!
@Mike-ej9dg
@Mike-ej9dg Жыл бұрын
Hello. At 13.32 why didnt you copy the whole expression of B?
@Yenaled1
@Yenaled1 2 жыл бұрын
would you break 4 nonterminals into two Y variables? ex: ABCD --> Y1Y2 where Y1 = AB and Y2 = CD
@jackcalisthenics6579
@jackcalisthenics6579 Жыл бұрын
I know this is late, but for anyone reading this: that is incorrect. Here is an example: X->CDEF becomes X->CY, Y->DEF and then in the next iteration we have X->CY, Y->DZ, Z->EF
@unamattina6023
@unamattina6023 7 ай бұрын
why S is deleted from B in 12.33?
@vikhyatsharma8138
@vikhyatsharma8138 3 жыл бұрын
Like from India
@deepeshkumar6717
@deepeshkumar6717 2 жыл бұрын
At the end S0 and S both are same . So can we remove S0 and make S as the starting variable.
@humiracousary1790
@humiracousary1790 4 жыл бұрын
thank you sir.....
@EasyTheory
@EasyTheory 4 жыл бұрын
You're welcome!
@joshuadelorbe4444
@joshuadelorbe4444 3 жыл бұрын
great video
@EasyTheory
@EasyTheory 3 жыл бұрын
Thanks!
@shadowlite18
@shadowlite18 4 жыл бұрын
hello sir, hopefully you see this before i start my quiz, im wondering if the order of mixed var needs to be changed too? i learned from the vid that we need to change forms of (aA) by replacing it with another var X or Y but if the form is (Aa), do we still change it? or leave it as is?
@shadowlite18
@shadowlite18 4 жыл бұрын
additional question, when do we simplify the CFG(removing useless symbols)? do we do it before or after converting to CNF?
@arkprince9413
@arkprince9413 3 жыл бұрын
u should be an actor
@EasyTheory
@EasyTheory 3 жыл бұрын
I kinda am when I'm teaching ;)
@mertellialti
@mertellialti 3 жыл бұрын
no one tried to do it in a different order... let me try
@EasyTheory
@EasyTheory 3 жыл бұрын
Most orders don't work - I've done a video where (I think) around 20 out of the 120 possible orders work.
An Inherently Ambiguous Context-Free Language
1:22:19
Easy Theory
Рет қаралды 3,1 М.
Chomsky Normal Form (CNF) Conversion Example
21:41
Easy Theory
Рет қаралды 56 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Chomsky Normal Form - what is it?
37:42
Easy Theory
Рет қаралды 13 М.
Pushdown Automaton to Context-Free Grammar Conversion Example
19:22
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Automata Theory - Chomsky Normal Form
26:13
Theoretical Computer Science
Рет қаралды 3,3 М.
Pushdown Automaton (PDA) Example: {0^n 1^n}
11:16
Easy Theory
Рет қаралды 77 М.
What P vs NP is actually about
17:58
Polylog
Рет қаралды 149 М.
Pumping Lemma for Context-Free Languages, Statement and FULL PROOF
30:03
Formale Sprachen #31 - Chomsky-Normalform herstellen
11:57
NLogSpace
Рет қаралды 74 М.