Question: Lab 6 - 2 Binary Search Tree Assignment Details The focus of these problems will be working with information extracted from a municipal government data
Lab Binary Search Tree Assignment Details
The focus of these problems will be working with information extracted from a municipal government data feed containing bids submitted for auction of property. The data set is provided in two commaseparated files:
eBidMonthlySales.csv larger set of bids
eBidMonthlySalesDeccsv smaller set of bids
This assignment is designed to explore the binary search tree algorithm using bids loaded from a CSV file.
We provide a starter console program that uses a menu to enable testing of the hash table logic you will complete. It also allows you to pass in the path to the bids CSV file to be loaded, enabling you to try both files. In this version the following menu is presented when the program is run:
Menu:
Load Bids
Display All Bids
Find Bid
Remove Bid
Exit
Enter choice:
The BinarySearchTree.cpp program is partially completed it contains empty methods representing the programming interface used to interact with a hash table. You will need to add logic to the methods to implement the necessary behavior. Here is the public API for BinarySearchTree that you have to complete:
public:
BinarySearchTree;
virtual ~BinarySearchTree;
void InsertBid bid;
void Removestring bidId;
Bid Searchstring bidId;
You will need to perform the following steps to complete this activity:
Setup: Begin by creating a new C Project with a Project Type of "Hello World C Project"
a Name the project BinarySearchTree remember to pick the correct compiler in Toolchains and click Finish. This will create a simple BinarySearchTree.cpp source file under the src directory.
b Download the starter program files and copy them to the projects src directory, replacing the existing autogenerated one. Remember to rightclick on the project in the Project Explorer pane on the left and 'Refresh' the project so it adds all the new files to the src folder underneath.
c Because this activity uses C features you must follow the instructions under C Compiler Version in the C Development Installation guide to add stdc compiler switch to the Miscellaneous settings.
Task : Define structures for tree node, housekeeping variables
Task : Implement inserting a bid into the tree
Task : Implement removing a bid from the tree
Task : Implement searching the tree for a bid
Hint: Lab used a Node structure for implementing a linked list.
Here is sample output from running the completed program:
BinarySearchTree ~DownloadseBidMonthlySalesDeccsv
BinarySearchTree.exe DownloadseBidMonthlySalesDeccsv
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
