Pushdown Automata Example - Even Palindrome (Part 1)

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 234

  • @edulgl
    @edulgl 6 років тому +380

    For anyone wondering how the machine knows that it's the middle of the string, it knows that because it's basically trying all possibilities of middle in the string. For each letter read, it assumes that it's already in the middle.
    When it receives the first letter (a in this case) on the state q2, it goes to both q2 AND q3 (this is allowed since it's a non-deterministic automata). The automata now has two parts, one in the state q2 and other in the state q3. The former will keep receiving new characters until the end of the string and the latter will check if the stuff that's in the stack is equal to the rest of the string, if it is, then your string is a palindrome.
    In the case of the first 'a', the stack will be empty so the second part of the automata will stop and only the first part will continue. When it receives the first 'b', the stack will have 'ab' and the second part will continue because the rest of the string is 'ba', reaching the end state when the string ends.

    • @edulgl
      @edulgl 6 років тому +33

      Just noticed that he explains this in the next lecture. I'll leave this here anyway, maybe it'll help someone.

    • @Artaxerxes.
      @Artaxerxes. 4 роки тому +5

      @Rimack Zelnick apparently every dpda can be converted to npda not vice versa

    • @balkaransingh951
      @balkaransingh951 4 роки тому

      Thanks 🤞

    • @ordinaryperson883
      @ordinaryperson883 3 роки тому +1

      Thanks

    • @marxman1010
      @marxman1010 3 роки тому

      @@edulgl You helped me a lot. I was wondering the middle point. PDA is non-deterministic, so there could be multiple states at the middle point.

  • @SHEETALSHARMA-tz7sm
    @SHEETALSHARMA-tz7sm 3 роки тому +44

    **** Bookmark ****
    3:33 Meaning of the language
    8:04 Tracing of abba
    8:54 Midpoint of the even palindrome string
    10:46 Tracing of abab - non palindrome string
    12:41 Confusion about how to know when we reached the midpoint of the string

  • @preetamprag5137
    @preetamprag5137 6 років тому +94

    I do not actually understand how to create the given PDA,just how to check if the PDA is correct or not

  • @soimtheowl
    @soimtheowl 3 роки тому +23

    Mate, thank you for these videos. My teacher just gave us mathematical notations and formulas and demonstrations, I pretty much didn't understand a single sentence. This thing saved me.

    • @marxman1010
      @marxman1010 3 роки тому +1

      Only one teacher, the best one, is enough. Other teachers must improve their teaching skills, otherwise will lose job in the future.

    • @soimtheowl
      @soimtheowl 3 роки тому +6

      @@marxman1010 Sadly, they are untouchable, it's always the student's fault, you know... Meanwhile, most teachers are just an obstacle between you and a diploma.

    • @DarkOceanShark
      @DarkOceanShark 3 роки тому

      An owl learning about PDA, this is the most random thing I have ever seen 😂

    • @soimtheowl
      @soimtheowl 3 роки тому +3

      @@DarkOceanShark I actually graduated top of the class too! Now I'm doing a master's degree. I got the highest grade in the automata and compilers exam because of these videos.

  • @backslash8874
    @backslash8874 5 років тому +32

    It's because the epsilon denotes transition without accepting anything. Thus the operation on state q2 and q3 will occur simultaneously. The operation on q3 will fail multiple times until it reaches the mid position of the palindrome(if it is indeed a palindrome) and will reach the final state at least once if it is a palindrome. Just think of how a recursion works [if you are a programmer ; ) ] . All the pop operations are basically taking place on q3 after every update(or push operation) of the string on q2.
    I know i really suck at explaining things. But I really can't give a better explanation of it ! :3
    Btw, superb explanation again sir !!!

    • @gooseberry_disliker
      @gooseberry_disliker 9 днів тому +1

      this is an incredible explanation, i wasn't able to pick up on this before. thanku sm!!

  • @Umar-bn5vk
    @Umar-bn5vk 4 роки тому +10

    You heard the question of my heart...lots of love ❤️

  • @MohdAdnan-qs3th
    @MohdAdnan-qs3th 7 років тому +26

    I really appreciate your work Neso Academy, its very interesting to learn by ur channel, but its not possible for me to like or comment on each video...
    But here i wanna say Thanks a lot, ur method of teaching is very good n very effective. I'm able to score good marks 😁😁

  • @hadipawar2539
    @hadipawar2539 6 років тому +220

    I need to know how u designed it what are the steps involved? in each video the diagram just appears out of nowhere and you explain the diagram. I know how to dry run a given diagram i want to be able to make that diagram when a particular language is given!!!!!!

    • @shivangraina9698
      @shivangraina9698 5 років тому +36

      Don't be so rude. Please watch previous videos man.

    • @princedivyanshu
      @princedivyanshu 5 років тому +30

      You have to figure it out using your working brain, using the information given in earlier videos. Please respect the efforts of the video maker.

    • @thestar001Official
      @thestar001Official 2 роки тому +29

      Y'all shouldn't lash out on this guy. I was about to make the same comment..(tho maybe not the way he said it).
      But, at least the tutor should walk us through the whole thought process of the diagram, rather than the way the complete diagram just appears and then he explains it.
      This is not to downplay how explanatory his videos are at all. He's a great teacher.

    • @novagames5719
      @novagames5719 2 роки тому +1

      @@thestar001Officialwell yes

    • @AnujPatil-xq7pk
      @AnujPatil-xq7pk Місяць тому +1

      Should explain how the diagram is created

  • @10_yogeshchandrapandey90
    @10_yogeshchandrapandey90 4 роки тому +2

    As, you have already mentioned that we will have Non-deterministic PDA, so we just have to think about a single possiblity of approaching final state, so we just looped q1 for both "a" and "b" and for q2, again we have looped the state for both "a" and "b".
    But for former half of the input string - we are pushing alphabets (a,b) in stack, and for later half - we are popping alphabets from the stack.
    Since for a string to be accepted, after pushing 'n' alphabets in stack, we must have 'n' popping statements. So that is how, we have accepted only "even strings" (strings having even no. of alphabets).
    And to attain the palindrome, we have pushed "a" for input "a" and "b" for input "b". That will ensure while popping alphabets in stack that, palindromic sequence must be present in later half of input sequence to get to the final state.
    Thanks @NesoAcademy.

  • @rockybrother921
    @rockybrother921 3 роки тому +4

    Exactly same question arise in my mind 13:28 . Even I feel that you are going wrong 😅 but now everything is clear.

  • @franzmkrumenacker3102
    @franzmkrumenacker3102 4 роки тому +7

    Thank you for the great lecture. I think it was a good idea to encourage people to disclose their ideas. Many of them are wrong, but at least they are funny.

  • @LordSarcasticVlogger
    @LordSarcasticVlogger 5 місяців тому +1

    Thank You Mam!
    I really liked your explanation 🔥🔥.
    Keep it up,NesoAcademy👍👍

  • @Jay-ro7zu
    @Jay-ro7zu 5 років тому +5

    1. first push Z0 onto stack
    2. check the input a or b, if input a push onto the stack or if b do the same.
    3. he makes e , e -> e for going to another state.
    4. check other inputs, if the input a or b is topmost element of the stack, popped of the stack.
    5. e, z0 - > e. popped z0 of the stack.
    6. your stack is empty and string is also completed.
    correct me if i'm wrong. Thank you :)

  • @Adil-dp4ll
    @Adil-dp4ll 10 місяців тому +7

    "but how would we know that we reach the mid point" this was the question that got my teacher and she said she will look into it.

    • @adityamore90
      @adityamore90 18 днів тому +1

      lol, how do such teachers get degree in the first place

  • @vivekvasudevan6248
    @vivekvasudevan6248 7 років тому +4

    It is non-deterministic or probabilistic as the even length can be random . The reason is that string lengths are random even numbers. NDPAs can be adjusted through epsilon transition. But, based on this If you were to draw a deterministic PDA, then (a) You wouldn't want to start with a stack bottom symbol $/Zo as it requires an epsilon transition. (b) You may however pop an empty string or in other words pop an epsilon, while pushing a new stack symbol (c) Make the stack empty without and/or reach the final state (d) Also design your deterministic PDA such that the stack can't be emptied for those strings which aren't even palindromes (e) Unfortunately,a one-size-fits-all deterministic PDA is hard to draw in a transition graph if the alphabet consists only of two letters like {a,b}, as epsilon is disallowed as a input symbol AND all the transitions are required to be defined unlike a NPDA. Hence you have to generate Deterministic PDAs for strings of each even length starting from minimum string of length 2(for aa and bb), length 4( aaa,bbbb,abba,baab)...and so on for length 6 to whatever even length you want)

  • @shekhardeshmukh5361
    @shekhardeshmukh5361 7 років тому +4

    Not any in the world like you sir very nice

  • @jackli5926
    @jackli5926 6 років тому +3

    THANKS A LOT !!!!!!!! I was stucked by the problem for almost two weeks when I was reading a book about theory of computation, this vedio really helped me !!!!

  • @kidcoder5703
    @kidcoder5703 7 років тому +104

    How will the machine know we have reached the middle of the stack?

    • @mehuljain2110
      @mehuljain2110 7 років тому +11

      It is in the next lecture.
      see 13:11

    • @wessbl
      @wessbl 5 років тому +31

      To answer quickly, it won't know. It will follow all paths that are still valid, so multiple options will be active because epsilon transitions allow this. Eventually, if it crossed the middle too quickly or too late, it will terminate that option either when it evaluates the stack or doesn't reach a final state. As already mentioned, the next lecture goes into this.

    • @sahil-7473
      @sahil-7473 3 роки тому +1

      That’s becoz this is non-deterministic pda. So there are multiple way to reach and ultimately it will accepted at the end.

  • @ooltra7323
    @ooltra7323 3 роки тому +40

    Who is the teacher for the automata series? I like him and his teaching style: structured, gradual.

  • @abhayxoxo
    @abhayxoxo Рік тому +2

    nice explanation love from chandigarh university 🦋🦋❤❤

  • @surajghatal190
    @surajghatal190 3 роки тому +1

    your teching technique is extraordinary thanks lot

  • @anushreevirtualgaming226
    @anushreevirtualgaming226 2 роки тому +2

    For determining the middle of palindrome , i guess in the question itself it is given that w represent the first half of the string and wr represent the remaining half string .

  • @mo2bel
    @mo2bel 7 років тому +32

    The above PDA works fine only with w = (a+b)* not with (a+b)^+

    • @aaronlouielagazon6053
      @aaronlouielagazon6053 7 років тому +6

      agree

    • @subhrojeetsaha6828
      @subhrojeetsaha6828 7 років тому +1

      Not a completely generalized solution !

    • @9ShivamSharma
      @9ShivamSharma 7 років тому +2

      true

    • @SeckinnArslann
      @SeckinnArslann 5 років тому +1

      Yes because he assumed reaching mid point on q2 state with blank input. But without assuming anything can't we do this with PDA?

    • @gyanig8501
      @gyanig8501 4 роки тому

      no dude. (a+b)* includes epsilon, which is odd in itself. Hence, (a+b)* removes the palindromes of odd probability completly. Say if I am wrong.

  • @lovesharma4344
    @lovesharma4344 7 років тому +4

    12:12 we just checked the middle of the stack, just forget that we are constructing a PDA for even palindrome just forgot, you have two conditions to push the number in the stack but at 12:12 the symbol A, we didn't push it because we have to check A,A->E,but at this time why we don't follow the 2nd condition that is B, B->E, because we have B, at topmost in our stack so it may be popped out.
    at 9:16 we first checked the 2nd condition that is B, B->E, so at 12: 12, why we gave the priority to A, A->E,,,,, if we checked this condition B, B->E, we poped the b in our stack because it is the topmost element ./////

  • @pranitgore9806
    @pranitgore9806 19 днів тому

    q2 is going to work only when the stack is empty and does not contain any 'a' or 'b' values. Hence, when equation is half complete, there will be an 'a' or 'b' in the stack and hence, system will proceed to q3.

  • @anthonyvenable7867
    @anthonyvenable7867 3 роки тому

    Thanks for the vid, saving my life.

  • @amankh9357
    @amankh9357 Рік тому +4

    in case of abab if i choose to input b instead of a at q3 then i should be able to pop b from stack.. then why is it not considered?

  • @summussaer501
    @summussaer501 3 роки тому +18

    I don't see how that pda is for (a+b)^+ and not for (a+b)^* because it accepts the empty string too

    • @A_Myth963
      @A_Myth963 7 місяців тому +1

      yeah man, same doubt

    • @sykelyte
      @sykelyte 5 місяців тому

      @@A_Myth963 epsilon is a 0 len string. 0 is even hence accepted

  • @thankyouthankyou1172
    @thankyouthankyou1172 4 роки тому +5

    I like this channel

  • @sravika4026
    @sravika4026 2 роки тому

    what an explanation sir woowww simply awesome 👏👏👏👏👏 thank you so much 😇

  • @danteeep
    @danteeep 5 років тому

    you re an excellent teacher !!!! better than my lecturer anyway

  • @dukegaming2231
    @dukegaming2231 6 років тому +2

    You said (at 3:17) positive closure means it must not contain empty symbol or €, but your PDA design has €mpty symbol

    • @Uniquevibers944
      @Uniquevibers944 5 років тому +1

      € has a different reason here. It means no element is popped from the stack.
      Pls go thru the previous 2 lectures for better understanding.

    • @marionsebastian7098
      @marionsebastian7098 2 місяці тому

      @@Uniquevibers944 but it still accepts epsilon as an input you can check it if you want,and that shouldn't be possible

  • @nD-ci7uw
    @nD-ci7uw 4 роки тому +1

    About question: We don't know if we are in the middle of automata, but just go into two directions simontinsly on every input, then it would be checked at the end

  • @zahreddinesoualem3213
    @zahreddinesoualem3213 6 років тому +2

    in this string abaaba : I think in the state q2 we have to add a,epsilen,b and b,epsilen,a to our state q2

  • @TuminSharma
    @TuminSharma 6 місяців тому +6

    NO 🙅‍♂ LEMON 🍋NO 🙅‍♂ MELON 🍉

  • @Apoorvpandey
    @Apoorvpandey 3 роки тому +3

    It should accept "abab" as well?

    • @If-nonif
      @If-nonif 10 місяців тому

      No, it should not accept because the reverse order is totally different from the actual order
      abab→baba not again as abab

  • @Madhu-vy3vr
    @Madhu-vy3vr 8 місяців тому +1

    How will it whether it reached the mid point of the stack?

  • @karthiksiva3364
    @karthiksiva3364 5 років тому

    Vocabulary and accent are awesome

    • @generic_cat
      @generic_cat 5 років тому +1

      Are you joking? His vocabulary is actually terrible.

  • @mayankdubey5997
    @mayankdubey5997 6 років тому +1

    I watched about all video sirr nice Experience & thanks a lot

  • @ayondas9318
    @ayondas9318 Рік тому +1

    you should have draw the state diagram step by step... that would lot easier to understand ☺☺

  • @durasaksham
    @durasaksham Рік тому +2

    Isn't this PDA supposed not to accept epsilon string since language is positive closure? but it seems it's accepting empty string too?

  • @mrm.makhubu1748
    @mrm.makhubu1748 Рік тому

    Its inherently an NFA, so it tries all possibilities, half is after first symbol and fails, half is after second symbol and succeeds. Coz there exists at least one path that accepts it passes in the case of abba....
    In the case of abab it would still fail after second symbol, then try after 3rd i.e and fail and try after last symbol and still fail. With no more possibilities will finally accept defeat and conclude it just will never accept abab.

  • @millenniumbismay382
    @millenniumbismay382 7 років тому +36

    Ohk! So the thing is a machine cant decide when it is in the middle of a string. Rather it checks as if each character encountered to be the middle of the string. The NULL transition is not to move to Q3 in the middle, rather it is to check for multiple transitions. For each character the PDA undergoes multiple transition, to be specific two transitions, and whichever suits it further, it carries on in that path. NESO Academy is great but these minor mistakes can defy the understanding of students. Please rectify this in the video.

    • @robbybnl1870
      @robbybnl1870 7 років тому +1

      thanq you so much

    • @9ShivamSharma
      @9ShivamSharma 7 років тому

      hmm how will a machine know it is in the middle of something !

    • @millenniumbismay382
      @millenniumbismay382 7 років тому +4

      Well check the next tutorial... there is a better form of representation :)

    • @sahayayush987
      @sahayayush987 7 років тому +2

      even my teacher studies from neso academy....so we have no other choice but to studies some wrong concepts to score marks in the examination

    • @atcggcta385
      @atcggcta385 6 років тому +4

      hmm, you did not watch the whole video did you

  • @afzalozil9734
    @afzalozil9734 6 років тому +2

    do we have to design the machine as such or will it be given in the question? coz you just go straight away to a machine you have drawn and that leaves a part unattended

  • @vineetsharmat2472
    @vineetsharmat2472 5 років тому +3

    this machine is also accepting epsilon as an input which is not in language .

    • @EFlame01
      @EFlame01 5 років тому

      Vineet Sharma t24 epsilon just means nothing is the input, being popped or being pushed, in the case it’s just a representation, but it’s not doing anything to the stack.

  • @seymatezcan4058
    @seymatezcan4058 4 роки тому +1

    YARIN FİNALİM VAR KONUYU ÖĞRENDİM ALLAH RAZI OLSUN

  • @ishaangupta1205
    @ishaangupta1205 4 роки тому +2

    Video starts at 4:19

  • @mhmdmswi2437
    @mhmdmswi2437 5 місяців тому

    Does this implementation accept empty strings by reading only epsilons?

  • @hhello_world
    @hhello_world 2 роки тому +1

    how minimum 1 letter property is implemented in this PDA?

  • @darwinthomas3361
    @darwinthomas3361 28 днів тому

    for this question if we push for every 2 different elemtn and pop for different element isnt it a better and easier answer

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 3 роки тому +1

    Thank you..

  • @DxSProductionsHD
    @DxSProductionsHD 7 років тому +5

    I am not sure if this PDA is correct. Can you really just ASSUME that we are in the middle of the string? How do we assume it? If someone is running an input string through this PDA given, how do they ASSUME they are in the middle of the string? For those watching this video, the ideas and theory makes sense but do not ASSUME anything because it will be ambiguous to whoever looks at your PDA.

    • @blakefeucht960
      @blakefeucht960 6 років тому

      We don't actually need to know when we are in the middle of a string because of the nondeterminism of a PDA. It is like an NFA, where as long as one path of the string leads to an accept state, it will be accepted. The epsilon transition from q2 to q3 allows us to jump to the part of the PDA where we pop symbols at any point, while also staying it q2.

    • @mojjmo950
      @mojjmo950 6 років тому

      key point : as long as one path of the string leads to an accept state, it will be accepted.

  • @ishaankanwar5316
    @ishaankanwar5316 6 років тому +44

    we are dumbos we dont have any idea how u did this but this would be probably my last time seeing this lecture #endSemsAreHere

  • @CuriousSarah
    @CuriousSarah Рік тому

    I think we can just know middle by scanning the string and diving by 2so knwo I can move to next state n/2+1 element?

  • @alonkagan9915
    @alonkagan9915 6 років тому +1

    Thanks, very helpful!

  • @divyagayathritalla3255
    @divyagayathritalla3255 2 роки тому

    small query! If want to convert a grammer to PDA , should the grammer definately in GNF?
    cause I have seen other method for convertinng Non- GNF to PDA

  • @AlexKiraly
    @AlexKiraly 5 років тому +2

    These are really good tutorials. Keep it up!

  • @shamanthrajreddy1230
    @shamanthrajreddy1230 2 роки тому

    Great tutorial!

  • @yeslimshady
    @yeslimshady 8 місяців тому

    for those who are wondering how machine will get to know about the middle, so machine will just guess and that's why here the non-determinism comes into the role.

  • @DrMRobinsonJoelIT
    @DrMRobinsonJoelIT Рік тому

    Good question. How we find out it is in midway?

  • @random_2016
    @random_2016 8 місяців тому

    It will work for empty string as well right?

  • @yuvrajagarkar8942
    @yuvrajagarkar8942 Рік тому

    how will the machine know, if it's reached at the middle, so as to pass Epsilon???

  • @Deto-q1v
    @Deto-q1v Місяць тому

    Okay? But then there is midpoint if it is even. What if it is an odd symbol? Like RACECAR? what should I assume the midpoint is?

  • @AbdUllahKhan-qx8ml
    @AbdUllahKhan-qx8ml Рік тому

    How many states are required for a given string? Is there any rule for determining beforehand the number of states that will be required to verify if a given string falls within the language? Please explain this.

  • @ShubhamShoora-e9q
    @ShubhamShoora-e9q 2 місяці тому

    Do you think your logic is correct. I have a doubt what if the strings start with b then it never be able to proceed because in our case string should always start with a but our language didnot have strings that are just starting with a

  • @Dinesh_Cine
    @Dinesh_Cine 6 років тому +10

    Sir, but u didn't taught how to design the PDA.

  • @amaranathareddyp6158
    @amaranathareddyp6158 7 років тому +1

    SIr, DPDAs are realistic, we can construct a machine but where as NPDA not. If we are not able to convert from NPDA to DPDA what is the use of NPDA

  • @learningpoint19
    @learningpoint19 3 роки тому

    what is this ??? anyone let know yar i never get the point , anyone if have idea please give me response???

  • @c.d.premkumar6867
    @c.d.premkumar6867 2 роки тому

    11.53 how do we know whether we have reached the mid point of the string ?

    • @ko-Daegu
      @ko-Daegu 2 роки тому

      yeah that makes no sense at all you can't just assume

  • @mustafabeyceoglu6303
    @mustafabeyceoglu6303 4 роки тому

    this machine will accept strings like
    "a^n" and "b^n" where n is even integer
    in example: "aaaaaa" or "bbbbbb"
    but in Language ww^r is not match with these strings can you explain this pls

    • @brnina1
      @brnina1 4 роки тому

      In the first case w = aaa and w is more than one sign, in the second case w = bbb and one more w is also more than one sign. Both are even palindromes on the alphabet {a,b}. I think it matches, but maybe I don't understand something.

  • @ritika_kr
    @ritika_kr 2 роки тому

    Can I get a vdo for accepting all the plaindrome

  • @charanmane4178
    @charanmane4178 11 місяців тому

    I understood how do we know that we reached the middle states, firstly the input symbols we used in the transition diagram are all pushed in to the stack and then we can find out we reached to the middle state because all input symbols we used are already pushed and there is nothing to push ,and by reaching the next state we can pop the remaining string and can reach to the final state.
    Is this true
    But this is my guess ,after watching this video

  • @mansoormohmand5852
    @mansoormohmand5852 6 років тому

    It can be like :
    L= {wcw^r | w=(a+b)^+ }
    And the mid point of our string would be the transition :
    c,a/a
    c,b/b
    c,z0/z0
    means if a or b or z0 is the top most element then dont do anything just cross.
    Thats what i got from my mind

  • @businessshopping
    @businessshopping 7 років тому +2

    Nice....plz Upload fast more videos

  • @garvitkandpal3225
    @garvitkandpal3225 4 роки тому

    You are amazing, I was wondering that how machine will be able to identify we have reached the middle part and then you said about the query instantly. That was amazing.

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 4 роки тому

    Thankyou sir

  • @hasanmoody6340
    @hasanmoody6340 11 місяців тому

    is it work for odd palindroms? (aba i guess)

  • @shubhrohilla1257
    @shubhrohilla1257 6 років тому

    -_- I stopped the video at the palindrome example!! and literally scratched my head for like half an hour!! just to figure out HOW THE HELL THE PDA KNOWS THAT IT IS IN THE MIDDLE OF THE STRING finally when after not getting any answer i decided to just move on assuming that its some stupid mistake!! and right after I played the video it said that I must be having the doubt I had!!!! I realized I wasted my time thinking about that doubt and YOU SHOULD REALLY PUT ATLEAST AN ANNOTATION IN ADVANCE SO WE DON'T WASTE OUT TIME! *so angry right now*
    BTW thank you very much really appreciate your work HATS OFF! and really grateful to you thanks again!

    • @shubhrohilla1257
      @shubhrohilla1257 6 років тому

      In the end I guess there was a good side,, bc of the brainstorming and discussing it with my friends.. I will remember this for a long time .. but regardless there should be an annotation at the start of that (doubt) example .

    • @arun-poudel
      @arun-poudel 24 дні тому

      Same after 6 years

  • @sreyans01
    @sreyans01 3 роки тому

    How can you assume by yourself that it has reached to the middle of string, instead there should be a better algorithm to be proposed as u showed in turing machines

  • @37parikshitjadhav88
    @37parikshitjadhav88 2 роки тому

    How to design the PDA pls explain?

    • @novagames5719
      @novagames5719 2 роки тому

      It's 5 year old video for your info

  • @MayankSharma-cp6yu
    @MayankSharma-cp6yu 6 років тому +2

    Sir, if on Q3 it checks for input 'a' first then in the same way on state Q2 it will check for pushing of input 'a' first always..
    Then we'll don't have any even palindrome like 'baab' ?

  • @suborno9249
    @suborno9249 2 роки тому

    But how can i construct this machine ?

  • @sanketkadam1822
    @sanketkadam1822 7 років тому +32

    pda explanation does not satisfying,improvement is needed

  • @rupeshdoneriya4666
    @rupeshdoneriya4666 3 роки тому

    How do PDA knows that the middle of the string is reached?

  • @shinigamiryuk4183
    @shinigamiryuk4183 3 роки тому +1

    how pda knows we are at middle of string?

  • @Luffaalsadie
    @Luffaalsadie 6 років тому

    Great video! But isn't this NPDA accepts the empty string while it was a condition that the word set cannot be empty?

    • @STxFTW
      @STxFTW 6 років тому +1

      Yes you're correct. To solve this, just add a, e -> A and b, e -> B to the transition between q2 and q3, that way it wont accept the empty string. He even made mistakes on the video prior to this unfortunately

    • @prantobhoumik6586
      @prantobhoumik6586 4 роки тому

      @@STxFTW we just add a state q such q2-->q for a,b input then q -->q3 for € input

  • @pawansmy1844
    @pawansmy1844 5 років тому

    how this NPDA will Determine it is at the center of the String ???

  • @subhamsubhasispatra
    @subhamsubhasispatra 5 років тому +2

    How I will in the middle of the string ..??
    E.g - " aaaa " is the string ..How this will know when to push and when to pop the element from the stack ..???

    • @allexy100
      @allexy100 5 років тому

      Every time it reads an input symbol it "guesses" it is i the middle by using the epsilon transition from q2 to q3. This is a non-deterministic machine so a new instance is created where one instance remains on q2 and pushes, and the other instance goes to q3 and pops. If it wasn't in the middle then the new instance will be rejected at some point since no valid transitions would be available and the original instance will remain until it eventually does reach the middle. Its a bit hard to explain but how it help.

  • @sadanandh8785
    @sadanandh8785 6 років тому

    how to check middle position of string

  • @easymaths345
    @easymaths345 6 років тому

    nice video

  • @mdsakif7521
    @mdsakif7521 5 років тому

    The questions in our exam asks us to design a PDA, not to explain a PDA.... You are just explaining a PDA..., From where has this design come from, how can we construct it...??

  • @prooAG
    @prooAG 5 років тому +1

    Guys he explained everything in next part....

  • @coderistan
    @coderistan 3 роки тому

    Nice

  • @shrawan1980
    @shrawan1980 6 років тому

    This design is not ok because how machine will decide processing is at middle of string. Every capabilities must inbuilt with specific state. That is not here so it is wrong. How machine will decide we have to take null from input ant not pop from stack.

    • @alshbsh2
      @alshbsh2 5 років тому

      Dude this is a NPDA design not a DPDA
      it's for us humans
      if you want the machine to understand it you must covert it to DPDA :)

  • @prathampatel3259
    @prathampatel3259 16 днів тому

    what about the odd palindrome there exist's no middle

  • @hasanmetin8085
    @hasanmetin8085 Рік тому

    palindrom harici örnek niye çözmemişsiniz?

  • @aravinds6503
    @aravinds6503 2 роки тому

    length of input/2 is the mid point

  • @p.vinodkumar9219
    @p.vinodkumar9219 7 років тому +1

    Still how many videos left to complete the course, please reply. And in how many days you expect to complete the course?

  • @trywellwashington7506
    @trywellwashington7506 4 роки тому

    pop=lift if there, push=drop

  • @sudhanshuakarshe6263
    @sudhanshuakarshe6263 6 років тому

    In both states q2 and q3,top of stack will be compared if we get epslon then we consider state q2 else we go to state q3