subject

Binary search trees with lazy deletion implement binary search tree class with lazy deletion that has treenode as nested class in java design the class, treenode to have following class variables int key: // all keys are in the range 1 to 99 treenode leftchild treenode rightchild; boolean deleted your program method must have routines to do the following operations. insert //should insert a new element to a leaf node. if new element is a duplicate then do nothing. if the new element is previously deleted one, then do not add other copy just mark the previous deleted as valid now delete //should not remove the element from the tree. it should just mark the element as deleted findmin //should return the minimum element, but if it is marked deleted return appropriate minimum findmax //should return the maximum element, but if it is marked deleted return appropriate maximum contains //should return true if a particular element is in the tree and is not marked as deleted in order tree traversal //should print the in order traversal of the tree. indicating with symbol for elements that are marked deleted height ( returns the height of the tree) //return the height of the tree, count all the elements even the ones that are marked as deleted no of nodes (returns number of nodes+number of deleted nodes) //print size of the tree, count all the elements even the ones that are marked as deleted, and

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
question
Computers and Technology, 25.06.2019 00:00
Into which of these files would you paste copied information to create an integrated document? a. mailing list b. destination c. source d. data source
Answers: 1
question
Computers and Technology, 25.06.2019 08:30
What is the chief concern of cloud computing?
Answers: 1
You know the right answer?
Binary search trees with lazy deletion implement binary search tree class with lazy deletion that ha...
Questions
question
English, 31.03.2020 22:34
question
Mathematics, 31.03.2020 22:35
Questions on the website: 13722367