Question: Revise the BSTInterface and the BinarySearchTree class to include the following methods: ( 7 2 points @ 1 2 points each ) A public method

Revise the BSTInterface and the BinarySearchTree class to include the following methods: (72 points @ 12
points each)
A public method that returns a count of the number of nodes in the tree that contain a value less than or
equal to the argument value. The header is: public int countLess(T maxValue).You can either use a private
helper method that is recursive or write it using iteration.
A public method that returns a count of the number of nodes in the tree that contain a value greater than or
equal to the argument value. The header is: public int countGreater(T minValue).You can either use a private
helper method that is recursive or write it using iteration.
Add a public method height that returns the height of the tree. The header is: public int height(). Use a private
helper method that is recursive.
Implement the Balance and InsertTree methods from the pseudocode given in section 7.8 on pages 469 thru
471 in the text. This is where you are balancing your BST Tree.
Implement and add a Breadth-First Traversal (Level Order Tree Traversal) from the pseudocode given in
chapter 7 on pages 426-427.
Implement and add a fRatio_method. The method determines the fullness ratio of your binary search tree. It is
the ratio between the trees minimum height (based on the number of nodes in the tree and the trees actual
height). For example, if a trees minimum height is 3 and its actual height is 3 then its fullness ratio is 1.00 and
it is relatively balanced. However, if a trees minimum height is 3 and its actual height is 9 then its fullness
ratio is 0.33 and the tree is unbalanced.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!