Question: Class BST_Class void clearTree () Clears tree private StudentClassNode copyConstHelper (StudentClassNode copiedRef) Copy constructor helper, recursively adds nodes to duplicate tree void insert (StudentClassNode inData)
Class BST_Class
| void | clearTree() Clears tree |
| private StudentClassNode | copyConstHelper(StudentClassNode copiedRef) Copy constructor helper, recursively adds nodes to duplicate tree |
| void | insert(StudentClassNode inData) Insert method for BST |
| private void | insertHelper(StudentClassNode localRoot, StudentClassNode inData) Insert helper method for BST insert action |
| boolean | isEmpty() Test for empty tree |
| java.lang.String | outputInOrder() Provides inOrder traversal for user as a string |
| private void | outputInOrderHelper(StudentClassNode localRoot) Provides inOrder traversal action helper |
| java.lang.String | outputPostOrder() Provides postOrder traversal for use as a string |
| private void | outputPostOrderHelper(StudentClassNode localRoot) Provides postOrder traversal action helper |
| java.lang.String | outputPreOrder() Provides preOrder traversal for user as a string |
| private void | outputPreOrderHelper(StudentClassNode localRoot) Provides preOrder traversal action helper |
| private StudentClassNode | removeFromMin(StudentClassNode minParent, StudentClassNode minChild) Searches tree from given node to minimum value node below it, stores data value found, and then unlinks the node |
| StudentClassNode | removeNode(StudentClassNode inData) Removes data node from tree using given key |
| private StudentClassNode | removeNodeHelper(StudentClassNode localRoot, StudentClassNode outData) Remove helper for BST remove action |
| StudentClassNode | search(StudentClassNode searchData) Searches for data in BST given StudentClassNode with necessary key |
| private StudentClassNode | searchHelper(StudentClassNode localRoot, StudentClassNode searchData) Helper method for BST search action |
Class StudentClassNode in JAVA
| char | gender member data - gender |
| double | gpa member data - gpa |
| StudentClassNode | leftChildRef member data - left child reference |
| java.lang.String | name member data - name |
| StudentClassNode | rightChildRef member data - right child reference |
| int | studentID member data - student ID
ASSIGNMENT SPECIFICATIONS
- Students must develop the code required to implement a BST class (provided below) * - Students must use their own linked tree nodes but not any other Java data types, and students may not use any Java utilities such as length() or size(); no class methods or data other than created in the assigned class may be used. Any utilities required for operations must be written by the student * - Students will also document all classes and methods using the Javadoc commenting process; comments are not required to be exactly the same as found in the supporting document (below) but they should be semantically equivalent * - Students will upload only the BST_Class.java file to this assignment; any other uploaded files will result in a reduction of the project grade, and in some cases, may cause a complete loss of credit (e.g., uploading *.class, or other unusable files) * |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
