Question: MyPriorityQueue.java: Extends the MaxHeap class to provide a priority queue and implements the PriorityQueueInterface here is the start of it public class MyPriorityQueue extends MaxHeap
MyPriorityQueue.java: Extends the MaxHeap class to provide a priority queue and implements the PriorityQueueInterface
here is the start of it
public class MyPriorityQueue extends MaxHeap implements PriorityQueueInterface{
@Override
public void enqueue(Object task) {
// TODO Auto-generated method stub
}
@Override
public Task dequeue() {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean isEmpty() {
// TODO Auto-generated method stub
return false;
}
@Override
public void update(int timeToIncrementPriority, int maxPriority) {
// TODO Auto-generated method stub
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
