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

  How to open microsoft word and paste the information

In this assignment, you will find out and critique virtual information and word processing skills to make a professional-looking document that promotes personal development or financial growth and maturity.

  Design a class cannonball to model a cannonball

Design a class Cannonball to model a cannonball that is fired into the air. A ball has a constructor with an x-position (the y-position is initially 0).

  How are css, dhtml and xml associated

Find out an article or a resource about CSS, DHTML or XML. Include the URL of the original article or resource and summarize it.

  Discuss the benefits of having a computer security incident

discuss the benefits of having a computer security incident response team within your enterprise. Also discuss the major steps involved

  Using schedule performance index

Use the CPI to determine the estimate at completion (EAC) for this project. Describe whether project is performing better or worse than planned? Use the schedule performance index (SPI) to estimate how long ~ will take in order to finish this proje..

  Discuss and analyze the fccs role in broadband regulation

Discuss and analyze the FCC's role in broadband regulation. Define and discuss the FCC mission and responsibilities as established by Congress in current

  Create a set of use cases for a library borrowing system

Create a set of use cases for a university library borrowing system. (Do not worry about catalogue searching, etc.) The system will record the books owned by the library and will record who has borrowed what books.

  As the lead analyst for the hoosier burger project you have

as the lead analyst for the hoosier burger project you have worked closely with bob and thelma nbspmellankamp. having

  What is wrong with the given fragment of assembly language

What is wrong with the following fragment of 68000 assembly language (the error is one of semantics).

  Analyze concisely and clearly your protocol a and b

Describe concisely and clearly your protocol A and B. Make the protocolsrealistic (think that you play it with your friends). Present small concrete examples for both protocol A and protocol B, and show how your protocols run in these cases.

  Create a application that contains two textboxes and buttons

Create a Windows application that contains two textboxes and two buttons. The textboxes should be used to allow the user to input two positive numeric values.

  Discuss the major ergonomic design principles used in design

Discuss the major ergonomic design principles used in designing signal lights and warning lights. (Remember that the term "signal lights" means a lot more than just traffic signal lights.)

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