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

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

  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.

  Print the contents of the array

Prepare a second loop that prints the contents of the array

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

  Simulate a simple multiuser computer system

Prepare a java program to simulate a simple multiuser computer system

  Create a class safestack that implements a stack of strings

Create a class SafeStack that implements a stack of strings

  Rock-paper-scissors :- java problem

Design decision marks are based on how you implemented our programs/classes.

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  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.

  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.

  Java problem - g queue

A queue is an ordered collection of items in which the removal of items is restricted to the FIFO ( rst in rst out) principle.

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