Create an interface for a priority queue that does not


In Project 5 you created a queue that does not allow duplicates. In this project you will create a priority queue that does not allow duplicates. The function of the add operation should be analogous to the changed enqueue method in Project 5. In this case, the test for equals should not include the priority, so the header of the add method should be changed to the one given in the previous project. A new operation move will change the priority of a given item, if it is already in the priority queue. If the item is not in the priority queue, move will add it with the given priority. Create an interface for a priority queue that does not allow duplicates. Then write a class that implements this interface. Finally, write a program that adequately demonstrates your new class.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create an interface for a priority queue that does not
Reference No:- TGS02196458

Expected delivery within 24 Hours