Infix to Prefix Conversion & vice versa WITHOUT using Stack (With Solved Examples) | Data Structures

  Рет қаралды 27,370

Simple Snippets

Simple Snippets

Күн бұрын

Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
--------------------------------------------------------------------------------------------- In this tutorial we will learn to convert an infix expression to a prefix expression without using stack datastructure in a manual way. We will also learn to convert a prefix expression to infix expression. We will solve 3 examples each for infix to prefix and prefix to infix using manual steps.
Full DSA playlist - • Introduction to Data S...
C++ Programming Tutorials for Beginners Course - • Introduction to Comput...
Simple Snippets Official Website -
simplesnippets....
Simple Snippets on Facebook -
/ simplesnippets
Simple Snippets on Instagram -
/ simplesnippets
Simple Snippets on Twitter -
/ simplesnippet
Simple Snippets Google Plus Page -
plus.google.co...
Simple Snippets email ID -
simplesnippetsinfo@gmail.com
For More Technology News, Latest Updates and Blog articles visit our Official Website - simplesnippets....

Пікірлер: 58
@onurcanisler
@onurcanisler 3 жыл бұрын
27:38 *Answer should be (A+B^C)*D+E.* *:3 Thank you for the clear explanations btw.*
@sourabhsivare1876
@sourabhsivare1876 3 жыл бұрын
i was also about to comment this but then i saw yours.....
@umarajmal6216
@umarajmal6216 3 жыл бұрын
Why need of brackets ?
@diegogaming24
@diegogaming24 2 жыл бұрын
@@umarajmal6216 it's just a simple rule to solve and also to avoid confusion bro
@xXFe_LixXx
@xXFe_LixXx 4 жыл бұрын
Thank you, for all your effort. (: Just one minor thing. I think, you missed the "+ E" at around 17:10.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Oh shit yes my bad, I will pin your comment on the top so everyone can know in the comments regarding this silly mistake I made. But glad that you saw the video with such attention and mentioned in the comments. That means, you really paid full attention 😇✌
@ar3568row
@ar3568row 4 жыл бұрын
You didn't pin him 😂
@raginitiwari_2665
@raginitiwari_2665 4 жыл бұрын
I saw this mistake on the video. In comment section, I came to check if I am right..😁
@giggleglyphs
@giggleglyphs 3 жыл бұрын
@@SimpleSnippets i think it's not +E it's simply E at the end
@suhaspatil8682
@suhaspatil8682 3 жыл бұрын
@@giggleglyphs yes its simply E
@hubofeverything8528
@hubofeverything8528 2 жыл бұрын
I think the infix to prefix conversion with exponent should also contain operand E at the end🧐
@praveensidda6312
@praveensidda6312 3 жыл бұрын
Thanks a lot for all your efforts for explaining the complex topic in very simple and easy way. Really helped me for my semister exams ❤️
@alloydsaviomendonca173
@alloydsaviomendonca173 3 жыл бұрын
In the 3rd example of infix to prefix have you missed E at the end?
@nileshyadav7045
@nileshyadav7045 2 жыл бұрын
Yes
@sachindewangan6378
@sachindewangan6378 4 жыл бұрын
You forgot E in your Q3
@ezioauditore2911
@ezioauditore2911 4 жыл бұрын
yeah bro he forgot e i was thinking the same
@anshulsharma5890
@anshulsharma5890 4 жыл бұрын
Really bro you explain the topic in a very good way.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much 😀
@dpxy1599
@dpxy1599 2 жыл бұрын
Great explanation in a simple way.
@ai.201
@ai.201 4 жыл бұрын
Very clear, thanks.
@hrushikeshwasamkar2423
@hrushikeshwasamkar2423 3 жыл бұрын
Really really thankful to you , you are great !!
@Sky-nt1hy
@Sky-nt1hy 4 жыл бұрын
Sir i think u forgot parenthesis for the last prefix->infix conversion question Q3
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Yea that was a silly mistake. Sorry for that. But since you noticed it, it means that you were paying very good attention ✌
@DIVYADIVYA-kl3ri
@DIVYADIVYA-kl3ri 2 жыл бұрын
best teacher ever
@androidking8158
@androidking8158 2 жыл бұрын
It's weird that I can solve them with just a look like within 20 seconds in my mind, ....I am in12th right now..... I just scan everything at once and then I arrange all those signs and variable maybe unconsciously too fast....I feel really happy about it🤧
@androidking8158
@androidking8158 2 жыл бұрын
@Ayush Negi No, I am still happy and confident 😊 It's not tough to understand but for what I was happy about is time I take. If you want to check yourself, give a test of GATE PYQ on this topic.....I got 25/30 correct
@anb4351
@anb4351 3 жыл бұрын
why dont we follow DMAS rule ? I mean according to DMAS we must do addition before subtraction but here we follow left to right ? why operator precedence and Associativity different than DMAS, in normal calculations we must always follow DMAS ?
@harishreeln4706
@harishreeln4706 3 жыл бұрын
tqsm........sir we learne the concept....tqs a lot
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
It would mean a lot if you could please share our channel and videos with your friends too ✌
@jaidheersirigineedi8110
@jaidheersirigineedi8110 3 жыл бұрын
Broo thank you very much. But I have a doubt, for the second question if it is solved using stack the answer is +a-*bc/de. why is it differing like that?? please answer it bro.
@mazikeen3981
@mazikeen3981 3 жыл бұрын
Very useful, thank you so much !
@aadhi_dinesh7668
@aadhi_dinesh7668 11 ай бұрын
At 18:18 where is E at end
@sangameshkalagi8259
@sangameshkalagi8259 4 жыл бұрын
Thank You for your content. When shall we expect Trees & graph DS?
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Since I am completely focussing on DSA course, trees and graphs will be covered very soon. Maybe in a months time. Although no promises :-P
@SICSABHISHEK
@SICSABHISHEK 3 жыл бұрын
broooooooooooooooo thankuuuuuuuuuuuuuuuuuuu
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Most welcome buddy! Please share the videos with your friends if you want to genuinely support me & our channel!
@quratulainilyas1674
@quratulainilyas1674 Жыл бұрын
18:01 Final answer should be +*+A^BCDE ,you missed E
@amnobodeh2131
@amnobodeh2131 Жыл бұрын
Can infix to prefix and postfix be coded without using stacks?
@shanaishwarjagtap5805
@shanaishwarjagtap5805 4 жыл бұрын
Awesome bro
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks 🤗
@israrqayyum7
@israrqayyum7 9 ай бұрын
❤❤❤❤
@ishantbhatt4813
@ishantbhatt4813 4 жыл бұрын
I done the question no 2 with stack the ans is +a-*bc/de it is different from your ans why?
@jaidheersirigineedi8110
@jaidheersirigineedi8110 3 жыл бұрын
Hey bro! Same doubt here. Any update from your side??
@nikitagv1989
@nikitagv1989 2 жыл бұрын
Solve for this A+B×C+D-E/F Infix to prefix
@antounshahin497
@antounshahin497 4 жыл бұрын
how do we calculate this without the brackets a+b^c*d+e? and thank you for being helpful
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
By applying precedence rules and associativity rules ✌
@mashalrajpoot5941
@mashalrajpoot5941 2 жыл бұрын
In the 3rd example of infix to prefix. You missed E at last
@AnkitKumar-dz8kx
@AnkitKumar-dz8kx 4 жыл бұрын
Thanks bro
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Welcome!
@sangepunaveen9272
@sangepunaveen9272 4 жыл бұрын
bro ,what is the meaning of '$' in expressions
@yourbestie4138
@yourbestie4138 3 жыл бұрын
exponential
@dhrubarajroy_0865
@dhrubarajroy_0865 3 жыл бұрын
wow
@yashsonawane905
@yashsonawane905 3 жыл бұрын
FINAL RESULT IS: +*+A^BCDE
@anchalpandey2787
@anchalpandey2787 4 жыл бұрын
💯 💯
@subhanullahdanish8680
@subhanullahdanish8680 2 жыл бұрын
Thanks a lot for all your efforts for explaining the complex topic in very simple and easy way. Really helped me for my semester exams ❤
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 211 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 90 МЛН
Evaluation of Prefix and Postfix expressions using stack
14:10
mycodeschool
Рет қаралды 631 М.
Infix to Postfix | Expression evaluation | C-Programming | Gate Applied Course
19:20
Infix to Postfix using stack
18:20
mycodeschool
Рет қаралды 750 М.
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Codebagel
Рет қаралды 386 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 211 МЛН