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

  Question 1write the selection sort algorithm as a template

question 1write the selection sort algorithm as a template function using the less than operator to compare two

  Find histories and terminal histories of the game

Find histories and terminal histories of the game - Find strategies of each player.

  Give the steps for to build priority queue after deque

Give the steps for to build priority queue after deque

  Modifying a database design in visio

Designing Databases with Visio Professional: A Tutorial," to help you complete Section 1: Visio Database Design.

  Various search trees and numerous sorting techniques

This week we were introduced to various search trees and numerous sorting techniques. Taking into consideration what you have learned this week, discuss how you can help Bob with his problem.

  Give an algorithm that takes n lines as input

Give an algorithm that takes n lines as input and in O(n log n) time returns all of the ones that are visible. Figure 5.10 gives an example

  What do these two indexes represent

What do these two indexes represent - what are the limits for each one of these indexes?

  Choose at least two operating system process-scheduling

write 400-600 words that respond to the following questions with your thoughts ideas and comments. this will be the

  Write a program to test your implementation of stack class

Write a program to test your implementation of this Stack class. You also need to provide at least 4 test cases for this program to test all the methods including constructor, push, pop, peek and size, and to test dynamic resizing

  How to find local minimum of t using only o(log n) to node t

A node v of T is a local minimum if the label x_v is less than the label x_w for all nodes w that are joined to v by an edge.

  How space efficient is your hamming code

Construct a specific error in more than this number of bits and explicitly show that the Hamming algorithm fails to detect the error. How space (number of bits required) efficient is your Hamming code?

  In what sequence were the data entered

The binary search tree in Figure was created by starting with a null tree and entering data from the keyboard. In what sequence were the data entered?

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