Pushdown Automaton to Context-Free Grammar Conversion Example

  Рет қаралды 32,204

Easy Theory

Easy Theory

Күн бұрын

Пікірлер: 32
@bloodthirstybutcher8365
@bloodthirstybutcher8365 2 жыл бұрын
CFG to PDA: fine! But with this one you got me lost all over. Jesus, I just want to graduate 😭😭😭
@nicholasgraves3149
@nicholasgraves3149 4 жыл бұрын
Great video. I thought the intro music was going to be Yeah by Usher on an acoustic for a moment. Same interval pattern!
@MUSHIN_888
@MUSHIN_888 2 жыл бұрын
i get 007 vibes
@lacandela69
@lacandela69 3 жыл бұрын
Nice haircut, I have my final exam on Monday!
@changelife9847
@changelife9847 3 жыл бұрын
You are Great Tutor Bro.❤️❤️❤️❤️.By watching your video I had a crystal clear concept of way of conversion of CFG to PDA and Vice versa ❤️❤️❤️❤️🔥🔥🔥🔥🔥🔥🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼 Sir Thank You very much.
@ankitkumarsingh9815
@ankitkumarsingh9815 4 жыл бұрын
I will definitely rate this channel best for TOC 💯
@EasyTheory
@EasyTheory 4 жыл бұрын
Thanks
@zeitgeist18
@zeitgeist18 3 жыл бұрын
Is there any reason you didn't push the starting variable S onto the stack (after pushing $ onto the stack) when creating the PDA in the very beginning? I saw in the CFG to PDA video we typically do that along with making a transition to qloop. I think maybe because it's a different theorem + we're just given the PDA and only need to worry about converting it (not how it was made)?
@dr.safdarabbaskhan9194
@dr.safdarabbaskhan9194 2 жыл бұрын
At time 4:56 the auxiliary symbol to be used to make the e,e---> e move as push and pop move, is not suppose to be one of the terminals. It will later cause a problem resulting in error in the productions of the equivalent grammar.
@GenevieveKochel
@GenevieveKochel 2 ай бұрын
if we are popping off all non-special characters on the red self loop on q7, why don't we have a rule that pops a 1, since 1 is part of the language and is a non-special character? so we would add E, 1->E
@maddiepotts5702
@maddiepotts5702 3 жыл бұрын
Do we need to go through those 3 types of rules to figure out what rules we need, or are they just different methods to go about it? Is the answer just what you came up with in those rules, or are there really 729 of them? How can we know we found all the necessary ones?
@derekratliff9431
@derekratliff9431 3 жыл бұрын
tfw your homework requires you to translate a pda with 9 states into a cfg ;-;
@EasyTheory
@EasyTheory 3 жыл бұрын
This is when you break out your computer program to do the work for you - you're a computer science major (I'm assuming) after all! :)
@wahidhaidari3586
@wahidhaidari3586 3 жыл бұрын
For type 3, do we only consider the loops? In this example you worked with two type 3 rules. Is that all?
@nouzhan
@nouzhan 3 жыл бұрын
You are incredible! Thank you SO much
@EasyTheory
@EasyTheory 3 жыл бұрын
You're very welcome!
@MrPlanes747
@MrPlanes747 3 жыл бұрын
Why was it necessary to make all those changes to the PDA at the beginning?
@EasyTheory
@EasyTheory 3 жыл бұрын
For the way the conversion is setup, it's necessary for the base and recursive cases. However, there may be some other method that works and that might not require these changes. Would love to know if one such method exists.
@MrPlanes747
@MrPlanes747 3 жыл бұрын
@@EasyTheory Thanks!
@piratux2860
@piratux2860 2 жыл бұрын
@@EasyTheory You mentioned that you'd want to know if other methods exists that convert PDA to CFG without the need of initial changes to PDA. Such algorithm exists, if PDA is of variation, which accepts by emptying the stack (it's same as PDA which accepts by final state, thus there are algorithms to convert between these 2 variations). These methods are explained in the book "J.E. Hopcroft, R. Motwani and J.D. Ullman, Introduction to Automata Theory, Languages and Computation, 3rd Edition" pages: 247-251
@mohammadal-hiari925
@mohammadal-hiari925 3 жыл бұрын
was the introduction of the state that pops off the $ needed? we already know that if we reach this state -the original accept state-, then the stack is definitely gonna be empty. Moreover, the introduction of the $ at first serves off the same purpose as the hashtag symbol. would love to hear your feedback asap
@EasyTheory
@EasyTheory 3 жыл бұрын
Technically not needed, but I want this process to be algorithmic and always guarantee to work, regardless of the PDA (aka "I don't want to think too hard about it")
@mohammadal-hiari925
@mohammadal-hiari925 3 жыл бұрын
@@EasyTheory Thanks for the reply, awesome explanation btw :).
@EasyTheory
@EasyTheory 3 жыл бұрын
@@mohammadal-hiari925 You're welcome!
@FuzzyCuff2010
@FuzzyCuff2010 3 жыл бұрын
I sat through like an hours worth of videos about PDA to CFG and I think I understand less. It's not presented in such a way that's relatable to course material. Like, you spent 20 minutes describing a mountain? wtf, I don't care about a mountain, how do the PDA transitions relate to the CFG? Can we start there? Why is this like an hour long and doesn't end with showing a useable grammar?
@ankitkumarsingh9815
@ankitkumarsingh9815 4 жыл бұрын
Sir if possible then please make a series of videos on space and time complexity. I am getting confused very much. Please explain it from scratch and solve a good amount of questions.
@mrboyban
@mrboyban Жыл бұрын
Convert PDA's to CFG is my least favourite topic.
@swagatmalla6302
@swagatmalla6302 9 ай бұрын
Your videos are great, but I can barely hear anything.
@nevilholmes5900
@nevilholmes5900 2 жыл бұрын
thanks
@InternetExplorer-tq3md
@InternetExplorer-tq3md 9 ай бұрын
Thank u
@バナナお爺さん
@バナナお爺さん 4 жыл бұрын
This is gold :')
@EasyTheory
@EasyTheory 4 жыл бұрын
Thanks very much! :)
How big is the CFG from the PDA to CFG conversion?
10:35
Easy Theory
Рет қаралды 1,5 М.
Context Free Grammar to Pushdown Automaton Conversion (CFG to PDA)
24:21
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Chomsky Normal Form Conversion Example
22:04
Easy Theory
Рет қаралды 31 М.
Context-Free Grammars (CFGs): 5 Easy Examples
19:03
Easy Theory
Рет қаралды 59 М.
Equivalence of CFG and PDA (Part 1)
22:49
Neso Academy
Рет қаралды 752 М.
4. Pushdown Automata, Conversion of CFG to PDA and Reverse Conversion
1:09:23
MIT OpenCourseWare
Рет қаралды 78 М.
Pushdown Automaton to Context-Free Grammar Conversion (PDA to CFG)
22:18
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 2,3 МЛН
35. Conversion of PDA to CFG | University Question Example
20:33
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН