Build in Pb priority queues

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Fig
Enthusiast
Enthusiast
Posts: 352
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

Build in Pb priority queues

Post 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 ?
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Build in Pb priority queues

Post 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
User avatar
Fig
Enthusiast
Enthusiast
Posts: 352
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

Re: Build in Pb priority queues

Post 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.
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Build in Pb priority queues

Post 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:
User avatar
Fig
Enthusiast
Enthusiast
Posts: 352
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

Re: Build in Pb priority queues

Post by Fig »

Image
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
Post Reply