Have the PriorityQueue support decreaseKey as follows: Define a nested class that implements PriorityQueue.Position. The binary heap will be represented by an array of objects, in which each object stores a data item and its index. Each PriorityQueue.Position object stores a reference back to the corresponding object in the array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here