Page 1 of 1

Build in Pb priority queues

Posted: Sat May 06, 2017 3:55 pm
by Fig
That would be great to have priority queue (aka binary max/min heap) natives in purebasic.
It's not a big deal to do so... Fred, please... :D

Maybe, if we do it ourself, would you consider add it natively in pb ?

Re: Build in Pb priority queues

Posted: Sat May 06, 2017 5:36 pm
by Demivec
Fig wrote:Maybe, if we do it ourself, would you consider add it natively in pb ?
http://rosettacode.org/wiki/Priority_queue#PureBasic

Re: Build in Pb priority queues

Posted: Sat May 06, 2017 6:11 pm
by Fig
Yes, of course... And i already coded a priority queue in (70%) asm too (librairie tas.pb)... http://www.purebasic.fr/english/viewtop ... 16&t=68122

But i was thinking of something more general and optimised, with different type and taking care of structure and x86 x64...
In a word, native Pb library.

That would be really usefull. In my humble opinion.

Re: Build in Pb priority queues

Posted: Sat May 06, 2017 6:48 pm
by Demivec
Fig wrote:In a word, native Pb library.

That would be really usefull. In my humble opinion.
I agree. I just shared the link for use as a reference. :wink:

Re: Build in Pb priority queues

Posted: Sat May 06, 2017 7:02 pm
by Fig
Image