I should clarify, a queue is a data structure that supports
INSERT(value), REMOVE-MIN, UPDATE(elm, new value).
Queues are used to implement BFS (breadth-first search trees).
Thanks,
--Petar
Technically, a queue only needs push_back() and pop().
So, considering this, container/list can be used as a stack, a queue
and a deque.
But your requirements can be easily implemented with container/list as a base.
You are right however that there's no raw implementation of a binary tree.
--
Alexander "cussing-makes-my-arguments-even-more-valid" Surma
Cheers,
--Petar
2010/5/26 ⚖ Alexander "Surma" Surma <alexand...@googlemail.com>:
P
On May 26, 12:56 pm, Petar Maymounkov <pet...@gmail.com> wrote:
> This is not the QUEUE you are thinking of .. please read my description.
> The meaning of QUEUE in Data Structure world is different.
>
> Cheers,
> --Petar
>
> 2010/5/26 ⚖ Alexander "Surma" Surma <alexander.su...@googlemail.com>:
2010/5/26 Petar Maymounkov <pet...@gmail.com>:
And calling the fibonacci heap the "best" pqueue implementation is a
bit... misleading, if technically correct. It may be efficient, but
good luck writing the code!
On May 26, 12:56 pm, Petar Maymounkov <pet...@gmail.com> wrote:
> This is not the QUEUE you are thinking of .. please read my description.
> The meaning of QUEUE in Data Structure world is different.
>
> Cheers,
> --Petar
>
> 2010/5/26 ⚖ Alexander "Surma" Surma <alexander.su...@googlemail.com>: