Question
SOMEONE PLEASE HELP Suppose you are given a list of students registered in a course and you are required to implement BST of student. Each
SOMEONE PLEASE HELP
Suppose you are given a list of students registered in a course and you are required to implement BST of student. Each student in the list has name, regNo and cGpa. You are also required to implement following function (Use this>>>>>>>>> Suppose you are given a list of students registered in a course and you are required to implement BST of student. Each student in the list has name, regNo and cGpa. You are also required to implement following functions.
int BSTheight(Node*) // takes roots as an argument and returns height of the tree
bool completeBST(Node *) // takes roots as an argument and returns true if BST is complete tree and false if its not complete
bool perfectBST(Node *) // takes toots as an argument and returns true if BST is a perfect tree and false if its not perfect. >>>>>>>>>>>>>>>>>>>>AND ADD THE FOLLOWING FUNCTION ON IT)
treeType(Node *) // When root node of a data structure is passed it checks following things
Is it a Tree?
Is it a Binary Tree?
Is it a BST?
The output will be the specific type of tree which is passed in the function.
For example
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started