Question: #include #include #include #include BST . h / / * * * do not change the headers * * * / / you

#include
#include
#include
#include "BST.h"
//***do not change the headers***
// you solutions go here
// remember that you do not need to implement all of them
// follow the document to see which ones you need to implement
BST::BST(){
}
BST::~BST(){
}
std::shared_ptr BST::search(int target){
return nullptr;
}
std::shared_ptr BST::search(std::shared_ptr n, int target){
return nullptr;
}
std::shared_ptr BST::minimum(){
return nullptr;
}
std::shared_ptr BST::minimum(std::shared_ptr n){
return nullptr;
}
std::shared_ptr BST::maximum(){
return nullptr;
}
std::shared_ptr BST::maximum(std::shared_ptr n){
return nullptr;
}
void BST::insertValue(int val){
}
std::shared_ptr BST::insertValue(std::shared_ptr n, int val){
return nullptr;
}
void BST::deleteValue(int val){
}
std::shared_ptr BST::deleteValue(std::shared_ptr n, int val){
return nullptr;
}
bool BST::isBST(std::shared_ptr n){
return false;
}
bool BST::isBST(std::shared_ptr n, int low, int high){
return false;
}
void BST::preOrder(std::shared_ptr n, std::vector> &order){
}
void BST::inOrder(std::shared_ptr n, std::vector> &order){
}
void BST::postOrder(std::shared_ptr n, std::vector> &order){
}
Assignment Questions (95 pts)
Implement the insert method for binary search trees. Do not insert duplicate
values.
Implement the search method for binary search trees.
Implement isBST, a method for checking whether or not a tree is a binary
search tree.
Implement the pre-order traversal method for binary search trees.
How do I do this in C++?
 #include #include #include #include "BST.h" //***do not change the headers*** //

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!