Pseudo code implemented for both the stack and queue

Assignment Help Data Structure & Algorithms
Reference no: EM13808234

The task this week is to complete the following 2 structures using a linked list:

  • Stack
  • Queue

Assume the occurrence of a linked list node is represented by the object "Node" and its "Data" and "NextRef" attributes.

Part 1: Assume a "Head" node exists with the NextRef attribute pointing to the first node in the stack or being null if the stack is empty. Create pseudo code for the following 3 stack methods, showing the logic tied to the inverted list. Include a summary of these actions.

push( item )

pop( )

display( )

Part 2: Assume "Front" and "Rear" nodes exist with the "NextRef" attributes pointing to the first and last nodes of the queue or being null if the queue is empty. Create pseudo code for the following 3 queue methods, showing the logic tied to the inverted list. Include a summary of these actions.

enqueue( item )

dequeue( )

display( )

Deliverables:

  • Pseudo code implemented for both the stack and queue methods
  • Documented pseudo code
  • Add the completed pseudo code and discussion to the Key Assignment template Section 1: Lists, Stacks, and Queues.

Reference no: EM13808234

Questions Cloud

Calculate the holding period return on a before-tax basis : "Mary and Nick Stalcheck have an investment portfolio containing 4 investments. It was developed to provide them with a balance between current income and capital appreciation. Calculate the holding period return on a before-tax basis for each of the..
Explain bureaucratic and patron-client organizations : executive summary in which you compare distinctions between bureaucratic and patron-client organizations. Include similarities and differences between the main models of organized crime, and explain why the models are important for understanding o..
Collaborative environment for a multinational corporation : Your team has been hired to create a "modern" virtual collaborative environment for a multinational corporation. You are shown a conference room that has a 10-year-old speakerphone in the middle of a conference table and a video projector hanging f..
Etiquette issues for video conferencing : List eleven etiquette issues for video conferencing, identify the one you find people violating most frequently, and suggest a technique for handling the situation tactfully.
Pseudo code implemented for both the stack and queue : Pseudo code implemented for both the stack and queue methods and Documented pseudo code
Apply a sociological perspective to the social world : Apply a sociological perspective to the social world
Analyze corporate social responsibility and its importance : Analyze corporate social responsibility and its importance in new business ventures. How do you demonstrate your commitment to corporate social responsibility in your business plan?
What is the bonds yield to maturity : A company’s bonds have a par value of $1,000 par, 7.8% coupon rate and 30-year maturity. The bonds currently sell for $1,107.20 and pay coupon semi-annually. What is the bonds' yield to maturity? A Company's last dividend was $1.35. The dividend grow..
Discuss the economy by giving an historical overview : Discuss the economy by giving an historical overview of the three major revolutions that have taken place. How did each of the three revolutions change the lives of the people?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Create a data flow diagram

Create a data flow diagram for Online library management system. It should include search, hold, add items, issue, recall, and add user. It should support books, dvds, and cds. The flows should include each data element, the levels must be balance..

  What is the time complexity

Design an algorithm for finding the closest two numbers in the input list - What is the time complexity? Is it probable to improve the algorithm if the input is a sorted list?

  What is the worst case of avl tree?

the binary tree can look like a linked list in the worst case. What is the worst case of AVL tree? To get an idea, do the following: What is the minimum # of nodes in each of the AVL trees with heights 2, 3, 4, and 5?Explain please.

  Design a flowchart using visual logic

Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Logic. Continually accept data regarding the purchase of fruit until a..

  1 early printings of clrs3 say on pages 546-547 we treat

1. early printings of clrs3 say on pages 546-547 we treat min and max differently the element stored in min does not

  Maintain the set of campers enrolled in camp posanivee

Campers are enrolling and withdrawing from camp faster than her primitive filing system can handle, and she has turned to you. You have been offered free meals at the mess hall in return for a program that will help her keep track of who is enroll..

  Java program to find largest and smallest numbers

Create a Java program that will search a text document of strings representing numbers of type int and will write the largest and the smallest numbers to screen.

  Design an algorithm to find the selling price of item sold

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Describe a fast algorithm for finding the integer

Describe a fast algorithm (with ~N array lookups of A) for finding the integer in A that is repeated. Can you give the algorithm ASAP?

  Eliminate every other integer beginning with the integer

the Collections class which has an algorithm called rotate(List list, int distance) which can be used to rotate a list left or right. use to eliminate every other Integer beginning with the Integer in the second position. Remember that if you rem..

  Identify classes, functions, and algorithms

Detailed requirements. Using guidance provided in the text, (specifically chapters 12 and 13) develop your detailed requirements. Develop as many as possible but you must cover some detailed requirements for each of your high level requirements.

  Proof the correctness of the algorithm

Take a look at the sudocode of FIND-MAXIMUM-SUBARRAY. Try to proof the correctness of the algorithm.

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