Modify C program for creating a binary search tree of integers here are the instructions:

Feb 3rd, 2012
Studypool Tutor
Price: $15 USD

Tutor description

Modify C program for creating a binary search tree of integers here are the instructions: You are provided with the attached code for creating a binary search tree of integers. You should modify this code to work on character strings instead of integers. You will need to modify the the tree node structure and you will need to use the strcmp(s1,s2) function to test the lexigraphical order of the string you are inserting against the string pointed to by each node. Follow the same insertion convention as the program now shows for integers. Modify the print function to print the tree in dictionary order. This will require making the print function recursive so it will process sub-trees as it prints.

Word Count: 185
Showing Page: 1/2
/* CS 2073 Program 7 30 points see instructions on Blackboard*/#include #include #include /* define a binary tree node structure */struct _node { struct _node * left; struct _node * right; struct _node * parent; char* data; };typedef struct _node node_T;/* builds a BST of integers */void insert_node(node_T **n, char* value){ node_T * t; t = *n; if(t == NULL) { /* create a new empty node */ t = (node_T *)malloc(sizeof(node_T)); t->data = strdup

Review from student

Studypool Student
" Totally impressed with results!! :-) "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1831 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors