# Purpose: the purpose of this assignment

Purpose: The purpose of this assignment is to give you exercise to

Become familiar with tree, binary tree

Become familiar with linked binary tree structure and array-based binary

tree structure

Exercise 1:

For the following tree, answer following questions:

a. Which node is the root?

b. What are the internal nodes?

c. How many descendents does node cs016/ have?

d. How many ancestors does node cs016/ have?

e. What are the siblings of node homeworks/?

f. Which nodes are in the subtree rooted at node projects/?

g. What is the depth of node papers/?

h. What is the height of the tree?

Exercise 2:

1. Draw a (single) binary tree T such that:

a. Each internal node of T stores a single character

b. A preorder traversal of T yields EXAMFUN

c. An in order traversal of T yields MAFXUEN

2. Assume the above binary tree is arranged in a Linked binary tree structure, draw a figure to represent the binary tree [hint: take a look at figure 7.14]

3. Discuss the pros and cons of the array-list representation of a binary tree.

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.