Implement a fastdefaultlist class that represent

Assignment Help JAVA Programming
Reference no: EM131268479

A Fast Default List

Starting with the SkipListList class, implement a FastDefaultList class that represents an infinite list with indices 0,1,2,3,...,∞ When we start, every value in this list is assigned the default value null. Otherwise, this class behaves just like a List; it has the add(i,x), remove(i), set(i,x), and get(i) that behave just like the same methods in a list. Each of these operations should run in O(log n) time. The size() method is already implemented for you, it returns the largest value you can store in an int

Again, this is not a hack job. First understand how the SkiplistList class works and figure out how you can modify it to do what this question asks.

Note: A DumbDefaultList class has already been implemented for you. You can use it to help test correctness of your implementation.

Hint: Work slowly. There is not much code you have to change in the FastDefaultList.java file (which is mostly just a copy of SkiplistList), but it is delicate. Checkpoint your work often and test carefully as you go.

Part II: Testing

Within the Tester class, write the following functions, all of which return true if all tests are successful or false if any test fails.

1 testPart1(t) function that tests if the Table t satisfies the requirements for Question 1:

1 This function should do all kinds of correctness tests.

2 This function should test that the performance of all operations is what it should be for a FasterTable

2 testPart2(dl) function that tests if the DefaultList dl satisfies the requirements for Question 2:

1 This function should do all kinds of correctness tests.

2 This function should test that the performance of all operations is what it should be for a FastDefaultList

Attachment:- DumbDefault.rar

Verified Expert

This assignment is about the linked list and its inbuilt function like set, get and the findpred. The program "FastDefaultList.java" is to be updated so that the methods like get, set and findPred behave like the internal linked list. Under this assignment, the functionality of get,set and the findPred functionality is provided.

Reference no: EM131268479

Questions Cloud

Determining the historical data : As the owner of a tennis club in a wealty community, you must decide on membership dues and fees for court time. Based on historical data, you understand that there are two types of tennis players in your community. "Serious" players with demand
Describe the current operational environment : Describe the Current Operational Environment. What are the impacts and what would be your military solution to obtaining the goals of the national security strategy?
Treated in the process of raising and slaughtering animals : Should people be vegetarian? If so, why? If not, is it relevant how animals are treated in the process of raising and slaughtering animals? Do we violate nature itself when we do acts such as mountaintop removal for coal, strip-mining, clear-cutting ..
What is the average number of customers : ENIN 331 - Simulation and Modeling Lab Assignment. About how many of each type of customer does Dan process per day? What is the average number of customers of each type waiting to get a haircut? What is the maximum
Implement a fastdefaultlist class that represent : Implement a FastDefaultList class that represents an infinite list with indices 0,1,2,3,...,∞ When we start, every value in this list is assigned the default value null.
Find the error probability for an fh spread spectrum : The interference on the channel is AWGN. The FSK demodulator outputs are square-law-detected and passed to the decoder, which performs optimum soft-decision Viterbi decoding as described in Chapter 8. Assume that the hopping rate is 1 hop per code..
Social marketing focuses on changing individual behavior : Social Marketing focuses on changing individual behavior rather than changing the system, which is currently the more dominant CQI approach (see Berwick). Argue the pros and cons of individual versus systems change
What are the three levels of the federal court system : What are the three levels of the federal court system? Does the United States Supreme Court hear every case that is appealed to it from the State and Federal Courts?
What is the processing gain for the system : A slow FH binary FSK system with noncoherent detection operates at Eb/J0 = 10, with a hopping bandwidth of 2 GHz, and a bit rate of 10 kbits/s.

Reviews

inf1268479

11/7/2016 7:14:59 AM

i need help with the fastdefaultlist only- The FindPred, get and set methods. i'm expecting it in about 15 hours. if its okay, please let me know. infect if i can get help with only the FindPred method, that'll be fine. the expert shouldn't change the package and the methods. i need help with the FindPred, get and set methods and the package should remain as comp2402a3. Testing Part 2. Test for Part 2 Correctness took 0.100000 seconds. Exception for Part 2 Correctness: java.lang.IndexOutOfBoundsException java.lang.IndexOutOfBoundsException at comp2402a3.FastDefaultList.set(FastDefaultList.java:105) at a3checker.Part2CorrectTest.test(Part2CorrectTest.java:25) at checker.AtomicTest$RunnableTest.run(AtomicTest.java:95) at java.lang.Thread.run(Thread.java:745)

len1268479

11/7/2016 1:31:56 AM

Everything needed is in zip file. i need help on just the FastDefaultList only - There is not much code you have to change in the FastDefaultList.java file (which is mostly just a copy of SkiplistList), but it is delicate

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd