Create a ring class along with functions for inserting data

Assignment Help Computer Engineering
Reference no: EM131906911

Problem

We will define a ring to be sorted bi-directional circular list that is implemented using links. Each node in the ring will have a backward and forward link and a data entry. The ring will be sorted in ascending order following the forward links. Of course, since the ring is circular, there is a discontinuity in the sort at the head (the start/end point) of the ring. Create a templated ring class along with functions for inserting and deleting data, and a function that displays the contents of the ring. You must use the LinkedSortedList ADT from our textbook as the base code for your solution. (See attached ZIP file.) You will need to update a few portions of the code so that it supports bi-directional linked lists. Write a driver that inserts 50 unique random int's into a ring, displays the ring in both forward and backward directions by following the links, and then deletes all of the odd values that were inserted. Perform the deletions by saving a list of the odd values (say, in a vector or array) and then using your delete function - don't write a special function that traverses the ring, deleting odd values as it goes. Should your delete function follow the forward or backward links when deleting? Display the ring again in both forward and backwards directions after performing the deletions.

Reference no: EM131906911

Questions Cloud

Evaluate the distinction many make between gender and sex : Evaluate the distinction many make between gender and sex (you may need to do some online research in addition to using the text).
Define and discuss about the social stratification : Social stratification is the ranking of individuals in a hierarchy of unequal wealth, occupational prestige, and power.
What is being maximized : What is being maximized? What is the profit equation in terms of x? Show your graph.
Critically analyse your experience undertaking assessment : Critically discuss how your experience in Assessment Task Two aligned (or not) with project management principles. Analyse your experience against
Create a ring class along with functions for inserting data : Create a templated ring class along with functions for inserting and deleting data, and a function that displays the contents of the ring.
What are the main ideas in steinberg article : Explain what Zewei's article from the week 4 reading was all about. Be sure to identify the thesis and conclusions. What are the main ideas in Steinberg's.
What are some ways we can help clients of color get satisfyi : What are some ways we can help clients of color get satisfying services if management still refuses to hire people of color?
Write a program that can be used by a concert hall : Write a program that can be used by a concert hall to sell tickets for performances. The auditorium has 15 rows of seats, with 30 seats in each row.
Project proposal - explain the background of organisation : MNG00785 - Project Management - Project Charter should explain the background of the organisation where this project will be carried out, the objectives

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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