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

  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