Increments the score of an element in the queue.
Increments the score of an element in the queue.
the element whose score should be incremented
the increment value, should be positive
the new score of the element
IllegalArgumentException
if offset < 0
Rescales every score by the factor
Rescales every score by the factor
This does not impact the ordering of the queue.
the factor to multiply each score with
Represents a queue of Int values sorted according to a score value.
Scores are Double value and initialized to 0, while the elements are initialized from 0 to length-1.
Elements are fixed, taking value from 0 to maxSize-1.
When an element is removed, the queue remembers its score, it is still possible to augment its score, and when the element is added back, it takes a position according to its current score.