Perform time measurements of the given five operations

Assignment Help Computer Engineering
Reference no: EM131870818

Assignment

(i) Implement the following basic data types. Follow specifications presented in the textbook in full detail.

1. Lists: two implementations, array and pointer (pages 41-46), operations: FIRST, END, RETRIEVE, LOCATE, NEXT, PREVIOUS, INSERT, DELETE, MAKENULL,

2. Stacks: two implementations, array and pointer (pages 53-56), operations: TOP, POP, PUSH, EMPTY, MAKENULL,

(ii) Develop the code for the following timing experiments. Report your results in the form of tables. The first column should indicate the size of the data structure. The remaining columns should report the measured times for the procedures that you apply. Derive conclusions out of your experiments and write them down.

3. Perform time measurements of the following five operations on lists: iterated insertion (in front, at the back), traversal, iterated deletion (in front, at the back). Run each of your procedures on three types of lists: a selected list type library data structure, your implementation of the list ADT with arrays, your implementation of the list ADT with pointers.

4. Perform time measurements of the following two operations on stacks: iterated insertion (PUSH operation), iterated deletion (POP operation). Run each of your procedures on three types of stacks: a selected stack type library data structure, your implementation of the stack ADT with arrays, your implementation of the stack ADT with pointers.

Each student needs to submit four separate programs and a report of timing results of part (ii). Each of the programs should contain test input data and a testing code, which demonstrate that all the operations and algorithms work properly. You will need to submit your code and your report following the submission rules that will be provided at a later date.

The choice of data representation is up to you, but you need to preserve all the essential features of the implementations discussed in the textbook. In particular all actions occurring in textbook implementations have to have their counterparts in your code.

Many interesting examples of C implementations directly transferable into C++ are available on the website accompanying our CS 270 textbook Foundations of Computer Science by Alfred Aho and Jeffrey Ullman.

Text Book: Foundations of Computer Science by Al Aho and Jeff Ullman, C Edition.

Examples of Python code explaining how to substitute pointers by references are discussed in chapters 17,19,20 of the book How to Think Like a Computer Scientist by Allen Downey, Jeffrey Elkner and Chris Meyers.

Text Book: Data Structures and Algorithms by Alfred V. Aho, John E. Hopcroft and Jeffrey D. Ullman.

Reference no: EM131870818

Questions Cloud

Calculate gross proceeds per share : Calculate the gross proceeds per share. Calculate the total funds received by Howett Pockett from the sale of the 11.0 million shares of stock.
What ethical principles are important in the case : What ethical principles are important in this case? How would you use ethical theories to assist you to make a decision? What should be done in this situation?
Compute the maximum depreciation deduction : Compute the maximum 2012 depreciation deduction including Sec. 179 expense and bonus depreciation. Label your work
When the market rate is less than the coupon rate : When the market rate is less than the coupon rate, the bond sells _____. "Own a new truck! No money down. Just five easy annual payments of $8000."
Perform time measurements of the given five operations : Perform time measurements of the following five operations on lists: iterated insertion (in front, at the back), traversal, iterated deletion.
Total interest and fees you will pay on this loan commitment : Calculate the total interest and fees you will pay on this loan commitment.
Dating your significant other for two years : You have been dating your significant other for 2 years now and you’ve decided it is time to pop the question.
Summary of the definitions concerning distributive justice : Provide a summary of the definitions concerning distributive justice, market justice, and social justice as well as an example of each type of justice.
What is the probability of the ball falling : The wheel is spun, and a ball rounds the peripheral until gravity takes over and the ball lands in a slot. What is the probability of the ball falling into:

Reviews

Write a Review

Computer Engineering Questions & Answers

  When you would have a need to use raid explain

When you would have a need to use RAID? Explain. What is difference between IDE (integrated drive electronics) and SATA (serial advanced technology attachment)?

  What mindset does an analyst need to work on such approach

What mindset does an analyst need to work on such an approach? Your description should end with the analyst team and by discussing the support plan for the system and what this will entail.

  The shipping clerk at the rinky dooflingy company is faced

Write a program that reads the number of dooflingies to be shipped and displays the number of huge, large, medium, and small containers needed to send the shipment in the atleast number of containers and with the minimum amount of wasted space.

  How do the avi and quicktime movie formats differ

How do the AVI and QuickTime movie formats differ? How do they compare to MPEG4? When would you want to use each movie format?

  Develop the requirements definition for the amazon site

Review the Amazon.com Web site. Develop the requirements definition for the site. Create a list of functional business requirements that the system meets.

  How could pdp augment memory in evaluating

How could PDP augment memory in evaluating the potential risk in this and other potentially threatening situations.

  What can you learn from such an experiment

Design and implement an experiment to do benchmark comparisons of the two queue implementations. What can you learn from such an experiment?

  Modify the inventory program by adding a button to the gui

modify the inventory program by adding a button to the gui that allows the user to move to the first item the previous

  Design a clocked d flip flop

Design a clocked D flip-flop, using a modified ECL circuit design, such that the output becomes valid on the negative-going edge of the clock signal.

  Advise them on the use of cloud computing

SoftArc Engineering, a local engineering company has engaged you as a consultant to advise them on the use of Cloud computing in their daily operations.

  Explain a mechanism by which an operating system can

describe a mechanism by which an operating system can enforce limited transfer of capabilities.that is process a might

  Senior management action about preventing possible barriers

Make a recommendation to senior management about preventing possible barriers for full implementation and acceptance of the new system

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