ext-ds icon indicating copy to clipboard operation
ext-ds copied to clipboard

Allow PriorityQueue priorities to be adjusted

Open rtheunissen opened this issue 7 years ago • 3 comments

rtheunissen avatar Aug 30 '16 05:08 rtheunissen

I wonder can a PriorityQueue allow smallest priority number to be at the front of the queue? Because some people might use 1 as highest priority (like me :p) .

fd6130 avatar Apr 09 '21 07:04 fd6130

You could always make it negative. 😉 I see no reason why both a min and max heap can't be available. I hope to find the time and energy to accomplish that soon.

rtheunissen avatar Apr 09 '21 22:04 rtheunissen

It would be nice if we could provide a callable for comparing priorities of two items. In some cases the priority may not be a number but something else that cannot be transformed to a number.

enumag avatar Apr 09 '21 22:04 enumag