Question: You have to use this code also: #include using namespace std; #include GRAPH.h void main() { char vertex[] = {'S', 'R', 'G', 'B', 'O', 'T',

You have to use this code also:
#include
void main() { char vertex[] = {'S', 'R', 'G', 'B', 'O', 'T', 'V'}; int numVertices = sizeof(vertex)/sizeof(char); GRAPH
g.setEdge('S', 'R', 10, true); g.setEdge('B', 'S', 80, true); g.setEdge('S', 'T', 120, true); g.setEdge('G', 'R', 40, true); g.setEdge('R', 'O', 60, true); g.setEdge('R', 'V', 120, true); g.setEdge('R', 'T', 90, true); g.setEdge('O', 'G', 100, true); g.setEdge('G', 'B', 30, true); g.setEdge('O', 'B', 80, true); g.setEdge('T', 'O', 20, true); g.setEdge('V', 'T', 30, true);
cout
Enter integers through the keyboard. While entering the numbers, create a binary search tree. For a NULL node enter - 1. For the created binary tree write its preorder, inorder, postorder and level order traversals. Then, add a function to find the node with the qreatest value in the tree (its value and address). If the first value that is entered is equal to 1, then don't print the tree, its traversals or the node with the greatest value, but instead only print a message that the tree is empty. Example output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
