Assignment - working with doubly linked lists

Assignment Help Data Structure & Algorithms
Reference no: EM131443811

Data Structures Assignment: Working with Doubly Linked Lists

In this assignment, you will implement the following four methods on an incomplete implementation of a doubly-linked list: 

  • append(const T& value): appends a node containing a specified value to the linked list;
  • remove(const T& value): removes a node containing a specified value from the linked list;
  • copy(const List<T> &rhs): copies all values from a specified linked list to the current linked list;
  • makeEmpty(): deletes all nodes in the linked list.

A doubly linked list is a linear collection of elements called nodes, each containing data and both previous and next pointers.   Insertion and removal of nodes in a linked list is efficient; only pointer reassignments are required unlike an array which may require shifting elements.  In this implementation of a doubly-linked list, the append() function is used to insert nodes; the remove() function is used to remove nodes.

1457_Figure.png

An understanding of copy constructors, destructors, and assignment operators is essential when working with data structures that use dynamic memory allocation.  Failure to implement these operations correctly may result in memory leaks.  The copy constructor, destructor, and assignment operator methods are not functional in this program because copy() and makeEmpty () have not been implemented.

Download the starter files for this assignment from the Files tab (Assignment6.zip).  Do not alter the class definition or driver code in any way.  Programs that crash are subject to a 50% penalty. Please submit the class implementation file only ("List.cpp"). PLEASE NOTE: You may not use any Standard Template Library (STL) classes for this assignment.  Use code provided by the instructor only.

Attachment:- Assignment Files.rar

Reference no: EM131443811

Questions Cloud

Define profit-maximizing level : At its profit-maximizing price and quantity, how much of a profit or loss is this monopolist realizing?  At its profit-maximizing level of output, is this monopolist productively efficient? Explain.  At its profit-maximizing level of output, is this ..
Making the amaon kindle : Read and analyze the case beginning on pages 533-534 . Answer the four discussion questions associated with the case. The questions must be answer using an essay format. Submit the paper following the guidelines of the APA including academic refere..
Culture could affect an opinion of a public : Question 1: How do you think culture could affect an opinion of a public? Gender? Race? Ethnicity? Religion/Faith? Question 2: What are the advantages of combining qualitative and quantitative research? Explain.
Electronic design automation : Cadence was the industry leader in the electronic design automation (EDA) industry. The EDA industry features software products used in the computeraided design of sophisticated integrated circuits (ICs).
Assignment - working with doubly linked lists : CS 20A: C++ Data Structures Assignment: Working with Doubly Linked Lists. In this assignment, you will implement the following four methods on an incomplete implementation of a doubly-linked list: append(const T& value): appends a node containing a s..
Develop a critical awareness of current factors : SHR012-6 To develop a critical awareness of current factors affecting leading and managing people and to demonstrate how effective policies can add value to the business' strategic goals.
Congestive hear failure and diabetes mellitus : Dr. rogers has diagnosed mrs. felicia arrant in the past with congestive hear failure and diabetes mellitus type 2 she comes to the clinic today complaining of chest pain and has a fever of 101.8. Code all of these conditions. In which order shoul..
Describe the statement : Adam was a university graduate with a double major in economics and art. A few years ago, Adam decided that he wanted to pursue a vocation that utilized both of his talents.
Functions of management and the new organization : The role of the manager in a business organization has been defined as a person who can implement the vision, purpose and mission of the business by creating processes, procedures, and short/long term goals that put the organization on a competiti..

Reviews

len1443811

3/29/2017 4:35:10 AM

Detailed Question: please see pdf and implement it. Download the starter files for this assignment from the Files tab (Assignment6.zip). Do not alter the class definition or driver code in any way. Programs that crash are subject to a 50% penalty. Please submit the class implementation file only (“List.cpp”). PLEASE NOTE: You may not use any Standard Template Library (STL) classes for this assignment. Use code provided by the instructor only.

Write a Review

Data Structure & Algorithms Questions & Answers

  Create a binary search tree

Create a Binary Search Tree

  Variables constants and data types

The following M.U.S.E. materials may help you with this assignment: Sequential Logic Structures and Variables, Constants, and Data Types

  Use big-o notation to categorize algorithms

Use big-O notation to categorize traditional grade school algorithms for addition and multiplication. That is, if asked to add two numbers each having N digits, determine individual additions should be performed?

  Calculate the correlations between er and pgr

Calculate the correlations between er and pgr, b1 and b2, and p1 and p2 (three correlations). What do these tell you about the relationships between these variables

  How do i created the pseudocode

Using the UML diagram and variable list , create Pseudocode for the program.

  Create an algorithm to produce list of customers

Create an algorithm to produce list of customers from Glad Rags Clothing Company's customer master file. Each record on customer master file contains the customer's number

  Write an algorithm to find the minimum in an array

Write an algorithm to find the minimum in an array.

  Pseudocode contains pseudo-code for a program

Pseudocode contains pseudo-code for a program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file.

  Prove that there can be at most 13 distinct common entries

Tyrell-III has n replicants and each has a particular model specification. There are many models. Unfortunately, there was an insurgency on the planet and some of the replicants destroyed a critical database that held replicant data.

  Provide definitions of all terms acronyms and abbreviations

Provide a description and scope of the software and explain the goals, objectives and benefitsof your project. This will provide the basis for the brief description of your product.

  Write a program that analyzes a selection of text

COSC 2007 -Data Structures Assignment - Building a Binary Search Tree. In this assignment, you are to write a program that analyzes a selection of text, counting the number of times each word appears in the text. Your word counts must ignore capita..

  Data structures

STACK; PUSH() and POP(). Static STACK Dynamic STACK Insertion Sort

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