My problem is that I have a queue of objects. Each object will be evaluated and will be given a priority.
I thought about a PriorityQueue
or TreeSet
as both are sorted.
The problem is that the priority of each object changes regularly. The named data structures can't handle this scenario.
One possible way may be implementing a heap structure with an increase key function.
Searching the internet I didn't find anything that suits this problem. Oh I should mention that the data structure will have a high throughput.
So I search for something with a good performance like Big O log(n) and below for standard operation.