3.7 Infix to Postfix conversion using Stack | Data structures and algorithms

  Рет қаралды 385,736

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

In this video, I have explained the conversion of INFIX expression to POSTFIX expression using STACK with the help of examples. Keeping in mind the priority of operators(precedence) as well as associativity of operators. Associativity comes into picture when two operators of the same precedence arrive like addition and subtraction, multiplication and division etc.
DSA Full Course: https: • Data Structures and Al...
******************************************
More Playlists:
C Programming Course: • Programming in C
C++ Programming: • C++ Complete Course
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
DAA Course: • Design and Analysis of...
Placement Series: • Placements Series
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
**********************************************
Connect & Contact Me:
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
#infixtopostfix #ugcnet #ugcnetexam #datastructures #jennyslectures

Пікірлер: 165
@saikrusheelcheerla3904
@saikrusheelcheerla3904 3 жыл бұрын
what a change from jan 2019 to oct 10 2019 about same topic , from beginner with no lighting to proffesional with huge fan base 🤩 a mind + beauty mixed teacher
@AmanatAli-gm2xq
@AmanatAli-gm2xq 4 жыл бұрын
honestly, you explain this in 8 minuts more clearly than my prof who took two lectures thank you
@gueshteklu8624
@gueshteklu8624 6 ай бұрын
Mrs Jenny( My On Line Teacher) Has Higher Precedece than My Class Teacher Of Data Structure No Need Associativity Rule🙏🙏🙏I Always Fellow You.... Thanks More!!!!!!!!!
@hoop5768
@hoop5768 5 жыл бұрын
I searched all the videos for the topic on you tube...this is the best video with crystal clear explanation...
@DeleMike7
@DeleMike7 3 жыл бұрын
Hi I'm from Nigeria, this is the Best Explanation ever! I love it. Officially subscribed!
@forlorn4523
@forlorn4523 2 жыл бұрын
lol wdym "officially" subscribed.
@gaurav78272
@gaurav78272 5 жыл бұрын
Amazing videos no one has done in this method thank you
@RadhikaGarg-ev8fr
@RadhikaGarg-ev8fr 4 жыл бұрын
U r the bestt teacher in the world...thanks so much mam aap itna acha teach krte ho ki sara smj a jata hai ache se..even koe doubt bhi nhi hota..
@jiggijiggs
@jiggijiggs 4 жыл бұрын
Getting up in the morning and making the video ,so thankful for that,,.. and so dedication towards the Viewers..Hadsoff to u mam.
@KiranMahato169
@KiranMahato169 4 жыл бұрын
My all doubt are now clear. Thank you ma'am ☺😊
@abdalrahmanshebani9902
@abdalrahmanshebani9902 4 жыл бұрын
Thanks for always being the only solution we have to understand ! ❤
@aishwarya1895
@aishwarya1895 3 жыл бұрын
Thnks..... U r lighting the world through your knowledge ✌
@renuclaire
@renuclaire 4 жыл бұрын
Thanks mam ur lecture is very easy to understand and impressive
@sanjanarana5467
@sanjanarana5467 3 жыл бұрын
FREE RESOURCES: For Data Structures and Algo WEbsite Link:-www.pepcoding.com/resources/online-java-foundation
@ermdtufailahmad8688
@ermdtufailahmad8688 5 жыл бұрын
Teaching style is awesome👩‍🏫👩‍🏫👩‍🏫👩‍🏫
@YashSharma-qm7bu
@YashSharma-qm7bu 4 ай бұрын
watching this video before my exam and I cleared all my doubts and undersatand it
@ayanmondal1012
@ayanmondal1012 4 жыл бұрын
Your lectures are too much helpful.... Thanks....
@janweechoudhary9584
@janweechoudhary9584 7 ай бұрын
Today's my exam...and your videos helped me in huge ways... thnku so much❤
@manojsarkar5943
@manojsarkar5943 5 жыл бұрын
Thank you so much mam.your teaching is very good and helpfully.
@abeniezersileshi8094
@abeniezersileshi8094 2 жыл бұрын
you are a serious,beautiful,and cleaver teacher
@reshmah1497
@reshmah1497 5 ай бұрын
EXCELLENT teaching mam! Can you please upload videos about 'Monotonic stack' and 'Monotonic queues'?
@ajaykushwaha9908
@ajaykushwaha9908 5 жыл бұрын
Awesome lectures.... ma'm i am waiting for DBMS's lectures... please upload it asap....... Thanks a lot for making such type of videos.
@mallikarjunhagargi7830
@mallikarjunhagargi7830 5 жыл бұрын
Mam don't know dbms😀
@sravanip4509
@sravanip4509 2 ай бұрын
Thank you so much mam🙏🙏...I got full clarity🥳🥳...
@subhrajyotidas2569
@subhrajyotidas2569 3 жыл бұрын
cant thnAk you enough ma'am. YOU ARE GOD OF CS.
@rahultalekar2909
@rahultalekar2909 3 жыл бұрын
Aap bahut achhi padhate hai ma'am.....i got it clearly...thank you so much ❤️
@abisheks4738
@abisheks4738 3 жыл бұрын
U r so good and I like ur voice mostly the word Empty ..u r pronouncing empaty..but I love ur way of teaching..❤️
@ranveervaghela7030
@ranveervaghela7030 5 жыл бұрын
Thank you very much man 👍
@satyajitmanna8501
@satyajitmanna8501 Жыл бұрын
best teacher in ds maam love from satyajit
@upendrabind7442
@upendrabind7442 3 жыл бұрын
Ma'am Thnks for this channel that u started.
@nellutlasushma8001
@nellutlasushma8001 4 жыл бұрын
Thank you so much ma'am... Easily understanding ma'am ☺️
@shiprasingh5510
@shiprasingh5510 2 жыл бұрын
Sach me dil jheet liya apne ma'am ❤️
@abhijithsuneesh252
@abhijithsuneesh252 Жыл бұрын
Thank You Mam For The Explanation 😄
@bijilidhanalakshmi
@bijilidhanalakshmi 9 ай бұрын
Thank you Mam for your crystal clear explanation ❤️
@asshwatthamaa1911
@asshwatthamaa1911 5 жыл бұрын
U are soo cute that I understood everything😍😍
@shashanthkumartoluva8833
@shashanthkumartoluva8833 Жыл бұрын
Thanks alot mam for working so hard for all of us!
@anurag_ad_01
@anurag_ad_01 3 жыл бұрын
Your hindi is really to good And thanks 🙏🙏🔥
@ShubhamSingh-ku5ux
@ShubhamSingh-ku5ux 5 жыл бұрын
Ur explanation is awesome
@saketh.j2450
@saketh.j2450 3 жыл бұрын
Maam u r so awesome lecturer maam thankyou so much maam ❤👍
@SriDevi-mq7hk
@SriDevi-mq7hk 2 жыл бұрын
Great explanation...👏👌👍
@anuragdas7252
@anuragdas7252 4 жыл бұрын
why u feel so drowsy and tired were you ok then????
@ShubhamSingh-ku5ux
@ShubhamSingh-ku5ux 5 жыл бұрын
I like ur video too much and u also
@nishantraj9045
@nishantraj9045 4 жыл бұрын
clearly explained!!!!!!!!!!!!!!!!!!!!
@yogeshkumar7389
@yogeshkumar7389 4 жыл бұрын
Thanks, this is allI needed to watch.
@khalidareen3863
@khalidareen3863 Жыл бұрын
Thank you so much ma'am... Easily understanding ma'am
@jalpacj7813
@jalpacj7813 3 жыл бұрын
Very nice explanation ma'am👍
@priyanshgoswami2201
@priyanshgoswami2201 Жыл бұрын
thank you mam its very useful and i understood very well🙏🙏
@thecloudterminal
@thecloudterminal Жыл бұрын
Thank you for great explanation and putting so much effort mam 🙏
@imrohityadav23
@imrohityadav23 3 жыл бұрын
Thank you ma'am ❤
@priyankashaw1238
@priyankashaw1238 5 жыл бұрын
When we were supposed to push '+' on the top of ' -' , you said associativity is left to right. When '-' was already there in stack and we were supposed to push '+' , then also you said left to right associativity. When does right to left associativity rule applies?
@editprousama
@editprousama 4 жыл бұрын
same qs here bruh
@khushwantmaan791
@khushwantmaan791 4 жыл бұрын
when you have ^ that operator at top of the stack and the incoming operator is also ^ that operator, then right to left associativity rule will be applied and put that operator in stack directly.
@manishgaurav5129
@manishgaurav5129 4 жыл бұрын
@@khushwantmaan791 right brother
@OptimisticForce
@OptimisticForce 4 жыл бұрын
In future you will cover this topic again , This current video will be in recommendation. I will click it
@jatinranpariya1510
@jatinranpariya1510 Жыл бұрын
Implementation in C++ class expression { private: string s; public: expression(string t) { s = t; } bool isOperator(char ch) { return ch == '+' or ch == '-' or ch == '*' or ch == '/' or ch == '^'; } int precedence(char ch) { if (ch == '^') return 3; if (ch == '*' or ch == '/') return 2; if (ch == '+' or ch == '-') return 1; return 0; } string postfix() { string ans; stack st; for (auto i : s) { if (i == '(') st.push(i); else if (i == ')') { while (!st.empty() and st.top() != '(') { ans.push_back(st.top()); st.pop(); } st.pop(); } else if (isOperator(i)) { if (st.empty()) st.push(i); else if (precedence(i) > precedence(st.top())) st.push(i); else if (precedence(i)
@pradeeplakkineni415
@pradeeplakkineni415 3 жыл бұрын
It's a great teaching
@priyankabasava5657
@priyankabasava5657 Жыл бұрын
Thank you so much mam u r the best..... 🥰🥰🥰🥰🥰🥰
@lalithahemanth9349
@lalithahemanth9349 Жыл бұрын
Very useful information
@swerve-dz4cr
@swerve-dz4cr Жыл бұрын
she is the best
@PEAKY_BLINDERS_-nt4iv
@PEAKY_BLINDERS_-nt4iv 4 жыл бұрын
Mam really appreciate your hard work !!! It is helping me a lot !! Please keep up the good work........ Baaki mam please agar time mile to algorithms ke lectures bhi add kijiyega !!
@continnum_radhe-radhe
@continnum_radhe-radhe Жыл бұрын
This is amazing 🔥🔥🔥 mam
@aaronpaulbarsana1702
@aaronpaulbarsana1702 2 жыл бұрын
Oh my I got it right :) Thank you very much!!
@keyurlad6887
@keyurlad6887 5 жыл бұрын
could u post lectures on computer organisation and architecture
@pk4288
@pk4288 3 жыл бұрын
ugh i hate that subject
@divyagarg7674
@divyagarg7674 9 ай бұрын
Awesome lecture
@Rahul-vn9ny
@Rahul-vn9ny 4 жыл бұрын
Thank you so much mam.
@globalentertainment5134
@globalentertainment5134 5 жыл бұрын
Wonderful explanation
@meghasinha1706
@meghasinha1706 3 жыл бұрын
Thanks for your efforts mam
@shubhisharma8371
@shubhisharma8371 3 жыл бұрын
Made Super-easyy!! Thankyou
@yamisharma7226
@yamisharma7226 5 жыл бұрын
Mam please provide COA lecture for NET exam. And thanks mam
@thefuntech2810
@thefuntech2810 5 жыл бұрын
Ham tho thumbnail dekhkar aagaye 😂😂😂😂😂
@anirudhgahlot6361
@anirudhgahlot6361 4 жыл бұрын
content bhi utna hi kadak ha :)
@manishmalik.
@manishmalik. 3 жыл бұрын
Isme hasne ki konsi baat h fare🤔🥱
@swamykoti
@swamykoti Жыл бұрын
Thanks mam
@nikhilpachkor8349
@nikhilpachkor8349 4 жыл бұрын
Nice Explanation
@someonesoumya
@someonesoumya 4 жыл бұрын
thanks mam. good explanation
@parikshitsharma3393
@parikshitsharma3393 4 жыл бұрын
I have a doubt. Ma'am, I think instead of checking the higher precedence condition two times only, we have to check until an operator of lower precedence is found. Technically what I want to say is we should use while(higherprecedence(s.top)) instead of using two ifs i.e if(higherprecedence(s.top)) -> if(higherprecedence(s.top)). If I am wrong please correct me.
@kashifahmed3920
@kashifahmed3920 4 жыл бұрын
Great Respect form PAKISTAN and thanks .
@Shivang-rj9lq
@Shivang-rj9lq 2 жыл бұрын
How much has changed in the first video and now in the last wow mam
@bachinaganesh1891
@bachinaganesh1891 2 жыл бұрын
mam make a video on this example "a+b*(c^d-e)^(f+g*h)-i"
@sushmasa7817
@sushmasa7817 Жыл бұрын
abcd^e-fgh*+*+i-
@kailashuv3028
@kailashuv3028 4 жыл бұрын
Thank you very much didi😊😊😊
@baskaranbaluchamy3667
@baskaranbaluchamy3667 5 жыл бұрын
very good explanation mam.thanks.... can u explain follow this . (a+b)*(c*d-e)* f/g ?
@baskaranbaluchamy3667
@baskaranbaluchamy3667 5 жыл бұрын
Mam. I need the post order conversion for this. (a+b) * ( c*d-e)*f/g. My answer is ab+cd*e-*f*g/ ... Is it correct ? If else pls give me the step by step procedure for this mam....
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
yes your answer is correct..
@baskaranbaluchamy3667
@baskaranbaluchamy3667 5 жыл бұрын
(a*b+d) --> in stack ( *,+) in this case, how we pop out operators in stack. Right to left or we rearrange the operators based on their precedence ? abc+* Or abc*+ ? Which one is correct madam?
@MajhiKhushboo
@MajhiKhushboo 3 жыл бұрын
Thankyou man helpful video
@MrHimanshuqwerty
@MrHimanshuqwerty 2 жыл бұрын
Thank you mam
@sushantkumar3111
@sushantkumar3111 2 жыл бұрын
nice vedio keep growing ..
@rajipradeev4741
@rajipradeev4741 3 жыл бұрын
Thank you so much🙏❤
@sushantarora5566
@sushantarora5566 Жыл бұрын
crystal clear🙂
@sowqatali4377
@sowqatali4377 5 жыл бұрын
Madam,please bataiye, aagar ye situation aaye ,,, (+*) ,to ye dono pop ho kar postfix me jayega ,,to postfix me kya lokhungi (+*/*+) matlab ,, first+then* ya fir first *then +
@atharvakatre3256
@atharvakatre3256 4 жыл бұрын
first * then + coz stack me top pr * tha toh woh pehle pop hoga
@OurUniversity4330
@OurUniversity4330 Жыл бұрын
Thank You so much!
@S.P20sss
@S.P20sss 4 жыл бұрын
Thanks ..u r amazing..
@kevalshah5594
@kevalshah5594 2 жыл бұрын
mam associativity of ^ these operator is left to right i have searched on google and its showing left to right
@shahriarkhan7749
@shahriarkhan7749 5 жыл бұрын
Thanku so much
@imtiyazhussain2901
@imtiyazhussain2901 3 жыл бұрын
maam In this case if (/( next operator is - then what should we do.
@ritikasharma2513
@ritikasharma2513 4 жыл бұрын
Plz make the video on conversion of infix to prefix expression but di pls table bnakr btana ache se smjh a jayga abi thoda sa confusion h isliy table Vali plz
@JennyslecturesCSIT
@JennyslecturesCSIT 4 жыл бұрын
okay dear.. will upload by Friday..
@ritikasharma2513
@ritikasharma2513 4 жыл бұрын
thnkuuu dii
@anjukrishnan5934
@anjukrishnan5934 3 жыл бұрын
Thank you so much
@meow3131
@meow3131 2 жыл бұрын
Mam if ur not here, I would've failed my DS exam
@chiragjoshi6118
@chiragjoshi6118 Жыл бұрын
I am still confused with associativity rule it should be more detail about right to left or left to right
@thiruvenkadamthp3382
@thiruvenkadamthp3382 4 жыл бұрын
Wow beautiful
@dxlm5274
@dxlm5274 Жыл бұрын
a huge thanks
@amanpreetsingh20
@amanpreetsingh20 3 жыл бұрын
mam thanks for lovely explanation .u are so cute i understood everything😍👌
@sajansekhu8785
@sajansekhu8785 4 жыл бұрын
thnkss alott mam..
@JennyslecturesCSIT
@JennyslecturesCSIT 4 жыл бұрын
Your gratitude is humbly appreciated
@gurupreetsingh8347
@gurupreetsingh8347 5 жыл бұрын
plz help with infix to prefix also with the help of stack............ waiting.......
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
Okiee.
@EBKCS_MOKSHASHARMA
@EBKCS_MOKSHASHARMA 3 жыл бұрын
nice ma'am 💝🔥
@megalasaravanan6821
@megalasaravanan6821 5 жыл бұрын
thank you
@kusumanandavarapu1073
@kusumanandavarapu1073 Жыл бұрын
Madam...code kuda...cheppochu kada..infix to postfix ki...
@ShriyaSawant2023
@ShriyaSawant2023 2 жыл бұрын
What is the priority of power operator
@saritakumari-oh8fs
@saritakumari-oh8fs 3 жыл бұрын
Nice
@cheekatiramyaramya3056
@cheekatiramyaramya3056 6 ай бұрын
Hloo mam is + having the high priority than -
@cheekatiramyaramya3056
@cheekatiramyaramya3056 6 ай бұрын
Plse reply fast mam there is an exam tommorow
3.8 Infix to Prefix using Stack | Data Structures Tutorials
24:05
Jenny's Lectures CS IT
Рет қаралды 911 М.
3.6 Infix to Postfix using Stack | Data Structures Tutorials
20:10
Jenny's Lectures CS IT
Рет қаралды 1,7 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 21 МЛН
3.5 Infix to Postfix Conversion Rules using Stack | Data structures Tutorials
12:33
3.10 Postfix Expression Evaluation using Stack | Data Structures and Algorithms
11:02
3.4 Infix Prefix and Postfix expressions | Data Structures Tutorials
14:14
Jenny's Lectures CS IT
Рет қаралды 990 М.
3.2 Implementation of Stack using Array | Data Structure and Algorithm Tutorials
17:27
3.3 Stack implementation using Linked List | Data Structures and Algorithm Tutorials
27:01