Priority Queue Implementation: Write your own implementation of a priority queue of integers: a priority queue maintains its elements sorted. The operations that you need to provide are inserting an integer, removing an integer, checking if a given intege

computer science

Description

Priority Queue Implementation: Write your own implementation of a priority queue of integers: a priority queue maintains its elements sorted. The operations that you need to provide are inserting an integer, removing an integer, checking if a given integer is already contained in the queue. Duplicate elements are permitted. Do not use any of the predefined collections from the Java libraries. Provide a test program that inserts random values into two priority queues (one instance of your implementation, and one instance of the java.util.PriorityQueue). Measure the runtime performance for 10000, 20000, ... up to 100000 insertions. Deliverables are your class implementation and your test program, and a document describing your design and your results (no more than 2 pages). Grading rubrics: Implementation: 20% for your class implementation, 10% for your test program (both based on completion) Code structure: proper use of Java constructs 30% Design and test document: 20%


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.