Application of Stacks (Infix to Postfix) - Part 8

  Рет қаралды 49,019

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 30
@nisharathod2945
@nisharathod2945 2 жыл бұрын
Neso is SOOO underrated, I am able to solve toughest questions by learning crystal clear basics from them! You guys are amazing!
@subhajitchoudhury9745
@subhajitchoudhury9745 2 жыл бұрын
Sir please Continue the course rapidly , because sir we are facing problem on sorting and tree Thank you sir one of the best channel ever ❤️🙏
@mohdsameer1788
@mohdsameer1788 2 жыл бұрын
Me too yrr
@AzreenRajieveMANANGGOLO
@AzreenRajieveMANANGGOLO 10 ай бұрын
The genius behind all genius, keep the work going sir!
@bisalranjanswain2434
@bisalranjanswain2434 2 жыл бұрын
Mind blowing explanation sir. Thank you sir😇🙏
@shivajichate867
@shivajichate867 Жыл бұрын
I have loved this video, thank you so much for making it.
@ankitxalxotoo5580
@ankitxalxotoo5580 2 жыл бұрын
You are a great teacher sir 🙏🙏🙏,,,,One humble request Sir please complete this playlist fast ,
@485-anuhyajanjam7
@485-anuhyajanjam7 2 жыл бұрын
Sir please make the video on python programming sir .I understood the C programming because of your channel.I want to learn python programming sir.
@saniyamansuri9607
@saniyamansuri9607 2 жыл бұрын
Thank you for the lecture 👍🏻
@priyajain4438
@priyajain4438 2 жыл бұрын
Thank you so much Sir.
@rajeshprajapati1851
@rajeshprajapati1851 2 жыл бұрын
Thanks ! Noted down every detail. 👍
@snehazz5284
@snehazz5284 2 жыл бұрын
Do make videos on prefix also
@rafiashan8389
@rafiashan8389 Жыл бұрын
siiiiiirrrrr I can't thank you enoughhhhh
@mohamedsamir2726
@mohamedsamir2726 10 ай бұрын
For entering more than one digit number i made some modifications as: void InToPost() { int i, j=0,x; char symbol, next; for(i=0; i
@MohammedSamir-w9k
@MohammedSamir-w9k 9 ай бұрын
I am the same person and here is the overall code with some modifications: #include #include #include #include #define max 100 int top = -1; int stack[max]; char infix[max]; short postfix[max]; void push(int data); int pop(); void InToPost(); int precedence(short s); int post_evaluation(); void print(short *s); int main() { int result; printf("Enter an infix expression: "); gets(infix); InToPost(); print(postfix); result = post_evaluation(); printf("Evaluation of postfix = %d ",result); return 0; } void InToPost() { int i, j=0,x; short symbol, next; for(i=0; infix[i]!=NULL; i++) { symbol = infix[i]; switch(symbol) { case ' ': case '\t': break; case '(': push(symbol); break; case ')': while( (next = pop()) != '(') postfix[j++] = next; break; case '^': case '*': case '/': case '+': case '-': while(top!=-1 && precedence(symbol) = '0' && infix[i+1]
@MDSagor-tu1xw
@MDSagor-tu1xw Жыл бұрын
Does it work for multi digits infix expressions ? What will happen if I use a multi digit infix expression ?
@lokendrasinghrao
@lokendrasinghrao 2 жыл бұрын
Sir please upload all dsa lecturex before 10 january as I have final semester exams from 15 january.
@galihtanu
@galihtanu 2 жыл бұрын
Cool sir. i hope can converted to arduino code.
@morbidreality4909
@morbidreality4909 2 жыл бұрын
Sir also add queue topic
@mohdsameer1788
@mohdsameer1788 2 жыл бұрын
Please Sir upload lectures early
@yadavmanuj5893
@yadavmanuj5893 2 жыл бұрын
1st view 🤭
@subhajitchoudhury9745
@subhajitchoudhury9745 2 жыл бұрын
Ha ha 👍
@anonyanonymous7018
@anonyanonymous7018 2 жыл бұрын
Problem: :( The algorithm will not work If the operand is of multiple digits. Example: Infix exp : (31+2)*2/3 Postfix exp: 312+2*3/ Array: |3| |1| |2| |+| |2| |*| |3| |/| Now when we evaluate the above expression we will push 3 1 2 And the moment we encounter an operator (+) we will pop 2 and 1. And will perform 1+2 which yeilds 3 then we will push this into the stack now the stack contains 3 3 Push 2 3 3 2 Encounter * Do 3*2 = 6 Push 6 3 6 Push 3 3 6 3 Encounter / Do 6/3 = 2 Push 2 3 2 Scanning finishes Now pop 2 So as per the algorithm the result of the above expression is 2 and that's obviously wrong. The result must be 22
@rohithpamidimarri6639
@rohithpamidimarri6639 2 жыл бұрын
Yes sir!!
@wog4299
@wog4299 2 жыл бұрын
Yes obviously it will not work with multiple digits, that's why it is called as infix (a operator between 2 operands : A+B.
@Dsc_30499
@Dsc_30499 2 жыл бұрын
Sir has already mentioned in the video that is the drawback we can only perform on single digit operands
@dkdivakar699
@dkdivakar699 9 ай бұрын
it is single digit evaluation bro😊
@dkdivakar699
@dkdivakar699 9 ай бұрын
so you can take single digit
@kycideas9487
@kycideas9487 2 жыл бұрын
Sir tell the computer organisation course sir,please
@nesoacademy
@nesoacademy 2 жыл бұрын
kzbin.info/aero/PLBlnK6fEyqRgLLlzdgiTUKULKJPYc0A4q
Stacks (GATE Problems) - Set 1
15:15
Neso Academy
Рет қаралды 20 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 2,9 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 25 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 138 МЛН
Application of Stacks (Infix to Postfix) - Part 6
18:49
Neso Academy
Рет қаралды 157 М.
Application of Stacks (Infix to Postfix) - Part 2
13:42
Neso Academy
Рет қаралды 101 М.
Infix to Postfix | Expression evaluation | C-Programming | Gate Applied Course
19:20
Application of Stacks (Infix to Postfix) - Part 1
10:33
Neso Academy
Рет қаралды 164 М.
Infix to Postfix using stack
18:20
mycodeschool
Рет қаралды 756 М.
Application of Stacks (Nested Brackets) - Part 1
19:01
Neso Academy
Рет қаралды 46 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 428 М.
3. Infix to Postfix Conversion The Easy Way
5:44
Yaar Padha De
Рет қаралды 1,4 МЛН
Application of Stacks (Infix to Postfix) - Part 7
28:02
Neso Academy
Рет қаралды 87 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 2,9 МЛН