Assignment #4.pdf

Assignment #4.pdf - Santa Monica College CS 20A Spring 2016...

• Homework Help
• 3

This preview shows pages 1–3. Sign up to view the full content.

Santa Monica College CS 20A ‐‐‐ Spring, 2016 Assignment #4 Last Name: First Name: Student ID: Questions: Answer the questions below. A printable version of this assignment is available here. 1. Draw the requested tree in the space provided. (There may be many correct answers...) a. Draw a full binary tree with a height of 2. Go back and place data into the tree nodes so that the tree drawn becomes a valid BinarySearchTree. b. Draw a complete binary tree with a height of 2. Go back and place data into the tree nodes so that the tree drawn is a valid BinarySearchTree. 2. Build A BinaryTree based on the iteration data shown. Draw the resulting tree in the space provided. (There might be many correct answers...) a. Build A BinaryTree whose PostOrder Iteration is:11, 5, 1, 20, 26, 41, 8 b. Build A BinaryTree whose LevelOrder Iteration is:11, 5, 1, 20, 26, 41, 8

This preview has intentionally blurred sections. Sign up to view the full version.

Is the tree you drew a valid BinarySearchTree? yes no Is the tree you drew a valid BinarySearchTree?
This is the end of the preview. Sign up to access the rest of the document.
• Spring '15
• Jupe

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern