Equivalence of CFG and PDA (Part 1)

  Рет қаралды 751,999

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 182
@bloodthirstybutcher8365
@bloodthirstybutcher8365 2 жыл бұрын
I usually have no problems understanding your videos, but this one had me yawning all over. Jesus, I just want to graduate
@VroomVroom12
@VroomVroom12 9 ай бұрын
Tell ur jeSUS to teach from cross😂
@mastermaxx5352
@mastermaxx5352 2 ай бұрын
fr
@ashwinpavithran7118
@ashwinpavithran7118 Ай бұрын
Lmao why hating bruv, also ur reposted short is very funny, I died laffing​@@VroomVroom12
@pokalemahesh98
@pokalemahesh98 29 күн бұрын
@@VroomVroom12 🤣🤣🤣🤣🤣
@aakashparmar560
@aakashparmar560 3 жыл бұрын
Only god knows where I will be applying this logic.
@aryaman_godara
@aryaman_godara 2 жыл бұрын
in your UTs or end Sem exams
@shobhitmishra9266
@shobhitmishra9266 2 жыл бұрын
To assert dominance in front of your friends
@arjungaming2706
@arjungaming2706 2 жыл бұрын
🤣😂😂
@bloodthirstybutcher8365
@bloodthirstybutcher8365 2 жыл бұрын
@@aryaman_godara 🤓
@mgfactors3510
@mgfactors3510 2 жыл бұрын
I also thought
@minchuncho1710
@minchuncho1710 4 жыл бұрын
I've read the textbook for a couple of times, and I got to say that the concepts were rather complicated and abstract for me to comprehend. But thanks to the video which you made, it's very clear and now I know how it works and successfully linked most of the concepts on the textbook. Really appreciate it!
@ROHAN-xs7om
@ROHAN-xs7om 8 ай бұрын
Sir the example we had was different and you solved the different one 😅
@vatsaldhoundiyal643
@vatsaldhoundiyal643 3 жыл бұрын
for the first time i was disappointed at the end of the video for this channel
@Edutechsantu
@Edutechsantu 8 ай бұрын
Don't panic to see the comments that some students can't understand it , actually this topic is little bit complex, so you have to see the video twice or thrice for proper understanding 👍
@williammay3288
@williammay3288 2 жыл бұрын
generally find Neso Academy videos quite useful because of the provision of practical examples to back up the theory... but like others this video left me scratching my head, and no better able to convert CFGs to PDAs than before i watched. a shame, especially as the video was 22 minutes long!
@user-kt3mb8ug8r
@user-kt3mb8ug8r 2 жыл бұрын
I understood completely on the other hand.
@OmNikam-m7r
@OmNikam-m7r Жыл бұрын
f**k you dont make others feel dumb@@user-kt3mb8ug8r
@visheshsharma4517
@visheshsharma4517 2 жыл бұрын
got it, now ill be able to construct PDA for any CFG ❤❤
@parthsarthisingh4549
@parthsarthisingh4549 2 жыл бұрын
kya job lagti hai isse?
@chetansingh55
@chetansingh55 2 жыл бұрын
@@parthsarthisingh4549 hai ek job bhai jo isse lagti hai
@reshmak7592
@reshmak7592 5 жыл бұрын
Thank you sooo much sir your lecturer is very impressive i understood very clearly.........
@ishaanparashar9510
@ishaanparashar9510 4 жыл бұрын
Could you please explain to me ?
@ansabrehman2208
@ansabrehman2208 4 жыл бұрын
qassam kha ?
@pulkitahuja4750
@pulkitahuja4750 3 жыл бұрын
@@ansabrehman2208 😂😂😂😂literally
@sameersinghmahar6396
@sameersinghmahar6396 2 жыл бұрын
chal jhutti
@yingma6770
@yingma6770 7 жыл бұрын
From lecture 80, we know that upper case sigma represents a finite set of input symbols and uppercase gamma represents a finite stack alphabet. They are two different sets. Can we say that uppercase sigma is the set of terminal symbols and uppercase gamma is the set of both terminal and non-terminal symbols?
@ridwannana-yawamoako2939
@ridwannana-yawamoako2939 7 жыл бұрын
Upper case gamma is the set of stack symbols/alphabets. As we know stack symbols can either be terminal or non terminal. However upper case sigma is set of input symbols only which are always terminals. So your statement is right but you need to indicate that sigma is for input symbols while gamma is for stack symbols. This is my understanding. Open to corrections.
@yingma6770
@yingma6770 7 жыл бұрын
Thanks a lot for your response.
@anirvedh
@anirvedh 11 ай бұрын
Thanks you bro for clarifying ​@@yingma6770
@QT-yt4db
@QT-yt4db 2 жыл бұрын
19:14, the 0102 on input matches the 0102 on stack, but what would happen if 0103 is on input and 0102 is on stack? Seems this branch of logic is not explained... any help?
@krishnakantdave9593
@krishnakantdave9593 Жыл бұрын
Hey did you find out what to do in that case Same question popped up in my head so I'm looking through comments but can't find any answer
@ayanmandal8257
@ayanmandal8257 4 жыл бұрын
Sir please give an example. Of this type of questions we understand the method but doesn't know how to apply
@frostbite585
@frostbite585 6 жыл бұрын
Hi, I have a question I really urgently (like within a few a hours!) need an answer to: can you please explain why at 5:48 it doesn't become 2210A, then 2210? Am I missing something? I know some other people also wanted to know this answer. Thanks
@nikhilsrivastava5125
@nikhilsrivastava5125 6 жыл бұрын
bcoz it has taken production A-> ε over there.
@themachinist2350
@themachinist2350 6 жыл бұрын
Because the desired string is 221 we don't want anything else.
@hammerguy123
@hammerguy123 6 жыл бұрын
replacing A with epsilon
@Matt-of1xh
@Matt-of1xh 3 жыл бұрын
Is this question really answered with the below responses? I still don't see why it was 221 and not 2210A then 2210
@RA-gv3ys
@RA-gv3ys Жыл бұрын
I think it's upto us to take any one production from the 2 given (as was done in earlier examples too). So here he took A->€, rather than A->0A here.
@fardadhajirostami7104
@fardadhajirostami7104 7 жыл бұрын
Literally no video on youtube starts with an example and finishes the same example. Just show and finish ONE example please for the love of jesus
@siegfredch.960
@siegfredch.960 6 жыл бұрын
All teacher are stupid
@vaibhavbiradar9451
@vaibhavbiradar9451 6 жыл бұрын
be grateful for what you are getting.
@griffin3706
@griffin3706 6 жыл бұрын
@Vaibhav Biradar fuck you
@blakefeucht960
@blakefeucht960 6 жыл бұрын
@@vaibhavbiradar9451 Seriously... These videos are free and incredible helpful and people complain because they have to watch 2 of them... Entitled and ungrateful people.
@vaibhavbiradar9451
@vaibhavbiradar9451 6 жыл бұрын
@@griffin3706 Nah, I’m good..your sister already did.
@Apoorvpandey
@Apoorvpandey 3 жыл бұрын
This video was confusing, hard to track what is going on when
@amberchawla7930
@amberchawla7930 4 жыл бұрын
one of the things i don't understand is that what if the production is of type B -> ACD | EF; which one to push , we need to apply recursion using stack . please further make a video explaiing how to perform recursion using stack.
@aadilkhan2645
@aadilkhan2645 3 жыл бұрын
It's a non-deterministic algorithm, so it will have multiple runs trying out different rules. It simply tests for if one of the runs evaluates to the given input.
@kaiiiser7
@kaiiiser7 6 жыл бұрын
2210A?
@ignishaelton831
@ignishaelton831 2 жыл бұрын
Good explanation. Thank you
@saketkumar4972
@saketkumar4972 Жыл бұрын
21:55 for which context free grammar?
@hassaanrz
@hassaanrz 7 жыл бұрын
Sir, Why had you used production A->€ instead of A->0A ? Please explain it.
@gyorgykarolyi9521
@gyorgykarolyi9521 7 жыл бұрын
I dont understand that part either, answer would be good!
@Menthosful
@Menthosful 6 жыл бұрын
Because that production gives you two options, A->€ and A->0A. In that example, he wanted to look the most left derivation for the string 221. If you want to get the most left derivation for the string 2210, in that step you have to choose that option (A->0A) and then transform the non-terminal A to €.
@thewiz04
@thewiz04 6 жыл бұрын
I didn't understand either.. did you understand?
@tankman7347
@tankman7347 4 жыл бұрын
@@Menthosful ?
@santoshi8824
@santoshi8824 2 жыл бұрын
@@Menthosful ??? why did he take 221 and not any other possible string and if choosing only leftmost then shouldn't the string be 2210
@iqrach2858
@iqrach2858 5 жыл бұрын
Thank you so much sir really helpful lectures u r delivering.
@mohdshariquealam1296
@mohdshariquealam1296 5 жыл бұрын
in first example why did he used A-->epsilon instead of A-->0A...isnt that the leftmost derivation??
@technicalharshit2516
@technicalharshit2516 5 жыл бұрын
left most derivation means that we have to take left most variable and change it, not take the left most value of the left most variable in the derivation. Hope it helps!
@anushkagarhawal6918
@anushkagarhawal6918 4 жыл бұрын
@@technicalharshit2516 s->BS s->2S s->2A (A->epsilon) S->2 WHYYYY THIS IS NOT POSSIBLE??????
@10_yogeshchandrapandey90
@10_yogeshchandrapandey90 4 жыл бұрын
@@anushkagarhawal6918 to find a corresponding PDA, for a given grammar we must have to consider all possible cases. In other words, all possible strings obtained by productions rules must be accepted by PDA. So to obtain each possible combination of strings that must be accepted, we are first using those production which involves more no. Of non-terminals symbols and then using production that involves terminal symbols. Hope, you got that...!
@10_yogeshchandrapandey90
@10_yogeshchandrapandey90 4 жыл бұрын
@Mohd Sharique Alam, please refer to my comment above. Then coming to your question, as you have seen in that video, that whenever we have a terminal symbol in the top-most stack we just advance the Input symbol, till a non-terminal symbol. Since 'A' can have two productions, either string "0A" or ''epsilon". Now consider the case A->0A, so A is replaced by 0A in the top-most stack. Now we have '0' in the top-most stack which is a terminal symbol, so we will advance the string and (0, epsilon-->epsilon), and now the top-most symbol is again ''A", so using this production rule( A->0A ), we didn't get anything fruitful even we have make this PDA construction more complex. I hope, I got there...!
@shanmukhsreerangam1595
@shanmukhsreerangam1595 4 жыл бұрын
@Vasu Sharma it all depends upon the grammer here just he took an example so according to that example he explained
@NitinSingh-hk3vy
@NitinSingh-hk3vy 2 жыл бұрын
I m having a doubt, what if our production going like this A --> Aa | Yb When PDA find non terminal A on top of stack then it would always took Aa not Yb. How we can solve it ?
@DeepanshuSingh_
@DeepanshuSingh_ Жыл бұрын
Great video
@Apoorvpandey
@Apoorvpandey 3 жыл бұрын
All the different rules are different examples he has taken to show the working of the method, I got confused if they were relating to the grammar in the start of the video
@Payal_Ojha
@Payal_Ojha 21 күн бұрын
From where the general form came yr, actually i didn't get that how you write that general form?????? Please reply me, i need it and if anyone knows, can reply me, as I've exam tomorrow 🙏🙏🙏
@yashparmar5722
@yashparmar5722 Жыл бұрын
Thanks sir❤
@dhanushsivajaya1356
@dhanushsivajaya1356 4 жыл бұрын
Thankyou sir
@technicalgajesh1742
@technicalgajesh1742 5 жыл бұрын
Damm bro 😎 if you are master in data structure or in Stack you can do it easily...
@ShivamGupta-gn8cn
@ShivamGupta-gn8cn 4 жыл бұрын
How did you get that general form??
@vishwajeetohal9137
@vishwajeetohal9137 3 жыл бұрын
It was not an exact general form. It is an example representative of the general form (not some special case)
@omop5922
@omop5922 2 жыл бұрын
Zindagi chune engineering nahi.
@abhishekbiswas5976
@abhishekbiswas5976 2 жыл бұрын
Sir, where did we get A-->BCD rule from? It's not present in the grammer.
@CCSPAM10
@CCSPAM10 3 жыл бұрын
U didn't continue with the starting examplee
@sanjayakoirala4410
@sanjayakoirala4410 7 жыл бұрын
is the general form mentioned in the video same for all such conversion problems?
@subodhkalla975
@subodhkalla975 Жыл бұрын
could someone answer this question I have the same doubt
@vaasereshma3204
@vaasereshma3204 4 жыл бұрын
you took one example and didn't continue with that
@apexa_sharma545
@apexa_sharma545 Жыл бұрын
what if input symbol and the top element on stack does not match?
@sunnyyadav8005
@sunnyyadav8005 7 ай бұрын
will the result of left most derivation not be 2210 ?
@Amal-ds3nw
@Amal-ds3nw Жыл бұрын
If I have more than one rule with the same start variable what rule should be applied ?
@moonthoughts8822
@moonthoughts8822 3 жыл бұрын
Hi, will this general form for all grammars we will try to find equivalent pda?
@jkssbjobtutorial.5061
@jkssbjobtutorial.5061 6 жыл бұрын
Super teaching sir.
@ashutoshnegi9531
@ashutoshnegi9531 5 жыл бұрын
kaihna kaya chatae ho aap ;-/
@ansabrehman2208
@ansabrehman2208 4 жыл бұрын
heavy yaar xD
@caesarshi9114
@caesarshi9114 3 жыл бұрын
SO good
@48_subhambanerjee22
@48_subhambanerjee22 2 жыл бұрын
Got it 👍
@mrinmoykumar2579
@mrinmoykumar2579 5 жыл бұрын
What are you explaining. Just jumping from one example to another. Atleast complete an example. Did you had cheap weed
@muskansharma7300
@muskansharma7300 5 жыл бұрын
😭😭😂😂
@St0n3dCold
@St0n3dCold 4 жыл бұрын
Lmao
@pavan4264
@pavan4264 2 жыл бұрын
lol
@yingma6770
@yingma6770 7 жыл бұрын
Is there more than one PDA corresponding to the same CFG. For example, in lecture 81, You give an PDA for strings 0^n1^n, we know the CFG for these strings is X->0X1. If we use this CFG to derive the PDA, it is different from the one in lecture 81. How can we prove that these two PDA are the same? Or how can we simplify the derived PDA to the one introduced in lecture 81?
@adarshagrawal6855
@adarshagrawal6855 4 жыл бұрын
bhai ye general form kaha se aaya?
@nehagarg2719
@nehagarg2719 4 жыл бұрын
Is this topic important for gate purpose??
@shaikhmoin849
@shaikhmoin849 3 жыл бұрын
Yesss
@mukeshbhangale7040
@mukeshbhangale7040 4 жыл бұрын
How you make the videos? By this viewers can capture more. Sir, during this lockdown we have to deliver lecture.
@bhavyabhagwani5407
@bhavyabhagwani5407 Жыл бұрын
kuch samjh ni aya 🥺🥺
@dhakshinamurthy4629
@dhakshinamurthy4629 7 жыл бұрын
Sir please upload remaining videos soon, thanks
@AkshayKumar-bw9mk
@AkshayKumar-bw9mk 5 жыл бұрын
Thanks a lot
@stanleyamukamara6240
@stanleyamukamara6240 Жыл бұрын
amazing video but you just left the first example you did. You broke it down but did not convert it
@mohammedamaan7351
@mohammedamaan7351 5 жыл бұрын
Is the given rule same for all questions ?? plz reply thanks
@ahd-123z
@ahd-123z 8 ай бұрын
@xinhaizou9240
@xinhaizou9240 3 жыл бұрын
I don't understand why epsilon, epsilon -> S, should it be "epsilon, S -> A"?
@itxbo
@itxbo 3 жыл бұрын
same thing i thought
@xinhaizou9240
@xinhaizou9240 3 жыл бұрын
@@itxbo I think mine is correct! Trust me! I got a 14/20 on this course finally! XD
@Name-pn5rf
@Name-pn5rf 5 жыл бұрын
Do number of states matter in pda?
@AviralDixit
@AviralDixit 6 жыл бұрын
What is the meaning of advance the input string ??
@ibrahim47
@ibrahim47 6 жыл бұрын
read the next symbol
@HerbertGevara-j5l
@HerbertGevara-j5l 3 ай бұрын
Goodwin Branch
@anushkagarhawal6918
@anushkagarhawal6918 4 жыл бұрын
why you are not writing B as 2 s->BS s->2S s->2A (A->E) S->2 ??????
@gouravm4986
@gouravm4986 4 жыл бұрын
He said you can get many forms... So yours is not wrong too
@swarup765
@swarup765 7 жыл бұрын
PLEASE RESPOND. How long do you need to finish the playlist? Please finish in a month or two. Will be very helpful for our upcoming exams.
@ridwannana-yawamoako2939
@ridwannana-yawamoako2939 7 жыл бұрын
How much will you pay? A beggar with a choice lool
@LindaTaylor-e7u
@LindaTaylor-e7u 3 ай бұрын
Martin Larry Perez David Martinez Charles
@KennethBrown-p5s
@KennethBrown-p5s 3 ай бұрын
Rodriguez Sarah Wilson Nancy Clark Jennifer
@saiswaranreddy7084
@saiswaranreddy7084 2 ай бұрын
Still have doubts 😢
@DevanshNarwariya__BCS
@DevanshNarwariya__BCS 3 жыл бұрын
Why can't it be like: --> S --> A --> 0A --> 0 .
@shouvikdutta2825
@shouvikdutta2825 4 жыл бұрын
First video with damm bad explanations.
@supragya8055
@supragya8055 6 жыл бұрын
at least give an example
@prabinsigdel7538
@prabinsigdel7538 3 жыл бұрын
this is worst , u have not explained the example
@vishalnavin2269
@vishalnavin2269 4 жыл бұрын
My friend said you should use a better font
@smritikerketta2218
@smritikerketta2218 4 жыл бұрын
Sir a also gives oa A ->OA
@ayushkwal
@ayushkwal 3 жыл бұрын
Have you got your answer?
@AyushMo
@AyushMo 3 жыл бұрын
Yup, so 221 isn't the general form. You can have many forms accepted by the PDA.
@mdaltamashraza9750
@mdaltamashraza9750 2 жыл бұрын
Bit confusing
@priyanshuchaudhary837
@priyanshuchaudhary837 4 жыл бұрын
the grammar and final PDA do not match
@seguhemateja7751
@seguhemateja7751 4 жыл бұрын
Sir,please explain only by taking one grammar
@RichardGonzalez-v6y
@RichardGonzalez-v6y 3 ай бұрын
Robinson Ronald Thompson Larry Harris Jeffrey
@scoobynicker
@scoobynicker 5 жыл бұрын
I'm here cause Ganesh doesn't make any sense.
@DamnLyons
@DamnLyons 5 жыл бұрын
don't you just love paying for a class where you have to teach yourself all the material? :) this midterm's gonna suuuuuuuck
@scoobynicker
@scoobynicker 5 жыл бұрын
@@DamnLyons Hey, I'm shooting for at least 65% That's about all you can hope for in this class.
@saichakravaram6713
@saichakravaram6713 6 жыл бұрын
Transition of PDA ? Can u tell me?
@keshavraghav3896
@keshavraghav3896 3 жыл бұрын
purane lecture dekh le.
@okaudi
@okaudi 2 жыл бұрын
So, So complicated. hard to understanding
@abhilasbiswas4102
@abhilasbiswas4102 Ай бұрын
What a waste of time. Why are you confusing showing some random cfg? Why are explaining a simple full example instead of this island
@_A_Azra
@_A_Azra Жыл бұрын
Little bit confusing
@pranavanilkumar8592
@pranavanilkumar8592 7 жыл бұрын
pleasa add NPDA with this lecture set....urgent.....
@pujithachowdary6446
@pujithachowdary6446 2 жыл бұрын
How can you get Left most derivation sir i mean without using inPut string?
@iswaryapandugayala594
@iswaryapandugayala594 6 жыл бұрын
We can not see picture clarity
@ansabrehman2208
@ansabrehman2208 4 жыл бұрын
net sahi krwa bharrwe
@bimmiverma1246
@bimmiverma1246 4 жыл бұрын
Very bad do one example only
@kurasalalakshmivenkatakuma7893
@kurasalalakshmivenkatakuma7893 6 жыл бұрын
Sir,Is this enough for gate 2019?
@VishalSaharanVlogs
@VishalSaharanVlogs 6 жыл бұрын
not enough for more click mushermusicvevo where i explain
@gladyouseen8160
@gladyouseen8160 5 жыл бұрын
Not required for gate actually these type of one's
@adarshagrawal6855
@adarshagrawal6855 4 жыл бұрын
ama kya padha rhe ho bhai...kuch smjhao to
@adarshagrawal6855
@adarshagrawal6855 4 жыл бұрын
Wahi to...read to hm b kr skte...
@jj050
@jj050 2 жыл бұрын
Heyy
@aaru8323
@aaru8323 2 жыл бұрын
@@jj050 whi
@aaru8323
@aaru8323 2 жыл бұрын
@@jj050 waited...but u didn't come
@aaru8323
@aaru8323 2 жыл бұрын
@@jj050 tu soch
@aaru8323
@aaru8323 2 жыл бұрын
@@jj050 they are personal
@aaru8323
@aaru8323 2 жыл бұрын
@@jj050 yar meko pta hota to yhan kyun krti
Equivalence of CFG and PDA (Part 2a)
21:47
Neso Academy
Рет қаралды 303 М.
Derivation Tree (Left & Right Derivation Trees)
12:33
Neso Academy
Рет қаралды 1 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Turing Machine - Introduction (Part 1)
8:05
Neso Academy
Рет қаралды 1,2 МЛН
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
Новый год 2025 на ТНТ "ComedyVision!" @ComedyClubRussia
1:16:27
The New Secret Formable Nation In HOI4 Is OVERPOWERED
16:48
iSorrowproductions
Рет қаралды 171 М.
Simplification of CFG (Reduction of CFG)
13:57
Neso Academy
Рет қаралды 1 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41