Question: Instructions I am providing you with three source codes, BinarySearchTree.java, TreeNode.java, and RodCut.java. The source code can be found in the files section of canvas,

Instructions
I am providing you with three source codes, BinarySearchTree.java,
TreeNode.java, and RodCut.java. The source code can be found in
the files section of canvas, in a folder named HW3. Please modify the
skeleton code to solve the following tasks.
Recommendation: Separate each task into a new project folder.
BinarySearchTree.java, and TreeNode.java will stay in the same
package folder since BinarySearchTree.java utilizes the class in
TreeNode.java.
1. Implement the inorder_tree_walk(), search(), iterative_search(),
minimum(), maximum(), successor(), insert() methods for Binary
Search Trees in BinarySearchTree.java as discussed in lecture.
Follow the pseudocode for implementation.
2. Implement the memoized_cut_rod(), memoized_cut_rod_aux(),
bottom_up_cut_rod() methods for RodCut in RodCut.java as
discussed in lecture. Follow the pseudocode for implementation.
3. Extra Credit: uncomment and implement
extended_bottom_up_cut_rod() for RodCut in RodCut.java
Submission:
1. Work individually
2. Submit all codes and report as a last_name.zip file
3. Submit on time, a late submission will receive a penalty of a lowered
letter grade for each day it's late. After three days it's zero.

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 Programming Questions!