Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 4 : Trees & Binary Search Trees ( 8 % ) Completion requirements To do: Make a submission To do: Receive a grade According

Assignment 4: Trees & Binary Search Trees (8%)
Completion requirements
To do: Make a submission To do: Receive a grade
According to our suggested 13 week course schedule, this programming project should be completed and submitted by the Monday of Week 11. It is worth 8% of your final grade. Please refer to the Assignments Overview for details on the marking rubric and submission of work.
Complete the implementation of a DecisionTree, introduced in Chapter 19. This will require completing a number of methods from the source code for this chapter, particularly for LinkedBinaryTree. Your initial test should be the BackPainAnalyzer output from Listing 19.6 on page 746. Show test cases for at least two other correct traversals of this tree.
Develop and demonstrate another decision tree that is more complex the BackPainAnalyzer tree. Provide at least two correct traversals of this tree, as well.
PP 20.5(page 801)
Complete all missing methods in LinkedBinarySearchTree. Show test cases for all implemented methods being sure to include edge cases for methods where applicable.
Then, implement a balance tree method for this class using the brute force method described in Section 20.5 of your textbook.
Show test cases for two different degenerate trees, outputting the height of the tree before and after balancing the tree. Then, demonstrate insertions into a balanced tree that result in degenerate trees and rebalance the tree again.
Hint: Copy the elements into an ArrayList using an in-order traversal. Recursively build a balanced tree using a binary partitioning.
Criteria
Weighting
Correctness of solution: Algorithm is implemented and produces correct results for the stated problem.
/4
Testing: Submission of test exhibits to indicate the solution works for a range of cases (e.g., minimum and maximum inputs) and handles unexpected exceptions.
/2
Comments and documentation: Source code contains comments that explain in plain English what the code is intended to do. Note: Javadoc style is not required.
/2
Total
/8
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

2. Develop a persuasive topic and thesis

Answered: 1 week ago

Question

1. Define the goals of persuasive speaking

Answered: 1 week ago