Write a class that implements an ordered list of strings

Assignment Help JAVA Programming
Reference no: EM134315

1: Linked Lists

In this problem you will write a class that implements an ordered list of Strings. Your class will able to add and remove elements in the list at arbitrary positions. Your implementation will use linked lists and recursion (when appropriate). Your implementation should be ecient.

Create a Java class called LinkedList that extends the LinkedListABS class. Your class must have a public constructor that has zero arguments (which creates an empty list of Strings). You may add as many private attributes and helper methods in your class as you need. You are not allowed to use an array, ArrayList, or any other container class that Java provides to store your list. You must use a linked list with the Node class provided. Mark breakdown: style:5, correctness:15

2: Copy

In the provided CopyLinkedList class, implement the copy() method as described. The resulting (copied) list should not share any memory with the input list. (That is, the list that makes up the copy must have its own Nodes.) Mark breakdown: correctness:10

3: Queue

In this problem you will implement a queue of Strings using a linked list. For this you will need to decide how to deal with adding and removing nodes (in a FIFO manner) eciently.

Your enqueue and dequeue methods should not use recursion (or iteration). A queue with less Strings in it is smaller (less than) a queue with more Strings. Two empty queues are considered the same. If two queues have the same size (bigger than 0), the order is determined alphabetically using the rst string in each queue.

Create a Java class called Queue that extends the provided QueueABS class. Your class must have a zero argument constructor that creates an empty queue. Your implementation must use linked lists with the Node class provided. Do not use recursion or iteration in your method, unless otherwise told to do so (in the toString() method for example). Your methods must be ecient.

4: Mergesort

In this problem, you will implement the mergesort sorting algorithm using linked lists.

Complete the methods in the Merge class that is provided. Your nal method (sort()) is the mergesort method. It will sort lists of Strings alphabetically. It should use both the merge() and split() methods in it. (You will also need the copy() method from the CopyLinkedList class.)

Reference no: EM134315

Questions Cloud

You have to review vhhr site : You have to review vhhr and fill me in with suggestions based on your views on the feedback and website based on general comments on trip advisors, orbits and some other website comments on other sites.
Differences between a company and a partnership : What are some of the key differences between a company and a partnership What decisions must be made, and what steps have to be taken, to incorporate the new company?
Write a paper on experimental psychology : Write a paper on Experimental psychology. This paper is called a Jury paper
Create a java class called samearraysexception : Create a Java class called SameArraysException that extends the Exception class.
Write a class that implements an ordered list of strings : In this problem you will write a class that implements an ordered list of Strings.
What are the potential benefits of each stage : Why an ERP systems journey may never end What are the possible stages in an ERP systems journey? What are the potential benefits of each stage?
Determine the decision of java : Determine the decision of Java as the platform to develop this program. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utiliz..
Implement a class quiz : Implement a class Quiz that implements the Measurable interface.
Design a single class that expresses the commonality : Design a single class that expresses the commonality of these concepts.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Compute area and perimeter of a polygon

Create a project that would let a user compute area and perimeter of a polygon

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Write a program to register students for a college

Students have names, addresses and courses. Implement the interface class RegisterStudent. RegisterStudent has one method, public boolean register, which returns the boolean value of true or false if the student is successfully registered for the ..

  Java class, array, link list , generic class

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

  Design an abstract data type in java

Design an abstract data type in Java that represents a musical pitch

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Distributed systems

Build robust, secure distributed systems using advanced programming techniques

  Create a project in eclipse

Create a new project

  Mean and standard deviation using using eclipse

Java programming to calculate Mean and standard deviation using Using Eclipse.

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