Postfix to Infix Conversion | Examples | Data Structures | Lec-17 | Bhanu Priya

Поделиться
HTML-код
  • Опубликовано: 19 июл 2018
  • Example to convert Postfix expression to Infix using bolean expression

Комментарии • 114

  • @swamichowhan
    @swamichowhan Год назад

    Thank u mam it's really very helpful for everyone who got classes boring by the Teachers.We clearly understand by your class mam, Thank you very much mam

  • @ProudiPhoneOwner
    @ProudiPhoneOwner 5 лет назад +7

    Thank you so much for the clear explanation!!!

  • @Beatsbasteln
    @Beatsbasteln Год назад +3

    i really like your videos both on postfix to infix and infix to postfix conversion, but what makes this difficult to me is that you only use binary operators with the common associativity rule and you avoid x, which is why you can evaluate the expression everytime an operator occurs

  • @songanon
    @songanon 4 года назад +38

    For those confused on what to do first when it comes to - and / . Just remember how it got to the stack to begin with. Take this simple infix expression of 5- 4. When converted to postfix is 54- . You placed the 5 first in the stack, meaning it will be the last thing taken out. Hence when converting this the 5 will be at the bottom. So when taking two out of the stack , always use the last one first :). That also works with division. Addition and multiplication obviously doesn't matter but technically the same applies

    •  4 года назад

      please

    • @abirmazumdar2833
      @abirmazumdar2833 2 года назад +1

      Thank you bro

    • @JainHruday
      @JainHruday 2 года назад

    • @lolpro5922
      @lolpro5922 Год назад

      Thank you 👍🏻

    • @songanon
      @songanon Год назад

      Also ! When popping the last two of the stack imagine your creating another stack when your popping , this is why it seems like the bottom value is used first , because it is now atop of a new stack you created

  • @darkben20
    @darkben20 5 лет назад +2

    thank you, that was very explanatory

  • @shashankthapa659
    @shashankthapa659 5 лет назад +1

    The only thing i think is" Just mention the important points to the top left or the top right corner that would be great......."
    Got the overall concept.
    Thank You.

  • @MrAbbasalrassam
    @MrAbbasalrassam 5 лет назад

    You are the best , thank you a lot please make more

  • @whimsicalkins5585
    @whimsicalkins5585 Год назад

    loved your explanation

  • @usmanbi9198
    @usmanbi9198 3 года назад

    Tnq u so much ,, for Clear explanation Mam

  • @vanamgangireddy6067
    @vanamgangireddy6067 3 года назад +11

    there is confusion regarding use of A-B or B-A as of me the clear explanation is if we encounter an operator then pop two elements A,B i.e., B->top element of stack, A->next to top element and result=A operator B (lowerone operator upperone)

    • @nithindreemendis875
      @nithindreemendis875 3 месяца назад

      Yeah the bottom one is supposed to come first. For example is a stack has 10 (at the top) and 18 next then you do it as B - A, so its 18-10.

  • @afreenyousaf9438
    @afreenyousaf9438 5 лет назад +3

    You saved my finals.. Thanks alot

  • @sandhyarajput1096
    @sandhyarajput1096 10 месяцев назад +1

    ❤️ thank you very much ❤️mam
    Radhe Krishna jiii 🙏🙏 Hari bolo ❤️

  • @kiranmallikarjun8618
    @kiranmallikarjun8618 5 лет назад

    Thanks but is there any vedio on conveting postfix to prefix??

  • @Rakesh36oi
    @Rakesh36oi 5 лет назад +84

    Mam it is very helpful.... thanks....but you did little mistake at line no 9. at the line no 8 you have written ((D+E)*F) and at the line no. 9 you have written ((D+E*F)) which is completely wrong. answer should be (A-b)/((D+E)*F)

  • @ravisingh3959
    @ravisingh3959 5 лет назад +1

    Thank you 👍👌

  • @KundanKumar-jv7uy
    @KundanKumar-jv7uy Год назад

    explanation..great

  • @maheswarig7405
    @maheswarig7405 Год назад +9

    But according to stack, the output should be, (F*(D+E))/(B-A)

  • @musscullen4571
    @musscullen4571 5 лет назад +1

    Thank you madam :)

  • @chanakyakoilada204
    @chanakyakoilada204 5 лет назад +20

    Tq madam itsvery useful for me but i think there is a mistake at 3rd line too at 2nd line u said (A-B) according to the ex. U have give (10-2) i think so it should be ( B-A)
    could you please tell me the technique i am so confused

    • @stankafan6688
      @stankafan6688 4 года назад

      bro it will be (A-B) only that is the lower operand - upper operand

    • @chanakyakoilada204
      @chanakyakoilada204 4 года назад

      @@stankafan6688 ok mam tq for clarity

  • @MohanKumar-qe6ng
    @MohanKumar-qe6ng 9 дней назад +1

    Thank you so much 🙏

  • @abhikumar4332
    @abhikumar4332 4 года назад +1

    Thank you mam.

  • @ctrainer1195
    @ctrainer1195 5 лет назад +1

    thank you madam'

  • @toxicthor7346
    @toxicthor7346 4 года назад

    Thanks madam ji😍😍😍

  • @syedbilal7545
    @syedbilal7545 5 лет назад

    Tnq u sooooo much!!!!!

  • @praveenreddysura4260
    @praveenreddysura4260 4 года назад

    super explanation

  • @__kurious_k__
    @__kurious_k__ 5 лет назад

    Thank u...

  • @ShortsAddict382
    @ShortsAddict382 3 года назад

    Nice explanation mam

  • @014-neerajajadhav3
    @014-neerajajadhav3 2 года назад

    Madam what is the solution for the A+B in The Stack?? When the symbol is +?

  • @proudtobeindian1947
    @proudtobeindian1947 5 лет назад

    Thanks mam

  • @tanzeelaghafoor5210
    @tanzeelaghafoor5210 2 года назад

    Thank you mam😇😇

  • @sanjayvel6763
    @sanjayvel6763 Год назад +1

    Super mam😊

  • @htetmyatmoe8594
    @htetmyatmoe8594 5 лет назад

    thanks🙏

  • @PhamousBoi
    @PhamousBoi 7 месяцев назад

    Thank you so much

  • @KshitijSoni-qb4lc
    @KshitijSoni-qb4lc 9 месяцев назад

    thank you maam so much

  • @Navneetkumar-je7jo
    @Navneetkumar-je7jo 5 лет назад

    thanks miss

  • @engineerskikaksha
    @engineerskikaksha 3 года назад

    Thanks maam

  • @rambogaming9508
    @rambogaming9508 3 года назад

    love you guys

  • @therinmody7226
    @therinmody7226 2 года назад

    Thank you

  • @mrinmoyhalder7293
    @mrinmoyhalder7293 5 лет назад +3

    If A < B then (A-B) will be -ve, does stack allow -ve element. suppose in a conversion of Postfix to Infix consists of numbers it will create a confusion that we have to perform (A-B) or (B-A), I mean in which order the element will be popped when seeing a ' - ' sign.

    • @noorfatima8524
      @noorfatima8524 5 лет назад

      Mrinmoy Halder ruclips.net/video/u3paQa8KXu0/видео.html

  • @__SIVARANJANIR
    @__SIVARANJANIR 3 года назад +1

    How to putting the bracket

  • @sumukhsonkar3136
    @sumukhsonkar3136 3 года назад

    thanku

  • @mahmoudeid7107
    @mahmoudeid7107 3 года назад

    thank you mame

  • @swamypediredla
    @swamypediredla 5 лет назад +1

    please said time complexity of evaluating prefix,postfix, infix..............plzzzz...................

  • @sumansvoice7240
    @sumansvoice7240 5 лет назад +1

    Super

  • @Saibhargavi-be4sq
    @Saibhargavi-be4sq 10 месяцев назад +1

    Tq

  • @khuramkhalid5396
    @khuramkhalid5396 10 месяцев назад

    thank you

  • @diptanshuprasad7946
    @diptanshuprasad7946 8 месяцев назад +1

    How c operand came there ma’am

  • @aashishshah1187
    @aashishshah1187 4 года назад +2

    2:11 operannd😄😄

  • @InsaneH
    @InsaneH Год назад

    LEGEND

  • @taciturn9027
    @taciturn9027 3 года назад +2

    If stack contains elements A and top as B,u wrote A-B then if there is 2 in A's place and 10 in B's place...how can u write 10-2? 🤔🤔
    From A-B....u should write 2-10 right?

    • @ashajyothisagireddy8090
      @ashajyothisagireddy8090 Год назад

      In postfix expression we have to take top of the stack is operator 2...but while evaluation consider
      op1 - op2...

  • @danishhussain8377
    @danishhussain8377 Месяц назад

    Mam, would you please check the steps(8 and 9)? I'm so confused about which one is correct, it's
    (A-B)/((D+E) * F) or (A-B)/((D+E * F))?

  • @yashvarma9315
    @yashvarma9315 3 года назад

    ty

  • @mahiransh9894
    @mahiransh9894 5 лет назад +3

    Hello mam,
    I wanted to know about how to use $ operations , what is the priority and what is function of $ operator in the given postfix expression:
    6 2 3 + - 3 8 2 / + * 2 $ 3 +

    • @neoshot101
      @neoshot101 4 года назад +3

      It's considered a exponential

  • @geg375
    @geg375 4 года назад +1

    You missed putting the bracket !!

  • @pankaj_girish
    @pankaj_girish 5 лет назад

    👏👏👏👏👏👏

  • @abdiladifmohamud5957
    @abdiladifmohamud5957 2 года назад

    Why is it that the madam used B operand A for all steps but the last step she used A operator B. what I mean is she operated what was on top of the stack with another but the last step she operated what was at the bottom with the other.

  • @viveks9377
    @viveks9377 4 года назад

    Which university syllabus

  • @MohammadZulfikar
    @MohammadZulfikar 5 лет назад +79

    Correction**:
    Real in-fix is: (A-B) / ((D + E) * F)
    N.B. Correct me if I am wrong.

  • @vineetayadav2600
    @vineetayadav2600 3 года назад +1

    There is something mistake at last

  • @molamola8305
    @molamola8305 5 лет назад +2

    Its wrong conversion.Convert it back into prefix and you won't get the same.

  • @killer-sf7sg
    @killer-sf7sg Месяц назад

    good

  • @ashaf_khan_
    @ashaf_khan_ 3 месяца назад +1

    There's a mistake in the final ans. The ans. will be (A-B)/((D+E)*F)

  • @rishuyadav9667
    @rishuyadav9667 4 года назад +2

    Sab galat bta ri hai...B-A likh kr A-B calculate kr ri hai ....plzz dont give wrong info

  • @tiwariakash3098
    @tiwariakash3098 5 лет назад

    ans is : (A-B)/(D+E)*F

  • @monkee2024
    @monkee2024 Год назад

    5:46 correct the solution

  • @xMingNgw
    @xMingNgw 4 года назад

    hay quá :)))

  • @ramukumarrony7602
    @ramukumarrony7602 2 года назад +2

    could have explained better

  • @mknewworld
    @mknewworld 5 лет назад +2

    5,3,+,2,*,6,9,7,-,/,-
    convert into infix notation

  • @vinovinodhini6212
    @vinovinodhini6212 5 лет назад +1

    aussam teaching

  • @mansikumari3917
    @mansikumari3917 10 месяцев назад +1

    Apki voice kaphi low hai

  • @AbdRbny
    @AbdRbny 5 лет назад +1

    Are madam samne dono page rakhna chahiye.koi kaise samjh payega.

  • @nawaraalobaidy7201
    @nawaraalobaidy7201 9 месяцев назад

    العراقيه الوحيده هنا 😅

  • @srushtibuch1964
    @srushtibuch1964 3 года назад +1

    This is the wrong answer...

  • @killer-sf7sg
    @killer-sf7sg Месяц назад

    islamia university BWP waly like krty jao

  • @bhaluentertainment6640
    @bhaluentertainment6640 5 лет назад +2

    firstly its AB not A-B

  • @Aniket-sc7fl
    @Aniket-sc7fl 4 года назад

    Sorry To Say,But it is wrong method.

  • @robintiple3384
    @robintiple3384 3 года назад

    Galat hai madam, paper fail kara dongi aap to kitno ka

  • @swethamedasani3364
    @swethamedasani3364 2 года назад +1

    Totally confused

  • @sushmitasiddharth4981
    @sushmitasiddharth4981 5 лет назад

    Unable to explain.....

  • @ashwanibaluni2998
    @ashwanibaluni2998 2 года назад

    Ye sikha rhi ho ya bss video banane se mtlb h ek pese ki video ni h

  • @attrey273
    @attrey273 3 года назад

    Wrong explanation

  • @zayaninamzz3187
    @zayaninamzz3187 2 года назад

    Apkey hath gandey hain