Pushdown Automata (Graphical Notation)

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 213

  • @sarba85528
    @sarba85528 ปีที่แล้ว +22

    Believe me, with the very same language, your explanation is a way better than most people in here. Thank you!

  • @10_yogeshchandrapandey90
    @10_yogeshchandrapandey90 4 ปีที่แล้ว +98

    I think for this PDA, q1 must be a final state, as language also accepts that strings for n=0.
    And also to accept a string, both conditions must be true:
    1. Final state must be reached.
    2. Stack must be empty.
    If any of these conditions come false, then string will not be accepted.
    Apart this, @NesoAcademy, you are providing a great content.
    Thanks a lot.

    • @lifeofsreeh
      @lifeofsreeh 3 ปีที่แล้ว +5

      No , that case every string will be accepted
      Edit :
      The right way is to add a transition from q1 to q4

    • @DFULTCDS
      @DFULTCDS 3 ปีที่แล้ว +1

      It's a NFA so what's why there isn't that transition.

    • @nitigyajoshi4658
      @nitigyajoshi4658 2 ปีที่แล้ว +16

      there are two types of acceptance by pda.
      1. acceptance by final state
      2. acceptance by empty stack

    • @hemantdewpal1612
      @hemantdewpal1612 2 ปีที่แล้ว +4

      correct but I think the mistake is in the question, where the condition should be n > 0.

    • @kriskurti7497
      @kriskurti7497 9 หลายเดือนก่อน

      @@lifeofsreeh no, because the initial state is reached only by reading the empty string. No way every string will be accepted if you make q1 a final state

  • @justinmorgan7495
    @justinmorgan7495 5 ปีที่แล้ว +59

    Such a great lesson. Clear, patient, concise and to the point. Good work you guys!

  • @Jerdz
    @Jerdz 6 ปีที่แล้ว +174

    You saved my life, I just wanted you to know !

    • @angshumansarma2836
      @angshumansarma2836 4 ปีที่แล้ว +2

      legend

    • @sagesy9774
      @sagesy9774 4 ปีที่แล้ว +14

      ye pyaar nahi toh aur kya hai

    • @Jerdz
      @Jerdz 4 ปีที่แล้ว +1

      @@sagesy9774 I do not understand your language

    • @sagesy9774
      @sagesy9774 4 ปีที่แล้ว +3

      @@Jerdz nothing it was a silly joke

    • @sam_682
      @sam_682 4 ปีที่แล้ว +4

      @@Jerdz he meant "if this isn't love then what else can it be"

  • @SHEETALSHARMA-tz7sm
    @SHEETALSHARMA-tz7sm 3 ปีที่แล้ว +16

    1:07 Meaning of a, b -> c
    3:24 Example

  • @gzhekoff
    @gzhekoff 5 ปีที่แล้ว +89

    Real heroes don't wear capes

  • @atifayaz3495
    @atifayaz3495 5 ปีที่แล้ว +70

    Netflix: Ughh.
    Neso: Aah

  • @kyathineeharika5670
    @kyathineeharika5670 2 ปีที่แล้ว +6

    In the PDA , transaction from q2 and q3 should be E,E-->E(E= empty transaction) because it should accept the case where n=0and the given PDA will work when n>=1

    • @utsavpathak2122
      @utsavpathak2122 ปีที่แล้ว

      where n = 0 the stack will be empty so it will also be accepted

    • @jriveros3901
      @jriveros3901 8 หลายเดือนก่อน

      Yeah much people coment that

  • @piyushborse3085
    @piyushborse3085 4 ปีที่แล้ว +6

    LEGENDARY Explanation...💯

  • @台閣
    @台閣 15 วันที่ผ่านมา

    it's crazy, how you could explain that such brief and knowble, you save my computin theory example, thank you
    (its quiet annoying to read through teachers power point and got nothing)

  • @Shaam_Ark
    @Shaam_Ark ปีที่แล้ว +5

    I been wanting to say this, the people behind Neso thanks alot for providing such quality content. I often dont listen to class so its because of you guys I have able to pass subjects like EEE and digital system last year and I still use this to learn for my classes even now. Much appreciated :D

  • @ARSAGAMING69
    @ARSAGAMING69 หลายเดือนก่อน +2

    Best teaching channel

  • @dibbyendukarmakar8351
    @dibbyendukarmakar8351 6 ปีที่แล้ว +5

    After watching this video for over 15 times consecutively...I have understood PDA succesfully...:)

  • @TrustTheFund
    @TrustTheFund 7 ปีที่แล้ว +140

    Perhaps I misread it, but it seems like this PDA makes {0^n1^n | n>0}, not {0^n1^n | n>=0}

    • @frostbite585
      @frostbite585 6 ปีที่แล้ว +6

      I think you're right

    • @OmranAlHadad
      @OmranAlHadad 6 ปีที่แล้ว +43

      his work is correct if he put accept state on "q1"

    • @GrimstboritH
      @GrimstboritH 6 ปีที่แล้ว

      yes.

    • @vaibhavmourya65
      @vaibhavmourya65 6 ปีที่แล้ว +1

      but this will also be true for 000011 as he said one of the condition should satisfy but i feel both should satisfy reaching Z and final states what say

    • @sahilsaini2764
      @sahilsaini2764 6 ปีที่แล้ว

      Yeah u r right

  • @egedurusoy7029
    @egedurusoy7029 ปีที่แล้ว +1

    SEHR HILFREICH UND TOLL VIDEO. DU BIST WUNDERBAR MENSCHEN!!!!

  • @gracestewart544
    @gracestewart544 3 ปีที่แล้ว +1

    This guy is a hero.

  • @taranrishith
    @taranrishith 6 ปีที่แล้ว +13

    Always the best ,keep up sir!

    • @yourdailyfails1
      @yourdailyfails1 4 ปีที่แล้ว +1

      dude your name took over my screen i thought i got fault in my monitor

  • @Sandeep-eb5sf
    @Sandeep-eb5sf หลายเดือนก่อน +2

    these videos never gets old😅😉

  • @zhouhang5330
    @zhouhang5330 2 ปีที่แล้ว +1

    Great job on explaining this. Very explicit and clear for understanding.

  • @rabeyabasri7070
    @rabeyabasri7070 3 ปีที่แล้ว +10

    hi there, thanks a ton on the amazing lecturee, they saved my life. Just a little feedback on something than can make it easier for the viewers. If you number the lectures for each topic, it would be easier to track which video follows from which as youtube doesn't always bring them in sequence.

    • @brahamaggarwal1800
      @brahamaggarwal1800 3 ปีที่แล้ว +3

      you can always watch the whole playlist..... you will get all 112 videos in sequence.

    • @sjhuz01
      @sjhuz01 2 ปีที่แล้ว

      @@brahamaggarwal1800 - They're not in the correct order. The "Context-Free Grammar" video references "previous videos" about PDAs when defining what a Context-Free Grammar is. But in the playlist those are #65-84, where this discussion of PDAs starts at #85. ... It is a bit circular anyway, as the Intro PDA video describes them as a way to describe Context-Free Grammar/Language.

  • @kettleghost3721
    @kettleghost3721 2 ปีที่แล้ว +5

    I swear you're such a life saver! Amazing job

  • @jatinbhardwaj3185
    @jatinbhardwaj3185 ปีที่แล้ว

    Have my university exam tomorrow
    Learnt a lot from your lectures
    Thank you

  • @brayanvizcaino
    @brayanvizcaino 10 หลายเดือนก่อน

    Awesome Videos, He explains everything slowly and clearly.

  • @subtitleslyrics7057
    @subtitleslyrics7057 2 ปีที่แล้ว +1

    E, E -> Zo
    (E: input symbol, E: to be popped -> Zo: to be pushed)

  • @mohammadasif6439
    @mohammadasif6439 ปีที่แล้ว

    Such a great line that two conditions for acceptance of any string in pushdown automata is :
    First: reaching the final state
    Second:stack should be empty

  • @tafveezahmad9692
    @tafveezahmad9692 3 ปีที่แล้ว

    omg you cleared PDA concept in one shot amazing man

  • @rj3937
    @rj3937 5 ปีที่แล้ว +2

    U are a lifesaver man!
    Much Love

  • @joyf7112
    @joyf7112 ปีที่แล้ว +1

    Thank you so much for your videos!!! You are wonderful at delivering this material!!

  • @ahmedi_zakid
    @ahmedi_zakid ปีที่แล้ว +1

    i wish i see your photo one day, what a nice guy

  • @huanchenlee3356
    @huanchenlee3356 ปีที่แล้ว +1

    Hope every university can hire such a teacher to give lectures so that his students don't go to youtube university🙂

  • @bushraw66
    @bushraw66 2 ปีที่แล้ว +1

    this is just exactly what I needed, thank you so much

  • @samriddhigulati3109
    @samriddhigulati3109 ปีที่แล้ว

    best video on the topic out there

  • @plsiok9626
    @plsiok9626 3 ปีที่แล้ว

    a real hero just that...

  • @vatstech8725
    @vatstech8725 3 ปีที่แล้ว +1

    You saved me..!!!! Thank you so much for making such a great content..❤️👍

  • @chavaligangadevi8663
    @chavaligangadevi8663 ปีที่แล้ว +1

    Good explanation sir

  • @KinGxWolF
    @KinGxWolF 7 ปีที่แล้ว +27

    Q1 should be a final state as well for the n=0 (case ε)

    • @lukaspovilonis210
      @lukaspovilonis210 7 ปีที่แล้ว +8

      Wolff or replace the transition from q2 to q3 with e, e->e.

    • @sayantaniguha8519
      @sayantaniguha8519 3 ปีที่แล้ว

      @@lukaspovilonis210 Then 00111 will also be accepted na ?

  • @FahimKarim-b6r
    @FahimKarim-b6r 16 วันที่ผ่านมา

    thanks for clearing confusion

  • @saketkumar4972
    @saketkumar4972 ปีที่แล้ว +1

    transaction from q2 and q3 should be E,E-->E(E= empty transaction) because it should accept the case where n=0

  • @Zeddy27182
    @Zeddy27182 2 หลายเดือนก่อน

    For whom might be confused!
    PDA accepts
    1. The final state
    2. When the stack is EMPTY.
    Hence, this is the accurate PDA recognize just epsilon where n=0.
    🙂

  • @Meiliful
    @Meiliful 4 ปีที่แล้ว +2

    a small piece of advice, can you also add the title with the number of the course like the main picture of the video. then it would be much easier for me to know which tutor I am at now. thanks!

  • @nandhucharan5858
    @nandhucharan5858 6 ปีที่แล้ว +1

    super explanations sir i like very much ....keep going on

  • @sidharthrajagarwal3025
    @sidharthrajagarwal3025 7 ปีที่แล้ว +7

    As always nailed it.

  • @jronyjrony2340
    @jronyjrony2340 5 ปีที่แล้ว +20

    You are doing the work of God. Whatever God is or however many Gods there are ... you are doing the work of the good. Thank you kindly, sir, from a dumb American.

    • @sghqz
      @sghqz 5 ปีที่แล้ว

      🥰🥰🥰

    • @henoktademe1491
      @henoktademe1491 7 หลายเดือนก่อน

      that's too much of a compliment, God gave him this knowledge

  • @jeongwookim4130
    @jeongwookim4130 5 ปีที่แล้ว +1

    Wonderful explanation!

  • @ARSAGAMING69
    @ARSAGAMING69 หลายเดือนก่อน +1

    7:09 - can q2 also be the initial state?

  • @huzaifakhan4657
    @huzaifakhan4657 7 หลายเดือนก่อน

    ustad kamalll😍🥰🤩

  • @pramodkoushiktr1895
    @pramodkoushiktr1895 3 ปีที่แล้ว

    i can not afford to buy paid your course. i am in 3rd sem now btech. pleaseeeeee dont remove these lectures. its is extremely helpfull

  • @parisaghanad8042
    @parisaghanad8042 5 ปีที่แล้ว

    sending soooooooooooo much love your way man your videos are awesome :)

  • @lanblast9423
    @lanblast9423 5 ปีที่แล้ว +1

    Wonderful explanation sir jiiiii

  • @HosRo4161
    @HosRo4161 ปีที่แล้ว +2

    What an excellent video. Incidentally, the diagram accounts for n> 0. In order to account for n = 0, do we need an epsilon transition from q2 to q3? -- Best regards and thank you again!

  • @MuhammadNadeem-rc5bk
    @MuhammadNadeem-rc5bk 4 ปีที่แล้ว +2

    sir in this lecture how to accept empty string? because n>=0 so, it must be accepted. kindly explain in above PDA.

  • @KElehOS
    @KElehOS 2 ปีที่แล้ว

    Thank you so much, great teacher.

  • @AartiKumari-qj3vm
    @AartiKumari-qj3vm หลายเดือนก่อน +1

    I comment on this video in 2024..my college professors use only your's video and ppt to teach us

  • @jff711
    @jff711 6 ปีที่แล้ว +1

    Thanks a lot, very helpful tutorial!

  • @skellep
    @skellep 6 ปีที่แล้ว +2

    Great videos! ..but maybe shorten them? 4:30 - 6:30 a 2 min explanation of Zo.

  • @Shivam-eh5fc
    @Shivam-eh5fc 5 ปีที่แล้ว +1

    Awesome explanation I m lovin it

  • @dogunboundhounds9649
    @dogunboundhounds9649 4 ปีที่แล้ว

    I love your videos. I am subscribing.

  • @pawansmy1844
    @pawansmy1844 5 ปีที่แล้ว +1

    Finally PDA Concept is clear

  • @myname1484
    @myname1484 3 หลายเดือนก่อน

    Thank you 🙏

  • @6Pope9
    @6Pope9 4 ปีที่แล้ว

    This was very helpful!

  • @qwertymama7344
    @qwertymama7344 4 ปีที่แล้ว +2

    for q2 to q3 why don't we use ∑ , ∑ -> ∑ that way 00111 wouldn't be accepted?

  • @DrRizzwan
    @DrRizzwan ปีที่แล้ว

    thank you, good lesson.

  • @david_m157
    @david_m157 3 ปีที่แล้ว

    The base case for the diagram for 0^n 1^n is not right because it should be n >= 1. If it was n = 0, then it would take the empty string.

  • @VivekSingh-in6rq
    @VivekSingh-in6rq 5 ปีที่แล้ว

    really useful content thank you very much

  • @Armando_Gutierrez
    @Armando_Gutierrez 5 ปีที่แล้ว

    Amazingly helpful

  • @mitul9638
    @mitul9638 6 ปีที่แล้ว +4

    What will be happened in case of null string ? As the condition is also true for n=0 then the state q1 should also be accepted if i don't make mistake.

    • @lucasdarianschwendlervieir3714
      @lucasdarianschwendlervieir3714 6 ปีที่แล้ว

      Then the first transition will accept no input and push z_0 to the stack. To make any progress any other transition will need to accept no input, otherwise the empty string is sure to be rejected.

  • @mortezamahdavi2129
    @mortezamahdavi2129 2 ปีที่แล้ว

    Perfectoooo.I love you guys :)

  • @eswararao6617
    @eswararao6617 7 ปีที่แล้ว

    Nice explanation

  • @anubhavsingh5863
    @anubhavsingh5863 5 ปีที่แล้ว +1

    You have solved it for n>=1 as final state is at the end, but in the question n>=0 has been mentioned.

  • @S_Mist01
    @S_Mist01 4 ปีที่แล้ว +1

    Thank you

  • @mohamadtabbakh9887
    @mohamadtabbakh9887 7 หลายเดือนก่อน

    would it be correct to adjust the content of the last transition function to be 1,z0, e? ( in case I got the naming wrong, I'm refering to the writing on the arrow from q3 to q4). I tried to redraw the automata from my understanding of the topic thus far and I noticed the discrepency between my drawing and the professor's. My justification is that my design is intended to transition to the final state when we reach the final input in the stack when the professor's design transitions after we've reached the final input and there are no more inputs. Is this justification correct?

  • @ליאורדבורה
    @ליאורדבורה 9 หลายเดือนก่อน

    if n=0 then epsilon in is L which means q1 also needs to be an accept state.

  • @natrutto
    @natrutto ปีที่แล้ว

    I'm sorry, but in the example of the language L = { 0^n 1^n : n >= 0 } I believe the first state (q1) should be an accepting state. This is because of the basic case where the input string is an empty word, represented as an epsilon (ε). This can be seen as 1 and 0 raised to the power of 0, resulting in an epsilon (ε) empty word. Therefore, I think the first state should be an accepting state.

    • @mr.unknown6179
      @mr.unknown6179 7 หลายเดือนก่อน +1

      Yes you are right

  • @mazharrazmian
    @mazharrazmian 2 ปีที่แล้ว

    I don't understand what was the use of stack in this case? Why all the pushes and pops?

  • @jkssbjobtutorial.5061
    @jkssbjobtutorial.5061 6 ปีที่แล้ว +1

    sir you are super

  • @okee
    @okee ปีที่แล้ว

    The example is NOT correct because 'n' is greater or equal to zero. Meaning if n = 0, the string will be empty. In this case, you cannot reach the accepting state (final state) if the string is empty. Correct me if I'm wrong.

  • @uchungnguyen1474
    @uchungnguyen1474 4 ปีที่แล้ว +1

    damn you are the first brown boi that i can listen to when it come to youtube learning. keep doing!

  • @AnasTahira
    @AnasTahira 3 ปีที่แล้ว +1

    Why did we pushed down Os into stack but not 1 ?

  • @azkymohamed123
    @azkymohamed123 6 ปีที่แล้ว +1

    Thank you sir

  • @abdirahman848
    @abdirahman848 19 วันที่ผ่านมา

    @Nesco Academy I made only two states both are accept states state1 will have loop transition 0,€,0 and transition going state 2 which is 1,0,€ and state 2 will alse have loop transition 1,0,€ is it correct or not

  • @vaibhavmourya65
    @vaibhavmourya65 6 ปีที่แล้ว +1

    but this will also be true for 000011 as he said one of the condition should satisfy but i feel both should satisfy reaching Z and final states what say

    • @jorgerios3635
      @jorgerios3635 6 ปีที่แล้ว

      w = 000011 is not accepted by the PDA of the example. Why? After inserting the chain w, the stack contains 00z_0.

  • @tuonghocat2310
    @tuonghocat2310 3 ปีที่แล้ว +1

    How about if n = 0 in this example?

  • @shahe1183
    @shahe1183 7 ปีที่แล้ว +1

    What about when q3 reads 0, can we do 0,E->0 and move to q2 state? For example in 001011 while reading 4th input symbol

    • @frostbite585
      @frostbite585 6 ปีที่แล้ว

      This grammar implies that the language is strictly n number of 0's followed by n number of 1's. There is no mixing of symbols.

  • @efseesfesfsefse2124
    @efseesfesfsefse2124 2 ปีที่แล้ว

    your goatted 💯💯💯

  • @calmingly8044
    @calmingly8044 ปีที่แล้ว

    you set n equal 0, so epsilon should be accepted too, right? How does the automata also accept only the epsilon?

  • @sanju_ch_8782
    @sanju_ch_8782 3 ปีที่แล้ว

    Does the 1s given as inputs get read in the string even if they don't push and pop out of the stack??????.

  • @abdirahman848
    @abdirahman848 19 วันที่ผ่านมา

    I made only two states both are accept states state1 will have loop transition 0,€,0 and transition going state 2 which is 1,0,€ and state 2 will alse have loop transition 1,0,€ is it correct or not

  • @manaveanni6646
    @manaveanni6646 4 ปีที่แล้ว

    Superb

  • @devratagarwal5021
    @devratagarwal5021 4 ปีที่แล้ว

    How null string will be satisfied in this example . Please explain

  • @jonatangall3715
    @jonatangall3715 7 ปีที่แล้ว

    Thanks a lot!

  • @venkatdurgasai2142
    @venkatdurgasai2142 13 ชั่วโมงที่ผ่านมา

    For 000111 also have same diagram or it will change ? Please anyone say

  • @somu-p9p
    @somu-p9p 22 วันที่ผ่านมา

    i dont understand the condition(n>=0) here what if n=0 pda not going to accept it

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 4 ปีที่แล้ว

    Thankyou sir

  • @SATISH715
    @SATISH715 6 ปีที่แล้ว

    Thanks a lot for the video. What happens when the string "1" is the input? At state q2, it will read 1 but the stack does not have a 0. Will this get rejected?

    • @abhishekshah5961
      @abhishekshah5961 6 ปีที่แล้ว

      yes! as the number of 0s is not equal to the number of 1s

  • @gauravbhandari1184
    @gauravbhandari1184 6 ปีที่แล้ว

    Amazing

  • @ytassignit
    @ytassignit 5 หลายเดือนก่อน

    sir won't this accept 00111 as well?

  • @Anime_Edits_7.
    @Anime_Edits_7. ปีที่แล้ว

    You have drawn 4 States, 2 inputs means 3 state must be there

  • @ashstories6489
    @ashstories6489 ปีที่แล้ว

    thanks a lot

  • @vex8521
    @vex8521 2 ปีที่แล้ว

    if the string is 01 then it will not reach the final state...but it should...then what to do?

  • @aayushmaurya1672
    @aayushmaurya1672 3 ปีที่แล้ว

    how a null string will be accepted by this generated PDA?