Results 1 to 4 of 4
- 03-15-2011, 04:21 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 15
- Rep Power
- 0
- 03-15-2011, 04:57 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
The image you've shown us most definitely has nothing to do with a binary tree; it just describes a post order traversal of any tree. You have to evaluate a binary expression tree. First recursively evaluate the children of a node and keep the results; next evaluate the current node and return the result.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-16-2011, 08:21 AM #3
Member
- Join Date
- Jan 2010
- Posts
- 90
- Rep Power
- 0
click on the image to see the tree
- 03-16-2011, 09:17 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Arithmetic using doubles
By Black_Eye in forum New To JavaReplies: 4Last Post: 10-19-2010, 08:35 AM -
Abbreviated Arithmetic
By SweetLD215 in forum New To JavaReplies: 19Last Post: 10-13-2010, 12:46 AM -
Regular expression to find strings beginning with a particular digit
By neha_sinha in forum AWT / SwingReplies: 9Last Post: 07-17-2010, 01:21 PM -
Polynomials Arithmetic
By thisisIT in forum New To JavaReplies: 3Last Post: 03-09-2010, 01:27 PM -
I can't find the right regular expression
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:36 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks