For each of the trees in Exercises 4 through 7: (a) Complete an inorder traversal, and list the vertices in the order visited. (b) Complete a postorder traversal, and list the vertices in the order visited. 4. P Q R 5. M N O P Q 6. A B C D E F G H I J K L 7. Q R S T U V W X Y Z 8. Evaluate the following expressions written in postfix form. (a) 36 - 7 * 3 + (b) 3 4 5 2 2 / + * - (c) 2 3 + 3 7 - - 3 * 4 + (d) 4 4 + 1 2 - * 6 3 / 3 - +
Added by Darlene W.
Close
Step 1
a) 36-7*23+37 Inorder traversal: 36, -, 7, *, 23, +, 37 Postorder traversal: 36, 7, 23, *, -, 37, + Evaluation: (36 - (7 * 23)) + 37 = (36 - 161) + 37 = -125 + 37 = -88 Show more…
Show all steps
Your feedback will help us improve your experience
Adi S and 66 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In which order are the vertices of the ordered rooted tree in Exercise 7 visited using a postorder traversal?
Trees
Tree Traversal
In which order are the vertices of the ordered rooted tree in Exercise 7 visited using an inorder traversal?
In which order are the vertices of the ordered rooted tree in Exercise 8 visited using a postorder traversal?
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD