Evaluation of Prefix expression | Examples | Data Structures | Lec-21 | Bhanu Priya

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • evaluation of prefix expression using stack

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

  • @balajiganesh4246
    @balajiganesh4246 10 หลายเดือนก่อน +25

    3:17 I don't understand why it is not 8/16 but it is 16/8. in previous postfix video you took top of the stack as 2nd operand

    • @certifiedbeast5663
      @certifiedbeast5663 6 หลายเดือนก่อน

      same doubt bro....did you get the correct answer?

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

      Because it's reverse

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

      @@saikumaryadavkanakati6391 make 8 as 32 question is mistake it cant be slove with 8 by human

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

      This worng

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

    Hey i have a doubt in post fix u are dividing a number with different way. Like
    Here u did 16/8
    But in postfix u did 8/16. Check it

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

      This is prefix

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

      Yeah same me , but @Dhwani Saxena , she changes the pre to post .

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

      Video's answer is wrong.. Real one is 1.5..you can check it online..

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

      Bigger one will be divided or subtracted I think so

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

      @@lucifer_eats yes

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

    Please Please change the pen , I can't stand when I hear the sound of this pen scratching on the paper please ! you have a good explanation but the pen is huge issue

    • @SandeepSandy-vk6vo
      @SandeepSandy-vk6vo 5 ปีที่แล้ว +1

      😂😂😂😂😂

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

      Ohh my god ....I was always thinking I'm the only one who has this problem😹😹🤣

    • @harshareddy.t78
      @harshareddy.t78 ปีที่แล้ว

      I too have same problem bro

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

      I feel your pain bro

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

      Actually I found the solution for this prblm
      All you have to do is to Mute the video and all set.

  • @Lokesh-j7p
    @Lokesh-j7p 6 หลายเดือนก่อน +5

    7, thala for a reason ❤

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

    when we enter 16 then according to your previous rule here will be 8/16 this is correct but here you have done 16/8 which is wrong according to me

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

      That is for postfix not prefix.
      In prefix we are reversing the expression that is why .

    • @fabs-dz3jz
      @fabs-dz3jz 5 ปีที่แล้ว +6

      rules become reverse in prefix, that was post fix

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

    thanku mam..... abhi abhi answer a raha tha mera 1 4 18 6 3 / + 5 / + ........par apke tutorial dekhne ke baad answer 3 aya....thanku mam......

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

    Thank you so much you explained very simple

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

    3:06 this is wrong. it should be 8/16 because at 3:26 in your previous video m.th-cam.com/video/84BsI5VJPq4/w-d-xo.html
    u have evaluated expression 12,4,/ to 12/4

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

    why 4-2 ????????????/ it will be 2-4

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

      in prefix its opposite postfix it seems... operand1 = pop(), operand2 = pop()

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

    its not 16/8 it should be 8/16 lower stack value operand upper stack value

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

    Keep making such helpful video's mam

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

    What should i do I just completed my 12th🤔😌

    • @akshat.jaiswal
      @akshat.jaiswal 2 ปีที่แล้ว

      I hope you chose well.

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

      Where are you now?

  • @Steve-o4d2j
    @Steve-o4d2j 7 หลายเดือนก่อน

    Very helpful! Thank you!

  • @frontend_devloper
    @frontend_devloper 4 หลายเดือนก่อน

    3:09 16/8 or 8/16

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

    hey guyz this explanation is wrong bcz it should be 2-4 =-2 instead of 4-2=2

  • @sk-nu9eo
    @sk-nu9eo 3 ปีที่แล้ว +3

    Evaluate prifix ex. +A/*B-CD-PR where (A=2,B=3,c=4,D=5,P=6,R=7)
    Any one can give the ans

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

    In the expression once given dollar symbol how to evaluate

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

    mam i have a dout in previous lecture u have done like if 2
    8
    you have done 8/2 but here you r doing
    16
    8
    here u r doing 16/8 mam y this

    • @certifiedbeast5663
      @certifiedbeast5663 6 หลายเดือนก่อน

      same doubt here.......did you get the explanation ?

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

    it was very help

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

    *63-41. Solve plz

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

    Division must be 8/16 = 0.5

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

      Please look into the first comment and reply then u will able to get the same.

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

      @@TheRoyalAdityaRaj Still, there's a wrong expression. Instead of 5+2, it should be 2+5.

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

    there should be 8/16...........your calculation is wrong

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

    Prefix haha its a postfix notation :D

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

    Sorry, but you are placing the operands with operators wrongly. it cannot be 16/8. It should have been 8/16. Check time 3:08

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

      Cause it's reversed

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

    😍 Maine try kiya n thn i hv got right answer.. thnxx mam😍

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

    mam plz give me code also

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

    wonderful

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

    So basically the calculation same as postfix right?

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

    🔥

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

    Easy explanation really helpful

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

    Tqs

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

    mam you are the best

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

    Awesome!!!!!

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

    just stop talking and you are good

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

    Very good teaching

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

    Galat hai

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

    Hats off mam

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

    pronounce to theek kr lijiye Aunty ji

  • @AshishKumar-kx5wm
    @AshishKumar-kx5wm 5 ปีที่แล้ว

    galat btati ho pdhana chor do