Greibach Normal Form & CFG to GNF Conversion

  Рет қаралды 914,323

Neso Academy

Neso Academy

Күн бұрын

TOC: Greibach Normal Form & CFG to GNF Conversion
Topics discussed:
1) Greibach Normal Form
2) Steps to convert CFG to GNF
Contribute: www.nesoacademy...
Website ► www.nesoacademy...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Pinterest ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
• Axol x Alex Skrindo - ...

Пікірлер: 180
@Harsh-rm1tp
@Harsh-rm1tp 4 жыл бұрын
only god knows where I'll be using this in my life...
@ammu_00_7
@ammu_00_7 4 жыл бұрын
to pass the exams.
@elotaco3426
@elotaco3426 4 жыл бұрын
truee
@thetechaholic1944
@thetechaholic1944 4 жыл бұрын
To design compiler and programming languages
@anjandey6089
@anjandey6089 4 жыл бұрын
To impress your gf
@AnjaliKumari-fy1uz
@AnjaliKumari-fy1uz 4 жыл бұрын
@@anjandey6089 😂😂😂😂 exactly
@siddharthverma1999
@siddharthverma1999 3 жыл бұрын
For the ones having a doubt on "B -> SB": the example considered is already in the CNF, so there is no need to follow the "STEPS" in order to convert it to the CNF (thereby not following the S' rule). Hope this helps!
@anupamladdha4863
@anupamladdha4863 3 жыл бұрын
Thanks!!
@vinayak186f3
@vinayak186f3 3 жыл бұрын
In formal language theory, a context-free grammar, G, is said to be in Chomsky normal form (first described by Noam Chomsky)[1] if all of its production rules are of the form:[citation needed] A → BC, orA → a, orS → ε, where A, B, and C are nonterminal symbols, the letter a is a terminal symbol (a symbol that represents a constant value), S is the start symbol, and ε denotes the empty string. Also, neither B nor C may be the start symbol, and the third production rule can only appear if ε is in L(G), the language produced by the context-free grammar G.[2]:92-93,106 Source -wiki
@sarthak_saraf
@sarthak_saraf 2 жыл бұрын
This subject is over for me nowwwww and i am not gonna see this shit again. I m so happy goodbye theory of computation 🗡 u were a bitch
@prathyushsunny
@prathyushsunny 4 жыл бұрын
I recommend you people watch the previous videos on removing unit, null productions along with CFG to CNF conversion. Because steps 1 & 2, which take up majority of the process, aren't being applied to this example(which is a simple one).
@khedubaba
@khedubaba 4 жыл бұрын
Those who have doubt of S on RHS thus no CNF. So, you check for this(ie: step 1 of converting cfg to cnf as per previous video) when given production is not CNF. That is we begin with the procedure if given production is not in CNF form. But here given production is already CNF. Thus we don't follow those steps and it doesn't matter if S is on right side because its already in CNF form.
@ParnikaTutorials
@ParnikaTutorials 4 жыл бұрын
Yes I agee with Aditya
@Likhita-h1l
@Likhita-h1l 5 ай бұрын
Ohh, Thank you🌹
@mohammadnaseer5413
@mohammadnaseer5413 11 күн бұрын
Thank you
@daljeetkaur3002
@daljeetkaur3002 4 жыл бұрын
Oh my god, my teacher makes notes from your videos and teach us by that notes😂😂
@krishna8655
@krishna8655 3 жыл бұрын
Are you a LPU student as well? 😂😂😂
@sonasreedhar.1669
@sonasreedhar.1669 3 жыл бұрын
My teacher also like thiss
@User_435gyu6
@User_435gyu6 3 жыл бұрын
🤧that's so good
@bitoffbalance4021
@bitoffbalance4021 6 ай бұрын
Mr. Anand Bihari , loook at this😂😂
@omerihtizaz9043
@omerihtizaz9043 3 жыл бұрын
You said that when i -> j , i < j not i >= j however when we see A4 -> b | b A3 A4 | A4 A4 A4 you say that the part b A3 A4 is in normal form however here i == j
@kriskhandelwal6967
@kriskhandelwal6967 3 жыл бұрын
it started with a non terminal symbol that's why it was accepted if it would have been A3bA4 then we would have to replace the A3 but since it started with b it was accepted
@clipfams8887
@clipfams8887 3 жыл бұрын
@@kriskhandelwal6967 thanks bouiiiiii
@clipfams8887
@clipfams8887 3 жыл бұрын
@@kriskhandelwal6967 thanks
@rishikrishsharma2654
@rishikrishsharma2654 7 жыл бұрын
In the CNF lecture you said that Start Symbol S must not be on Right hand side and inn this lecture S is in RHS than you also considered it as CNF
@nikhilsharma8350
@nikhilsharma8350 4 жыл бұрын
Yes it's right can can you explain me why did this happen in this example.please response me if you know
@yashrajsingh8700
@yashrajsingh8700 4 жыл бұрын
@@nikhilsharma8350 If you see in previous example it was A->S and in this it is B->SB. Hence alone if S is found then we have to change.
@udiptadeka562
@udiptadeka562 3 жыл бұрын
I think there is a mistake as discussed in CNF S->ASB and A->S due to which we took a new production here too there is a state B->SB
@Nomnomnom165
@Nomnomnom165 Жыл бұрын
The steps are clear to me, thanks for the video. But i have one doubt. If it is already in Chomsky Normal Form, doesn't that mean that unit and null productions are already removed? And if so, is it fine to just check if it's in Chomsky Normal Form directly? Please correct me if I made some error
@Likhita-h1l
@Likhita-h1l 5 ай бұрын
Aren't we going to add S'-> S???
@adarshpawar
@adarshpawar 6 жыл бұрын
Why didn't we convert S'-> S? Because according to be in Chomsky Normal Form when S is in left side so we take S'.
@diodesu
@diodesu 2 жыл бұрын
Yeah I agree. The expression was still not fully converted into a CNF.
@vampyrkiller
@vampyrkiller Жыл бұрын
Right not left bro
@bhaveshkandpal1706
@bhaveshkandpal1706 5 жыл бұрын
M fan of the way you teach...thanks a lot..big thumbs up👍
@visheshupadhyay1774
@visheshupadhyay1774 5 жыл бұрын
nice video
@Ansari_Zubair
@Ansari_Zubair 5 жыл бұрын
Why should do Step 1,when we know that in CNF these Step Have to do.We should do directly step 2.
@voiceofyvr4006
@voiceofyvr4006 2 жыл бұрын
Congratulations for 1.5 million subs 🥳🤩
@01Nullvoid
@01Nullvoid Жыл бұрын
Excuse me sir! 3:50 here there S on right side of production. And how it is already in CNF??
@rachitchhabra9578
@rachitchhabra9578 7 жыл бұрын
B-->SB. Here it is not in Chomsky Normal Form since S is on the right side. Please explain!!?
@anuragroy11
@anuragroy11 6 жыл бұрын
Same question!
@kunaldeshpande6487
@kunaldeshpande6487 6 жыл бұрын
rachit chhabra no buddy S is right side still it is non terminal because it's a starring point....... Generally it's non terminal
@ChristianBurnsShafer
@ChristianBurnsShafer 6 жыл бұрын
Yes, we would have to add the production S' -> S. Small oversight.
@ritraina
@ritraina 6 жыл бұрын
u r asking a right question but d thing after removing unit production s'-s the s' will be extended with what s has now
@SalmanZaidiB96
@SalmanZaidiB96 6 жыл бұрын
exactly
@AadityaChouhan
@AadityaChouhan 10 ай бұрын
But, At 3:54 according to CNF the starting symbol shouldn't be on RHS of any production rule...😢
@giacomodovidio2871
@giacomodovidio2871 2 жыл бұрын
your lessons are powerful!
@siddharth.chandani
@siddharth.chandani Жыл бұрын
Here 5:00 you solve my doubt.. Thanks sir
@HighbrowDirector
@HighbrowDirector 3 жыл бұрын
Since we are already removing Unit Productions and Null Productions in CNF, Why do we need step 1 here?
@vaishnaviv2169
@vaishnaviv2169 3 жыл бұрын
The step which he said in the first, is for the conversion from CFG to GNF and not CNF to GNF.
@HighbrowDirector
@HighbrowDirector 3 жыл бұрын
@@vaishnaviv2169 If its already a CNF there will be no Null productions and Unit productions.
@vaishnaviv2169
@vaishnaviv2169 3 жыл бұрын
@@HighbrowDirector yeah... So, did he remove some unit or null values bymistake? Or is there any mistake in that video?
@HighbrowDirector
@HighbrowDirector 3 жыл бұрын
@@vaishnaviv2169 Actually no mistake 1 step was redundant
@vardaanbajaj3181
@vardaanbajaj3181 4 жыл бұрын
If i have a production of the form: A1 -> b A4 A3 A2 (A1, A2, A3, A4 are Non-terminals and b is a terminal), will this production be in GNF?
@AAYUSHSHARMAPCE21CS002
@AAYUSHSHARMAPCE21CS002 Жыл бұрын
Sir urgent doubt hai........ Diff. Method sai different answer aa sakta hai na? Bs condition satisfy Krna chaiye... Sir vo dusra method jismai A1,A2,A3 assume krte usse different aaraha
@jatinbansal4759
@jatinbansal4759 4 жыл бұрын
it will be really helpful if you provide the image of the things you tought over here
@NSTuts
@NSTuts 3 жыл бұрын
screen shot lele na pagal
@nabhavlogs371
@nabhavlogs371 5 жыл бұрын
A4-->b A3 A4? is this possible?
@clipfams8887
@clipfams8887 3 жыл бұрын
same doubt
@webtube4131
@webtube4131 5 жыл бұрын
S occurred on the right side in the given example so it is not in CNF but how did you proceed further without converting it to CNF (please help I have exam tomorrow )
@kgCode658
@kgCode658 5 жыл бұрын
Nice video sir... completely able to understand the concept...☺️☺️
@gopichandh5239
@gopichandh5239 5 жыл бұрын
not in CNF form as S is in the right hand side
@HighbrowDirector
@HighbrowDirector 3 жыл бұрын
I think you forgot to change 'A3' to 'a'.
@sparkplug8763
@sparkplug8763 3 жыл бұрын
no, that breaks the definition of GNF which is 'one terminal followed by n non-terminals' it's already in GNF so I guess the i < j part can be ignored.
@sankalparora9261
@sankalparora9261 4 жыл бұрын
Thanks. Nicely explained.
@mohamedkanu66
@mohamedkanu66 4 жыл бұрын
MAny thanks for the good job. Please can you do a video on conversion of regular expression to context free grammar. Please help us as urgent as possible
@GustavoFringe-dv2yg
@GustavoFringe-dv2yg Жыл бұрын
tomorrow is TOC exam,,, Wish me luck guys😥
@omop5922
@omop5922 Жыл бұрын
Videos were sufficient?
@GustavoFringe-dv2yg
@GustavoFringe-dv2yg Жыл бұрын
@@omop5922 yes, more than sufficient
@usamafiaz6964
@usamafiaz6964 2 жыл бұрын
Is there any Solution Manual for Automata By cohen and denial ?
@MohammadHassan-vd2zo
@MohammadHassan-vd2zo 3 ай бұрын
good teaching
@abanoubbenyamin1729
@abanoubbenyamin1729 Жыл бұрын
Doesn't BB in S makes it not in CNF because BB is repeated
@gouravchatterjee7052
@gouravchatterjee7052 6 жыл бұрын
it can be done in a simpler way also
@poojadonode524
@poojadonode524 5 жыл бұрын
How?????
@chandreshwarikhanorkar6668
@chandreshwarikhanorkar6668 5 жыл бұрын
Excellent Sir.. Thank you so much ...
@tahreenshaik277
@tahreenshaik277 7 жыл бұрын
please upload videos on pda and turing machine .i have my exam on 20 june
@vinayaksharma-ys3ip
@vinayaksharma-ys3ip 3 жыл бұрын
Thank You So much sir👍👍👍
@saicharan823
@saicharan823 5 жыл бұрын
Great lecture . Impressed with it !!
@imranshaik5325
@imranshaik5325 3 жыл бұрын
thanks
@RA-CSEA-eh3es
@RA-CSEA-eh3es 3 жыл бұрын
In step 4 what if it had....(A4->A4|A3)?
@friendlyneighbourhood930
@friendlyneighbourhood930 4 жыл бұрын
Thank you, Sir.😊😇
@MAX-rb2vh
@MAX-rb2vh 3 жыл бұрын
Why did we write A4 twice?
@shubhammishra4122
@shubhammishra4122 7 жыл бұрын
Sir i have my examss from 6th of july . It would be very helpful if you put now.
@iyadhabdessalem3496
@iyadhabdessalem3496 2 жыл бұрын
thank you
@KamalSingh-nv7nh
@KamalSingh-nv7nh 3 жыл бұрын
Thank you sir👍
@dennisthomas971
@dennisthomas971 3 жыл бұрын
Thank you❤🙏
@ricaspinto
@ricaspinto 3 жыл бұрын
sir*
@kerteske3811
@kerteske3811 3 жыл бұрын
I was searching for GNF - Polo G
@shubhammishra4122
@shubhammishra4122 7 жыл бұрын
Sir i need to learn whole turning machine . How much to pay you to get it?
@shashirekha3021
@shashirekha3021 5 жыл бұрын
Amazing videos
@merida3975
@merida3975 2 жыл бұрын
still have many doubts
@dhanushsivajaya1356
@dhanushsivajaya1356 3 жыл бұрын
Thankyou sir
@NikhilS-1
@NikhilS-1 11 ай бұрын
Here we go generational pain.
@Rohit-qp1ye
@Rohit-qp1ye 5 жыл бұрын
Good work sir keep going
@vikrampareek8713
@vikrampareek8713 6 жыл бұрын
wrong!! As B->SB has S on right side. it is not in CNF!! Please do convert it
@gagaadadasdadadas
@gagaadadasdadadas 5 жыл бұрын
thx man ! nice explaind !
@ricaspinto
@ricaspinto 3 жыл бұрын
Sir*
@JustwaitNwatch-w
@JustwaitNwatch-w 6 ай бұрын
I beleive that this subject is the most useless subject in the world
@bireshbiswas870
@bireshbiswas870 5 күн бұрын
Without this we won't be able to write code. It's just that we don't know why we are studying all these, makes us cuss the sub. I can feel u broo
@junaidshaikh3597
@junaidshaikh3597 6 жыл бұрын
This example is wrongly solve d
@RohitArtCraft
@RohitArtCraft Жыл бұрын
Sir you are great but your voice is not perfect
@ArifKhan-kp8zs
@ArifKhan-kp8zs 7 жыл бұрын
ab exam ho gaya ab kya dal rahe hoo. 😨😨ye questions exam me v aya tha
@amrabuodeh
@amrabuodeh 4 жыл бұрын
replace the valoo
@ozgunozerk334
@ozgunozerk334 4 жыл бұрын
its not gridback, its gribah (i pronounced like "i") :))))))))
@adilbimzagh5453
@adilbimzagh5453 4 жыл бұрын
it's not gribah eather ! the therm "ch" has its own prononciation !
@kakashi7943
@kakashi7943 Жыл бұрын
Wrong solution
@Likhita-h1l
@Likhita-h1l 5 ай бұрын
What's the wrong solution? May I know??
@saurabhjondhale
@saurabhjondhale 4 жыл бұрын
it should be A4--> b | A2 A3 A4 | A4 A4 not A4--> b | A2 A3 A4 | A4 A4 A4
@Sortedarray32
@Sortedarray32 2 жыл бұрын
Dukh dard peeda kasta
@smrpkrl
@smrpkrl 9 ай бұрын
3:04
@RashmiSingh-rl5ge
@RashmiSingh-rl5ge 5 жыл бұрын
Could you go any slower😒
@ManishSharma-lm3wg
@ManishSharma-lm3wg 5 жыл бұрын
Sorry to interrupt but he is already slow, Or watch at *.75 speed 😂
@RashmiSingh-rl5ge
@RashmiSingh-rl5ge 5 жыл бұрын
Manish Sharma Fitness I was being sarcastic dude
@bharanivishwamitra
@bharanivishwamitra 5 жыл бұрын
@@ManishSharma-lm3wg Can you be any dumber, oof!
@princekumaryadav6439
@princekumaryadav6439 Ай бұрын
Dude I saw this lecture in 3x then it was at a formidable speed 😅
@eeshankhan4607
@eeshankhan4607 5 жыл бұрын
A of 1 😂😂😂
@_Yank_
@_Yank_ 6 жыл бұрын
bcoz of one small mistake u done in the whole que is gone wrong and my last 2h before the exam day gone to hell can u pls post another video in which u didn't do such type of silly mistake of S on the right side of CNF that u didn't recheck whether what u r teaching is right or not
@mohamedkanu66
@mohamedkanu66 4 жыл бұрын
MAny thanks for the good job. Please can you do a video on conversion of regular expression to context free grammar. Please help us as urgent as possible
@AhamedKabeer-wn1jb
@AhamedKabeer-wn1jb 4 жыл бұрын
Thank you ..
@ricaspinto
@ricaspinto 3 жыл бұрын
sir*
CFG to GNF Conversion (Removal of Left Recursion)
11:20
Neso Academy
Рет қаралды 691 М.
Conversion of CFG to Chomsky Normal Form
12:58
Neso Academy
Рет қаралды 1 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,1 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 110 МЛН
Pumping Lemma (For Context Free Languages)
8:06
Neso Academy
Рет қаралды 669 М.
griebach normal form  | TOC | Lec-72 | Bhanu Priya
6:22
Education 4u
Рет қаралды 228 М.
Multivariable Calculus Lecture 1 - Oxford Mathematics 1st Year Student Lecture
46:39
Chomsky Normal Form Conversion Example
22:04
Easy Theory
Рет қаралды 28 М.
Chomsky Normal Form (CNF) Conversion Example
21:41
Easy Theory
Рет қаралды 46 М.
converting CFG to CNF example | TOC | Lec-71 | Bhanu Priya
13:13
Education 4u
Рет қаралды 624 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,1 МЛН