Google Answers Logo
View Question
 
Q: Graph and Tree Problem ( Answered,   0 Comments )
Question  
Subject: Graph and Tree Problem
Category: Computers > Graphics
Asked by: math01-ga
List Price: $2.00
Posted: 17 Nov 2002 10:06 PST
Expires: 17 Dec 2002 10:06 PST
Question ID: 109377
4. What is the value of the following prefix expression:

   + - *235 / * *234

where A**B = AB?
Answer  
Subject: Re: Graph and Tree Problem
Answered By: aditya2k-ga on 18 Nov 2002 07:08 PST
 
Hi math01-ga,

  Good day and thanks for your question.

The prefix expression 

[1]   + - * 2 3 5 / ** 2 3 4  ----> * 2 3 = 2 * 3 = 6
[2]   + - 6 5 / ** 2 3 4      ----> - 6 5 = 6 - 5 = 1
[3]   + 1 / ** 2 3 4          ----> ** 2 3 = 2 ** 3 = 8
[4]   + 1 / 8 4               ----> / 8 4 = 8 / 4 = 2
[5]   + 1 2                   ----> + 1 2 = 3
[6]   3                       ----> Answer


Hence your final answer is 3

The tree representation of this is [I hope this formats out properly]
            
              [+]
     
          /         \

       [-]           [/] 

      /   \         /   \
 
   [*]    [5]     [**]  [4]

  /   \          /   \
 
[2]   [3]      [2]   [3]


I hope this answers your question. If you have any clarifications,
please fell free to ask.

Thank you for using this service and have a nice day

Warm Regards,
aditya2k
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy