What is Infix Prefix & Postfix Expressions in Data Structures | Why do we need them ?

preview_player
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- In this tutorial we will understand the 3 different types of expressions that is infix, prefix and postfix expressions. This topic comes under the application of stack data structure as stack data structure is used to perform conversions between these 3 expressions.
What is an Expression?
An Expression is a combination of symbols that can be numbers (constants), variables, operations, symbols of grouping and other punctuation written is a specific format/way.
Depending on how the expression is written, we can classify it into 3 categories -
1) Prefix -
An expression is called the prefix expression if the operator appears in the expression before the operands. Simply of the form (operator operand1 operand2). E.g. +AB
2) Infix -
An expression is called the infix expression if the operator appears in the expression in between the operands. Simply of the form (operand1 operator operand2). E.g. A+B
3) Postfix -
An expression is called the postfix expression if the operator appears in the expression after the operands. Simply of the form (operand1 operand2 operator). E.g. AB+

Simple Snippets Official Website -
Simple Snippets on Facebook -
Simple Snippets on Instagram -
Simple Snippets on Twitter -
Simple Snippets Google Plus Page -
Simple Snippets email ID -

#expressions #infix #prefix #postfix #datastructures #algorithms #stacks
Рекомендации по теме
Комментарии
Автор

Hey Tanmay, me again!!
I cant thank you enough for your tutorials, Just got selected in TCS digital. Coming from mechanical background I was just following your DSA playlists and I answered well in my interview. Still learning and revising. Thanks again.

saravanajogan
Автор

best video on 3 formats of expressions

innfinityraag
Автор

Wow this is so awesome tutorial about on how to convert the infix, postfix, and prefix

ericjamesureta
Автор

ur explanations are amazing....thank god i found this video

_JayasmitaSaha
Автор

I needed to learn this by tomorrow and I was struggling quite a bit . After you uploaded this video, I am now understanding the basics of this concept. Thanks a lot again, it's a miracle that you uploaded it today !!!!💜😁😁😁💜

krittikabiswas
Автор

Thank you sir, your lectures are amazing. I was able to learn in one go. this also helped me to score well in my exams

bxtrmxfrost
Автор

very much impressive of your teaching it is help me to teach my student of BCS

maheshraikhelkar
Автор

I guees I am too late here 😂 . The guy in These video explained too good Keep it up bro soon you will reach 1M

archiessingh
Автор

Bro such an amazing Playlist, keep updating it 🙌. Love u ❤

nitismita
Автор

Hey... You're providing a great stuff.. Thank you so much for this.. ❣️

harshadagunjal
Автор

hi sir! just wanted to ask will you be uploading videos on Trees, Graphs and Mapping as well?

sarthakdang
Автор

tanmy dude can you make videos tutorials on DBMS

arishkhan
Автор

4 - 3 + 5
=> 4 +(-3 +5) or 4 - (3 -5)
=> 4+2 or 4 - ( - 2 )
=> 6

Could you explain at 15:06 ?

santoshbhattarai
Автор

is there a complete python course by simple snippets...i found only 6 to 7 videos in python playlist...will other videos will be uploaded ...?

bhanuteja
Автор

hi
can u Tell me how i make asp DataList Responsive (Like responsive Product card)
if you have any code then please share

DeathKey
Автор

Sir can you please provide me all the notes of ds

rahulprajapat