DotNetty icon indicating copy to clipboard operation
DotNetty copied to clipboard

PriorityQueue

Open iamkisly opened this issue 4 years ago • 1 comments

Investigating DotNetty I found a class whose meaning I cannot understand. This is a PriorityQueue, and it implements the basic methods of a regular queue .. but unlike System.Collections.Generic.Queue, the Enqueue and Dequeue methods do not work like a FIFO, but shuffle the data entering the queue. Tell me why this is done like this?

iamkisly avatar May 22 '21 14:05 iamkisly

It's because it's an implementation of a min-max heap.

sven-n avatar Dec 10 '21 21:12 sven-n