Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!


San Jose State University Binary Tree Exercises

San Jose State University Binary Tree Exercises

Question Description

I’m working on a java question and need guidance to help me learn.

Binary search tree data structures is a simpler design than normal tree data structures. A binary search tree node basically consists of a left and right node property, a parent node property, and an object type data value. Your objective is to build a binary tree with capabilities of being able to search for a node that contains a specific data value, adding of new binary tree nodes, and removal of binary tree nodes.

TO DO #1

Write a class that does the following as shown in main, and then build your binary search tree as needed.

public static void main(String args[]) {

// Go through the for loop and a build a tree based on the elements in the array

// Build the tree as you traverse the array in order

// When building a binary search tree, the first number in the list is typically the root

ArrayList<String> listOfNumbers = new ArrayList<Integer>(












// TO DO #2: Create your data object class (call the class ItemData). This class needs to

// have these 2 data properties:

// a) an array value

// b) the array value (above) plus the ASCII (capaital) decimal value of the first

// letter of your last name. This is a sum value. Let’s call it an encoded value.

// ASCII table can be found at:


// TO DO #3: Create your binary search tree node (call this class BSTNode)

// – research the power point slide and figure out how to create BST node

// TO DO #4: Cycle through the above array and build your binary search tree

// hint you need to perform add/insertion of a node

// TO DO #5: After you build the tree, do a search for the number 25, and when the BST node

// is found, print out the following:

// a) all of the properties of the ItemData object (there are only two)

// b) the ItemNode data of the left and right BST nodes

// TO DO #6: Search for an ItemData that doesn’t exist i.e. choose the number 100 for

// searching. If there isn’t a BST node with the ItemData that you are looking for,

// You should print out i.e. “100 not found”

// TO DO #7: Remove the BST node that contains the number 5 (this is a leaf node)

// TO DO #8: Print the current contents of the tree

// – you can get some ideas from the recursion method in the Week 16

// powerpoint slide called “Iteration”

// – see below link for the concept:


// – Which traversal do you think this power point slide is representing??

// You will print out the value in two ways

// a) the encoded property value (this is decribed in To Do #1)

// b) the actual array value assuming the decoding key is provided (this key is the

// first letter of your last name)

// ADD print statements to describe the flow of main. Make main to tell a story.


This is all of the hints/info you are getting. You will add whatever you think is needed for the classes above to make this work. It’s your design. It’s your creation but follow the minimum requirements mentioned in the TO DO list.

In a nutshell, you will write classes, and write code (in main) for each of the TO DO items; Basically you will be demonstrating the features of your application. You must write the code in the order described in the main method.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Gold Grades only hire the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Gold Grades are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Gold Grades is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Gold Grades, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.