subject

In this assignment, you have to read a text file (in. txt) that contains a set of words. the first line of the file contains 3 numbers (n, s, d). these numbers represent the sequence of input words in your file. n: represents the number of words to read to build a binary search tree. you have to write a recursive insert code to create and insert these words into the binary search tree. after inserting all the items, you should show the words in pre-order in order, and post order. so, you need to create three functions for this purpose. s: represents the number of words to search from the tree. these s-words are placed after the first n words in the input file. you need to implement a search function that will be able to search these words in your bst. additionally, the search words will also be used to look in the binary search tree and count number of words in the tree that come before the search word, alphabetically. you will need to create a recursive function with the following prototype countbefore(treenode* root, char searchkey[]), where treenode is the node structure of your tree. d: represents the number of words to delete from the bst. this list of words are placed after n+words in the input file. write a recursive delete function for your task. after deleting all the items, also show the tree in three different orders of traversals.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
What tool can discover and report computer errors and conflicts that occur when you first turn on a computer and before the operating system?
Answers: 1
question
Computers and Technology, 21.06.2019 22:10
Is the following an example of social media viral marketing? indicate your response by selecting yes or no. when you sign onto your favorite social networking website, you get messages from friends who have seen a television show they thought was a "must see! "
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
You know the right answer?
In this assignment, you have to read a text file (in. txt) that contains a set of words. the first l...
Questions
question
Mathematics, 16.11.2020 20:00
question
Mathematics, 16.11.2020 20:00
question
Chemistry, 16.11.2020 20:00
question
Social Studies, 16.11.2020 20:00
question
Biology, 16.11.2020 20:00
Questions on the website: 13722367