2.5. Quiz

Quiz 2: Priority Queues

Coding

Testing

Benchmarking

  • Compare runtime speeds between BinaryHeap and TernaryHeapQuiz for add() and remove() using the testRuntime()arrow-up-right method.

  • Create a PDF file quiz2.pdf and write a report that includes the following:

    • A table and a chart to compare speeds between the two priority queues for those two methods, add() and remove(), with respect to different input sizes.

    • A brief explanation of why a certain PQ is faster than the other PQ with respect to different input sizes.

Submission

1. Commit and push everything under the following packages to your GitHub repository:

2. Submit quiz2.pdf to Canvas.

Last updated

Was this helpful?