MHB Drawing and finding the value of postfix expression

AI Thread 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: 109
  • 20140511_213927.jpg
    20140511_213927.jpg
    53.3 KB · Views: 107
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.
 

Similar threads

Replies
1
Views
1K
Replies
5
Views
2K
Replies
16
Views
2K
Replies
18
Views
3K
Replies
6
Views
2K
Back
Top