Drawing and finding the value of postfix expression

Click For Summary

Discussion Overview

The discussion revolves around the evaluation of a postfix expression and the construction of a corresponding binary tree. Participants are seeking clarification on the correct interpretation of the expression and the resulting structure.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant expresses uncertainty about the final result of the postfix expression, questioning if the answer is 1000 and 160 due to a lack of an operator.
  • Another participant confirms that ending up short one operator results in nodes containing 1000 and 160 without a way to combine them.
  • A later reply reiterates the conclusion that 1000 and 160 are indeed the results and seeks validation on the correctness of the drawn binary tree.
  • Responses affirm the correctness of both the answer and the binary tree drawing.

Areas of Agreement / Disagreement

Participants generally agree that the answer is 1000 and 160, and that the binary tree has been drawn correctly. However, there is an initial uncertainty regarding the interpretation of the postfix expression.

Contextual Notes

There is a lack of clarity on the specific postfix expression being evaluated, which may affect the understanding of the problem. The discussion does not resolve the implications of having no operator to combine the final values.

Who May Find This Useful

Individuals interested in postfix expressions, binary tree structures, or those seeking assistance with similar homework problems in computer science or mathematics.

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: 116
  • 20140511_213927.jpg
    20140511_213927.jpg
    53.3 KB · Views: 117
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
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 76 ·
3
Replies
76
Views
6K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K