Heap: container or range?

Yigal Chripun yigal100 at gmail.com
Fri Jan 30 00:19:41 PST 2009


Bill Baxter wrote:
> On Fri, Jan 30, 2009 at 4:01 PM, Yigal Chripun<yigal100 at gmail.com>  wrote:
>> regarding your previous question:
>> isn't a Heap also called a Priority Queue?
>>
>
> I the distinction is that a Heap is one way to implement a Priority
> Queue.  You could implement a priority queue by scanning a linked list
> for the smallest item and it would still be a (really inefficient)
> Priority Queue.
>
> --bb

Ah. right.. :)



More information about the Digitalmars-d mailing list