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

  A multinational tour operator agency has gained new

a multinational tour operator agency has gained new business growth in the north american market through the use of

  Data speed effect on fundamental business decisions

Can the speed in which data is transmitted have an adverse effect on fundamental business decisions? Yes, speed that is traveling at big rates of speed can have an affect on fundamental business decisions.

  Which includes and algorithm that takes an array

Write an application which includes and algorithm that takes an array, selects the high and low integer from the array of integers with each pass and builds a new array of integers by inserting the high and low selection with each pass. Your ..

  Find a shortest-path from u to v

find a shortest-path from u to v, and we have a *valid* heuristic, i.e.: For every node w, we have a value a(w) such that the distance from w to v in G is at least a(w) for all nodes w.

  You used the same dataset to analyze both

You used the same dataset to analyze both a between- and within-subjects design. Create a single paragraph (using the material you wrote above), that presents both sets of results.

  Create algorithm to perform any sequence of two operations

Let A[1, n] be an array of real numbers. Create an algorithm to perform any sequence of the following two operations: Add(i, x): add the value x to A[i].

  Creating an hierarchy chart

Regal Brakes Corporation requires to automate its payroll calculation system. To compute payroll, first the gross pay is calculated, which is equal to the item of the number of hours and hourly rates.

  Write a script that checks the day of the week

Write a script that checks the day of the week, and takes one of two actions depending on the day. If the day is Monday through Friday, print the name of the day.

  Determining ciphertext generated by encryption

Determine ciphertext (in binary form) generated by encryption of character X?

  Design algorithm to find the average miles per gallon

Design an algorithm to find the average miles per gallon. Sample data: 68723, 71289, 15.75, 16.30, 10.95, 20.65, 30.00.

  Implementing the banker algorithm

Prompt user to enter the size of matrix n and m. Your program should accept any n x m matrix and m vectors where n and m are positive integer less than ten.

  Does a min-weight edge on every cycle

Consider that a graph has distinct edge weights. Does its lightest edge have to belong to the MST

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