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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:00, eila3601
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
image
Computers and Technology, 24.06.2019 19:30, luckye
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, hailee24
What group of plants produce fruit? question 2 options: gymnosperms nonvascular plants seedless vascular plants angiosperms
Answers: 1
image
Computers and Technology, 25.06.2019 20:30, Tristabergeron5650
Need five questions ! take your time~question 1 excel is a tool used to a create a spreadsheet b design a brochure c make a presentation d write a letter question 2 a cell on an excel spreadsheet refers to a a type of document view b a page of the workbook c the rectangular box where a column and row intersect d the data in a worksheet question 3 tanya is entering the amount of money she has earned from babysitting onto an excel spreadsheet, but the autocomplete feature is not working. why? a autocomplete must be turned on before every entry. b autocomplete only works with professional spreadsheets. c autocomplete does not recognize types of currency. d autocomplete only works when the first character is text. question 4 which tab has formatting features to change the font style, color, size, and alignment? a file b home c insert d view question 5 brad uses excel to create a weekly schedule. he wants to keep using the same spreadsheet every year. one of his rows is titled "baseball," but the season has ended until next year. what is the most efficient way to modify the spreadsheet, so brad does not see baseball on his schedule but can easily get it back when the season starts again? a add a new comment with the start date of the next season b hide the row and unhide it when the new season begins c highlight the row in a different color to show the season has ended d start a new spreadsheet
Answers: 1
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 in other subjects:

Konu
Chemistry, 24.07.2021 14:00
Konu
Mathematics, 24.07.2021 14:00
Konu
Health, 24.07.2021 14:00