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

  Create four classes

Create four classes: Account.java, Checking.java, Savings.java, and AccountArray.java.

  Design a single class that expresses the commonality

Design a single class that expresses the commonality of these concepts.

  Create a class safestack that implements a stack of strings

Create a class SafeStack that implements a stack of strings

  Compilation and Execution - JAVA problem

Style marks are based on how your submitted code looks. Remember that good code is easily readable (and understandable) by someone who did not write it. For assignments, you should also include your name, student number, what course this is, what ass..

  Implementation of memory management

Implementation of memory management

  Java program to create a tree

Java program to create a tree, generate class - BottomUpTwoThreeFourTree, BottomUpTwoThreeFourTree,

  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.

  Creating the gui for the game interface

A GUI-based application that allows a user to play a simple trivia game

  Design a course registration system

Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

  Rock-paper-scissors :- java problem

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

  Java project

Prompt the user for an int between lower and upper boundary.

  Write a recursive program

Write a recursive program to compute the number of ways in which an integer k can be written as sum

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