MHB Drawing and finding the value of postfix expression

Click For Summary
In the discussion about evaluating a postfix expression, it is clarified that ending with no operator means there are two values, 1000 and 160, without a way to combine them. Participants confirm that 1000 and 160 are indeed the final values. The correctness of the drawn Binary Tree is also affirmed. The conversation emphasizes the importance of having an operator to connect values in postfix notation. The conclusion is that without an operator, the final output remains as two separate numbers.
yakin
Messages
42
Reaction score
0
View attachment 2472
View attachment 2473

I am ending with no operator in the end. So 1000 160 would be the answer or what. I do not know what to do from here. Please help!
 

Attachments

  • Capture.JPG
    Capture.JPG
    11.5 KB · Views: 113
  • 20140511_213927.jpg
    20140511_213927.jpg
    53.3 KB · Views: 111
Physics news on Phys.org
yakin said:
https://www.physicsforums.com/attachments/2472
https://www.physicsforums.com/attachments/2473

I am ending with no operator in the end. So 1000 160 would be the answer or what. I do not know what to do from here. Please help!
Yes you end up short one operator, so you have nodes containing 1000 and 160 with no operator to join them.
 
DavidCampen said:
Yes you end up short one operator, so you have nodes containing 1000 and 160 with no operator to join them.
So 1000 and 160 is the answer. And did I draw the Binary Tree right?
 
yakin said:
So 1000 and 160 is the answer. And did I draw the Binary Tree right?

Yes and yes.
 
First trick I learned this one a long time ago and have used it to entertain and amuse young kids. Ask your friend to write down a three-digit number without showing it to you. Then ask him or her to rearrange the digits to form a new three-digit number. After that, write whichever is the larger number above the other number, and then subtract the smaller from the larger, making sure that you don't see any of the numbers. Then ask the young "victim" to tell you any two of the digits of the...

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K