![]() |
Introduction to Computer Science II Homework 6 |
Assigned: Friday, Oct 10, 2014 Due: Monday, Oct 27, 2014, at 3pm. |
Homework 6Part I: Implement Stacks and QueuesImplement an ArrayStack, ArrayQueue, ListStack, and ListQueue. For the array versions, your stack/queue should be able to reach arbitrary sizes, but should never have more than three-quarters of the array empty. That is, you'll want to double the array size when you run out of space and shrink it when the amount of data decreases. These classes should be generic.Part II: Run Timing ExperimentsPush/enque and pop/dequeue inputs of different sizes into your array and list stacks and queues. Plot the resulting runtimes and draw some conlusions.Part III: Written HomeworkWhat to hand inNo need for a webpage this week. Use the CADE online handin system to handin your source code. Please zip and handin your entire project directory (including an info.txt file). If you work in a team only one of you need to submit the source code. Handin the written homework during lab.GradingEach homework assignment will receive a grade out of 100 points. This week, the available points will be broken down like so:
|