Re: Speaking of selection algorithms, I had never heard of heapselect, so I wrote one.



user923005 wrote:

/*
Tragically, I have bollixed it up badly. It's such a simple
algorithm, but somehow I've gone off, because it does not always
work. Any ideas where I went off?
*/

.... snip 200 lines of code ...

As you say, bollixed. Tear it up and start over. Use void
pointers.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: Whats wrong with this proof that P = NP?
    ... Might it not be possible to somehow use pointers to make ... return a valid proof that W is false, leading to a contradiction. ... that no polytime algorithm like B exists, ...
    (comp.theory)
  • Robeson Proves RRAP Trashing Is ALL ABOUT HIM!
    ... So...lessee...Now this "Dloyd" is somehow responsible for getting ... NG with dozens of re-cycled posts and cross-posts... ... "one useless man is disgrace 2 become a law firm 3 or more become a congress" ... Posted via a free Usenet account from http://www.teranews.com ...
    (rec.radio.amateur.policy)
  • Robeson Proves RRAP Trashing Is ALL ABOUT HIM!
    ... So...lessee...Now this "Dloyd" is somehow responsible for getting ... NG with dozens of re-cycled posts and cross-posts... ... "one useless man is disgrace 2 become a law firm 3 or more become a congress" ... Posted via a free Usenet account from http://www.teranews.com ...
    (rec.radio.amateur.policy)
  • Re: Grid (or matrix) transformations - newbie question
    ... Hans Olav wrote: ... Now I need to "transform" somehow this to another matrix which only ... I have a nag that in other cases my algorithm will yield less good ...
    (sci.math.num-analysis)
  • Re: beastly_maths - a genetic algorithm
    ... algorithm to which searches for expressions which evaluate to a ... Somehow, I feel like Sapient Fridge tapped me on the shoulder, and ran ... You call Pseudo-code talent? ...
    (talk.origins)