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

  Рет қаралды 451,069

Education 4u

Education 4u

Күн бұрын

Example to convert Postfix expression to Infix using bolean expression

Пікірлер: 117
@songanon
@songanon 4 жыл бұрын
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 жыл бұрын
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
@Rakesh36oi
@Rakesh36oi 5 жыл бұрын
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)
@marchanselthomas
@marchanselthomas 5 жыл бұрын
even I'm wondering the same I got the same as you
@maheshbataria1642
@maheshbataria1642 5 жыл бұрын
Hmm it's mistake
@yasinl8307
@yasinl8307 4 жыл бұрын
U should have mistake capital B
@sabasadiq7113
@sabasadiq7113 4 жыл бұрын
Same here
@abhishekdhyani9347
@abhishekdhyani9347 Жыл бұрын
@@yasinl8307 😆
@vanamgangireddy6067
@vanamgangireddy6067 3 жыл бұрын
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 5 ай бұрын
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
@maheswarig7405 Жыл бұрын
But according to stack, the output should be, (F*(D+E))/(B-A)
@umangsharma9363
@umangsharma9363 10 ай бұрын
Vo prefix to infix ma hota hai
@chanakyakoilada204
@chanakyakoilada204 5 жыл бұрын
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
@Beatsbasteln
@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
@ProudiPhoneOwner
@ProudiPhoneOwner 5 жыл бұрын
Thank you so much for the clear explanation!!!
@sandhyarajput1096
@sandhyarajput1096 11 ай бұрын
❤️ thank you very much ❤️mam Radhe Krishna jiii 🙏🙏 Hari bolo ❤️
@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
@MohanKumar-qe6ng
@MohanKumar-qe6ng Ай бұрын
Thank you so much 🙏
@shashankthapa659
@shashankthapa659 5 жыл бұрын
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.
@sandeepbgowda4168
@sandeepbgowda4168 11 күн бұрын
Having DSA backlog tomorrow, started studying now
@afreenyousaf9438
@afreenyousaf9438 5 жыл бұрын
You saved my finals.. Thanks alot
@ashaf_khan_
@ashaf_khan_ 4 ай бұрын
There's a mistake in the final ans. The ans. will be (A-B)/((D+E)*F)
@MohammadZulfikar
@MohammadZulfikar 5 жыл бұрын
Correction**: Real in-fix is: (A-B) / ((D + E) * F) N.B. Correct me if I am wrong.
@090-jellabharath2
@090-jellabharath2 4 жыл бұрын
Yes u r right
@ansharora9331
@ansharora9331 3 жыл бұрын
You're right
@kamunikarthik9630
@kamunikarthik9630 3 жыл бұрын
Yeah
@Shanu_1113
@Shanu_1113 2 жыл бұрын
Yep
@sereiin120
@sereiin120 2 жыл бұрын
Yeah you are right
@mrinmoyhalder7293
@mrinmoyhalder7293 5 жыл бұрын
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 kzbin.info/www/bejne/q2TTkoSXbbCLq5I
@varshinicuts
@varshinicuts 10 күн бұрын
Thank u so much mam🥺❤️❤️❤️
@sanjayvel6763
@sanjayvel6763 Жыл бұрын
Super mam😊
@Saibhargavi-be4sq
@Saibhargavi-be4sq 11 ай бұрын
Tq
@darkben20
@darkben20 5 жыл бұрын
thank you, that was very explanatory
@usmanbi9198
@usmanbi9198 4 жыл бұрын
Tnq u so much ,, for Clear explanation Mam
@aashishshah1187
@aashishshah1187 4 жыл бұрын
2:11 operannd😄😄
@whimsicalkins5585
@whimsicalkins5585 Жыл бұрын
loved your explanation
@abhikumar4332
@abhikumar4332 4 жыл бұрын
Thank you mam.
@KundanKumar-jv7uy
@KundanKumar-jv7uy Жыл бұрын
explanation..great
@taciturn9027
@taciturn9027 3 жыл бұрын
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...
@MrAbbasalrassam
@MrAbbasalrassam 5 жыл бұрын
You are the best , thank you a lot please make more
@danishhussain8377
@danishhussain8377 2 ай бұрын
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-qb4lc
@KshitijSoni-qb4lc 11 ай бұрын
thank you maam so much
@sumansvoice7240
@sumansvoice7240 5 жыл бұрын
Super
@ravisingh3959
@ravisingh3959 6 жыл бұрын
Thank you 👍👌
@ShortsAddict382
@ShortsAddict382 3 жыл бұрын
Nice explanation mam
@khuramkhalid5396
@khuramkhalid5396 11 ай бұрын
thank you
@ctrainer1195
@ctrainer1195 5 жыл бұрын
thank you madam'
@praveenreddysura4260
@praveenreddysura4260 5 жыл бұрын
super explanation
@InsaneH
@InsaneH Жыл бұрын
LEGEND
@tanzeelaghafoor5210
@tanzeelaghafoor5210 2 жыл бұрын
Thank you mam😇😇
@molamola8305
@molamola8305 5 жыл бұрын
Its wrong conversion.Convert it back into prefix and you won't get the same.
@sumukhsonkar3136
@sumukhsonkar3136 3 жыл бұрын
thanku
@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.
@toxicthor7346
@toxicthor7346 4 жыл бұрын
Thanks madam ji😍😍😍
@__SIVARANJANIR
@__SIVARANJANIR 4 жыл бұрын
How to putting the bracket
@musscullen4571
@musscullen4571 5 жыл бұрын
Thank you madam :)
@killer-sf7sg
@killer-sf7sg 2 ай бұрын
good
@engineerskikaksha
@engineerskikaksha 4 жыл бұрын
Thanks maam
@vineetayadav2600
@vineetayadav2600 4 жыл бұрын
There is something mistake at last
@mahmoudeid7107
@mahmoudeid7107 3 жыл бұрын
thank you mame
@swamypediredla
@swamypediredla 5 жыл бұрын
please said time complexity of evaluating prefix,postfix, infix..............plzzzz...................
@yashvarma9315
@yashvarma9315 3 жыл бұрын
ty
@geg375
@geg375 4 жыл бұрын
You missed putting the bracket !!
@diptanshuprasad7946
@diptanshuprasad7946 9 ай бұрын
How c operand came there ma’am
@ramukumarrony7602
@ramukumarrony7602 2 жыл бұрын
could have explained better
@syedbilal7545
@syedbilal7545 5 жыл бұрын
Tnq u sooooo much!!!!!
@__kurious_k__
@__kurious_k__ 5 жыл бұрын
Thank u...
@014-neerajajadhav3
@014-neerajajadhav3 2 жыл бұрын
Madam what is the solution for the A+B in The Stack?? When the symbol is +?
@monkee2024
@monkee2024 2 жыл бұрын
5:46 correct the solution
@Navneetkumar-je7jo
@Navneetkumar-je7jo 5 жыл бұрын
thanks miss
@rambogaming9508
@rambogaming9508 4 жыл бұрын
love you guys
@rishuyadav9667
@rishuyadav9667 5 жыл бұрын
Sab galat bta ri hai...B-A likh kr A-B calculate kr ri hai ....plzz dont give wrong info
@htetmyatmoe8594
@htetmyatmoe8594 6 жыл бұрын
thanks🙏
@kiranmallikarjun8618
@kiranmallikarjun8618 5 жыл бұрын
Thanks but is there any vedio on conveting postfix to prefix??
@GSPmediaO28
@GSPmediaO28 Күн бұрын
((A-B)/((D+E)*F)) final answer like hear
@tiwariakash3098
@tiwariakash3098 5 жыл бұрын
ans is : (A-B)/(D+E)*F
@pankaj_girish
@pankaj_girish 5 жыл бұрын
👏👏👏👏👏👏
@mahiransh9894
@mahiransh9894 5 жыл бұрын
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 жыл бұрын
It's considered a exponential
@xMingNgw
@xMingNgw 4 жыл бұрын
hay quá :)))
@mknewworld
@mknewworld 5 жыл бұрын
5,3,+,2,*,6,9,7,-,/,- convert into infix notation
@kaushikmondal9983
@kaushikmondal9983 4 жыл бұрын
11
@viveks9377
@viveks9377 4 жыл бұрын
Which university syllabus
@mansikumari3917
@mansikumari3917 11 ай бұрын
Apki voice kaphi low hai
@nawaraalobaidy7201
@nawaraalobaidy7201 11 ай бұрын
العراقيه الوحيده هنا 😅
@killer-sf7sg
@killer-sf7sg 2 ай бұрын
islamia university BWP waly like krty jao
@srushtibuch1964
@srushtibuch1964 3 жыл бұрын
This is the wrong answer...
@vinovinodhini6212
@vinovinodhini6212 5 жыл бұрын
aussam teaching
@AbdRbny
@AbdRbny 5 жыл бұрын
Are madam samne dono page rakhna chahiye.koi kaise samjh payega.
@bhaluentertainment6640
@bhaluentertainment6640 5 жыл бұрын
firstly its AB not A-B
@Aniket-sc7fl
@Aniket-sc7fl 5 жыл бұрын
Sorry To Say,But it is wrong method.
@ashwanibaluni2998
@ashwanibaluni2998 2 жыл бұрын
Ye sikha rhi ho ya bss video banane se mtlb h ek pese ki video ni h
@swethamedasani3364
@swethamedasani3364 2 жыл бұрын
Totally confused
@robintiple3384
@robintiple3384 3 жыл бұрын
Galat hai madam, paper fail kara dongi aap to kitno ka
@attrey273
@attrey273 3 жыл бұрын
Wrong explanation
@someone4494
@someone4494 2 жыл бұрын
Yeah u r crct
@sushmitasiddharth4981
@sushmitasiddharth4981 5 жыл бұрын
Unable to explain.....
@zayaninamzz3187
@zayaninamzz3187 2 жыл бұрын
Apkey hath gandey hain
@PhamousBoi
@PhamousBoi 9 ай бұрын
Thank you so much
@therinmody7226
@therinmody7226 2 жыл бұрын
Thank you
@proudtobeindian1947
@proudtobeindian1947 5 жыл бұрын
Thanks mam
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 61 МЛН
Evaluation of Prefix and Postfix expressions using stack
14:10
mycodeschool
Рет қаралды 630 М.
Infix, Prefix and Postfix
13:38
mycodeschool
Рет қаралды 921 М.
3. Infix to Postfix Conversion The Easy Way
5:44
Yaar Padha De
Рет қаралды 1,4 МЛН
Infix to Postfix using stack
18:20
mycodeschool
Рет қаралды 749 М.
3.4 Infix Prefix and Postfix expressions | Data Structures Tutorials
14:14
Jenny's Lectures CS IT
Рет қаралды 992 М.
L3. Prefix, Infix, and Postfix Conversion | Stack and Queue Playlist
50:47
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20