Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Modify the 3 methods, put, get, and delete in RSequentialSearchST.java so that the list is maintained in increasing order of the keys. When implementing put,
Modify the methods, put, get, and delete in RSequentialSearchST.java so that the list is maintained in
increasing order of the keys. When implementing put, get and delete, make sure to take advantage of
the fact that the list is in order to avoid looking at all the items in the list. Also, whenever the list is
modified, you will need to make sure it is still in sorted order after the modification. All of these
functions must use recursion instead of loops. This means each one will need a private helper method
that takes a node the front of the list as an additional argument. Your RSequentialSearchST.java file
cannot contain any loops except in the keys method method which you are not changing. You may
not usecall the keys method in your code. Note: You are modifying the implementation of the
methods, but not their interface or contract. To the external world, the methods should behave exactly
as before. Make sure you code takes advantage of the sorted order. We will be checking for this and
you will receive no credit for a method that blindly checks the entire list when it isnt necessary.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started