binary search tree

Program Specification:

Build a binary search tree, using links (not an array) for 15 records. The data in these records will hold names and their associated weights. Read the data from the screen.

Required functionality (Each # should be separate methods):

1. Build the tree from the unique set of names (names are the key value) and their associated weights.

2. Execute a preorder traversal 3. Execute an inorder traversal 4. Execute a postorder traversal 5. Find and print the height of the tree using recursion, do not add a height variable to

the tree structure, the algorithm stack should hold this. 6. Determine the number of leaves and print the result (remember a leaf has no

children). 7. Implement search functionality that will search for a name and indicate the weight

for that individual if they exist in the structure, otherwise stating no match exists. 8. Determine the lowest weight contained in the tree. 9. Find the first name in alphabetical order (this should not go through every node,

unless the tree happens to be a linked list).

Turning in the assignment:

Submit the following items:

1. Source code. 2. Sample output. 3. The .exe file from your debug folder.

Copy the output and place this as a comment at the bottom of your source code.

Grading:

 

“Get 20% OFF on a Similar Assignment!! Place Your Order and Use this Coupon Code: SUPER20”

buy custom essays


binary search tree was first posted on March 11, 2020 at 5:29 pm.
©2020 “Buy Custom Essays“. Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at ukbestwriting@gmail.com

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"