Find Jobs
Hire Freelancers

Write delete() method and test for a custom Binary Search Tree

$30-250 USD

Closed
Posted about 8 years ago

$30-250 USD

Paid on delivery
I have a hybrid of a binary search tree that was written specifically for domain names and related data. There are already insert, find, and compare methods, but I now have a need of delete functionality. I would like a delete method as well as a test fixture (nothing fancy, a simple main() will suffice) to demonstrate the functionality. This will be used in a large scale system Using another library (STL, boost) to implement the data structure is not an option. Rough idea for test fixture pseudocode: read in file of domain names (could be [login to view URL] as well as [login to view URL], one per line) for (i = 0; i < cmdline_arg_inserts; i++){ pop domain_name from the list; create entry object based on domain_name; [login to view URL](domain_name, entry, Parse_order++); } for (i = 0; i < cmdline_arg_deletes; i++){ [login to view URL](domain_name); } if (cmdline_arg_inserts > cmdline_arg_deletes){ cout remaining entries If you have a different idea for a test fixture, I am open to new ideas there. The functionality of the delete() method is what is more important.
Project ID: 9894289

About the project

8 proposals
Remote project
Active 8 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

About the client

Flag of UNITED STATES
Christiansted, United States
0.0
0
Payment method verified
Member since Mar 8, 2016

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.