Reverse Polish Notation Using Stacks

  Рет қаралды 30,416

Erb Computer Science

Erb Computer Science

Күн бұрын

Пікірлер: 23
@zahidmalik-ramzan6415
@zahidmalik-ramzan6415 4 жыл бұрын
The second example : 6 * 3 - (4 - 5) + 2 I feel like you may have missed something there. After closing the parentheses, the addition operator is of equal precedence with the minus operator. So we pop the minus operator and place it on the String while pushing the addition operator on to the Stack. So the end answer should be the following? 6 3 * 4 5 - - 2 + Am I correct?
@erbcomputerscience
@erbcomputerscience 4 жыл бұрын
Yes that is correct. Thank you for finding this error.
@JaidaMongol
@JaidaMongol 4 жыл бұрын
you are an excellent teacher...
@Huge_jass
@Huge_jass 8 ай бұрын
it seems that there is small error in example 3. There supposed to be two '-'. 63*45 - - 2+
@aarohansharma4551
@aarohansharma4551 3 жыл бұрын
This was very helpful. Thank you very much for the clear explanation!
@erbcomputerscience
@erbcomputerscience 3 жыл бұрын
Glad it was helpful!
@atrsarst7158
@atrsarst7158 2 жыл бұрын
I love your positivity thank you!
@watashiwabotadesu3780
@watashiwabotadesu3780 10 ай бұрын
that's very helpful thank you , may allah guide you to the right path
@erbcomputerscience
@erbcomputerscience 10 ай бұрын
Glad it was helpful.
@anonymousvevo8697
@anonymousvevo8697 3 жыл бұрын
12:57 , the minus has been removed by mistake , i guess
@jamesliu8548
@jamesliu8548 6 ай бұрын
A minus sign got inadvertently erased at Example 3. It should be 6 3 * 4 5 - - 2 + (two minuses instead of one).
@lingsun4492
@lingsun4492 2 жыл бұрын
That is very helpful!!!! thanks!! I also wondering that is "1-(-11)" valid expression? the converted RPN is "1 11 - - " the expected result is 12, but if we evaluate the converted RPN the result is 10. do you know how can we support this kind of expression?
@pavelxbushmakin7252
@pavelxbushmakin7252 2 жыл бұрын
Unary minus is a part of the number. 1 -11 -
@TanvirMahmudKhan
@TanvirMahmudKhan 4 жыл бұрын
Great explanation....
@johnpaulpineda9821
@johnpaulpineda9821 2 жыл бұрын
Very Good Explanation!
@hritikkumar5539
@hritikkumar5539 9 ай бұрын
this was very helpful TY
@erbcomputerscience
@erbcomputerscience 9 ай бұрын
Glad you found it helpful!
@dikemahoko8346
@dikemahoko8346 Жыл бұрын
what happened to the string @ 12:56 I think a minus sign disappeared?
@undefinedengineer8794
@undefinedengineer8794 3 жыл бұрын
supercool! thank you!
@MdMasum-si8ib
@MdMasum-si8ib 3 жыл бұрын
Example 3 wrong may be Missing one minus
@anupmerwani9207
@anupmerwani9207 3 жыл бұрын
bro try getting a better mic, when u say the letter p or b it looks like you are spitting into the mic
@baxtables
@baxtables 3 жыл бұрын
13:37
@lovro_ribic
@lovro_ribic 9 ай бұрын
can I buy you a new mic?
Infix, Prefix and Postfix
13:38
mycodeschool
Рет қаралды 932 М.
Infix to reverse polish using a stack
8:59
HurrayBanana
Рет қаралды 65 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
Reverse Polish Notation and The Stack - Computerphile
13:32
Computerphile
Рет қаралды 308 М.
AQA A’Level Reverse Polish Notation - Part 1
8:05
Craig'n'Dave
Рет қаралды 22 М.
How to convert Infix expressions to Reverse Polish Notation expressions
10:04
Reverse Polish Grows on Trees - Computerphile
9:51
Computerphile
Рет қаралды 93 М.
Application of Stacks (Infix to Postfix) - Part 2
13:42
Neso Academy
Рет қаралды 100 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН