Example to convert Postfix expression to Infix using bolean expression
Пікірлер: 117
@songanon4 жыл бұрын
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
@abirmazumdar28332 жыл бұрын
Thank you bro
@JainHruday2 жыл бұрын
@lolpro5922 Жыл бұрын
Thank you 👍🏻
@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
@Rakesh36oi5 жыл бұрын
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)
@marchanselthomas5 жыл бұрын
even I'm wondering the same I got the same as you
@maheshbataria16425 жыл бұрын
Hmm it's mistake
@yasinl83074 жыл бұрын
U should have mistake capital B
@sabasadiq71134 жыл бұрын
Same here
@abhishekdhyani9347 Жыл бұрын
@@yasinl8307 😆
@vanamgangireddy60673 жыл бұрын
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)
@nithindreemendis8755 ай бұрын
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.
@maheswarig7405 Жыл бұрын
But according to stack, the output should be, (F*(D+E))/(B-A)
@umangsharma936310 ай бұрын
Vo prefix to infix ma hota hai
@chanakyakoilada2045 жыл бұрын
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
@stankafan66884 жыл бұрын
bro it will be (A-B) only that is the lower operand - upper operand
@chanakyakoilada2044 жыл бұрын
@@stankafan6688 ok mam tq for clarity
@Beatsbasteln Жыл бұрын
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
@ProudiPhoneOwner5 жыл бұрын
Thank you so much for the clear explanation!!!
@sandhyarajput109611 ай бұрын
❤️ thank you very much ❤️mam Radhe Krishna jiii 🙏🙏 Hari bolo ❤️
@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
@MohanKumar-qe6ngАй бұрын
Thank you so much 🙏
@shashankthapa6595 жыл бұрын
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.
@sandeepbgowda416811 күн бұрын
Having DSA backlog tomorrow, started studying now
@afreenyousaf94385 жыл бұрын
You saved my finals.. Thanks alot
@ashaf_khan_4 ай бұрын
There's a mistake in the final ans. The ans. will be (A-B)/((D+E)*F)
@MohammadZulfikar5 жыл бұрын
Correction**: Real in-fix is: (A-B) / ((D + E) * F) N.B. Correct me if I am wrong.
@090-jellabharath24 жыл бұрын
Yes u r right
@ansharora93313 жыл бұрын
You're right
@kamunikarthik96303 жыл бұрын
Yeah
@Shanu_11132 жыл бұрын
Yep
@sereiin1202 жыл бұрын
Yeah you are right
@mrinmoyhalder72935 жыл бұрын
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.
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 Жыл бұрын
In postfix expression we have to take top of the stack is operator 2...but while evaluation consider op1 - op2...
@MrAbbasalrassam5 жыл бұрын
You are the best , thank you a lot please make more
@danishhussain83772 ай бұрын
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))?
@KshitijSoni-qb4lc11 ай бұрын
thank you maam so much
@sumansvoice72405 жыл бұрын
Super
@ravisingh39596 жыл бұрын
Thank you 👍👌
@ShortsAddict3823 жыл бұрын
Nice explanation mam
@khuramkhalid539611 ай бұрын
thank you
@ctrainer11955 жыл бұрын
thank you madam'
@praveenreddysura42605 жыл бұрын
super explanation
@InsaneH Жыл бұрын
LEGEND
@tanzeelaghafoor52102 жыл бұрын
Thank you mam😇😇
@molamola83055 жыл бұрын
Its wrong conversion.Convert it back into prefix and you won't get the same.
@sumukhsonkar31363 жыл бұрын
thanku
@abdiladifmohamud59572 жыл бұрын
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.
@toxicthor73464 жыл бұрын
Thanks madam ji😍😍😍
@__SIVARANJANIR4 жыл бұрын
How to putting the bracket
@musscullen45715 жыл бұрын
Thank you madam :)
@killer-sf7sg2 ай бұрын
good
@engineerskikaksha4 жыл бұрын
Thanks maam
@vineetayadav26004 жыл бұрын
There is something mistake at last
@mahmoudeid71073 жыл бұрын
thank you mame
@swamypediredla5 жыл бұрын
please said time complexity of evaluating prefix,postfix, infix..............plzzzz...................
@yashvarma93153 жыл бұрын
ty
@geg3754 жыл бұрын
You missed putting the bracket !!
@diptanshuprasad79469 ай бұрын
How c operand came there ma’am
@ramukumarrony76022 жыл бұрын
could have explained better
@syedbilal75455 жыл бұрын
Tnq u sooooo much!!!!!
@__kurious_k__5 жыл бұрын
Thank u...
@014-neerajajadhav32 жыл бұрын
Madam what is the solution for the A+B in The Stack?? When the symbol is +?
@monkee20242 жыл бұрын
5:46 correct the solution
@Navneetkumar-je7jo5 жыл бұрын
thanks miss
@rambogaming95084 жыл бұрын
love you guys
@rishuyadav96675 жыл бұрын
Sab galat bta ri hai...B-A likh kr A-B calculate kr ri hai ....plzz dont give wrong info
@htetmyatmoe85946 жыл бұрын
thanks🙏
@kiranmallikarjun86185 жыл бұрын
Thanks but is there any vedio on conveting postfix to prefix??
@GSPmediaO28Күн бұрын
((A-B)/((D+E)*F)) final answer like hear
@tiwariakash30985 жыл бұрын
ans is : (A-B)/(D+E)*F
@pankaj_girish5 жыл бұрын
👏👏👏👏👏👏
@mahiransh98945 жыл бұрын
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 +
@neoshot1014 жыл бұрын
It's considered a exponential
@xMingNgw4 жыл бұрын
hay quá :)))
@mknewworld5 жыл бұрын
5,3,+,2,*,6,9,7,-,/,- convert into infix notation
@kaushikmondal99834 жыл бұрын
11
@viveks93774 жыл бұрын
Which university syllabus
@mansikumari391711 ай бұрын
Apki voice kaphi low hai
@nawaraalobaidy720111 ай бұрын
العراقيه الوحيده هنا 😅
@killer-sf7sg2 ай бұрын
islamia university BWP waly like krty jao
@srushtibuch19643 жыл бұрын
This is the wrong answer...
@vinovinodhini62125 жыл бұрын
aussam teaching
@AbdRbny5 жыл бұрын
Are madam samne dono page rakhna chahiye.koi kaise samjh payega.
@bhaluentertainment66405 жыл бұрын
firstly its AB not A-B
@Aniket-sc7fl5 жыл бұрын
Sorry To Say,But it is wrong method.
@ashwanibaluni29982 жыл бұрын
Ye sikha rhi ho ya bss video banane se mtlb h ek pese ki video ni h
@swethamedasani33642 жыл бұрын
Totally confused
@robintiple33843 жыл бұрын
Galat hai madam, paper fail kara dongi aap to kitno ka