Find Jobs
Hire Freelancers

488080 c++ project (binary search trees)

N/A

Completed
Posted about 13 years ago

N/A

Paid on delivery
Program Deadline: March 4 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 seperate 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, highest and average weights 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).
Project ID: 2233991

About the project

1 proposal
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hey, Please check pm. Thanks!
$30 USD in 1 day
5.0 (94 reviews)
5.4
5.4

About the client

Flag of UNITED STATES
San Diego, United States
5.0
5
Payment method verified
Member since Mar 10, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.