Re: Help needed for a sorting code in the literature

From: Mok-Kong Shen (mok-kong.shen_at_t-online.de)
Date: 12/31/04


Date: Fri, 31 Dec 2004 14:40:03 +0100


Mok-Kong Shen wrote:
>
[snip]
> Sorry for a accidental duplicted post and for not having
> noticed the fact that my adaptation was from the C++ book,
> while the above URL is for the C book (of the same authors
> and that has apparently combined the two functions in the
> C++ book together) that I don't have. I am including below
> for comparison with my code the stuff in the C++ book
> verbatim (excepting the comments).
[snip]

In attempting just now to copy from the URL given by Bob Harris
to test whether the C code of the same authors works differently
than their C++ code, I discovered to my disappointment that that
code is for a[1..n]. So it doesn't serve my purpose of working
with a[0..n-1]. (It seems a bit odd that the code was for a[1..n]
instead in the context of C programming.)

BTW, in my reproduction (in my previous post) of the C++ code
from the book of Press et al., I had a typo. The line

    void NR::hpsort(VEC_IO_DP &ra)

should read

    void NR::hpsort(Vec_IO_DP &ra)

M. K. Shen



Relevant Pages

  • Re: On service to the gods
    ... something in the notion of consuming the flesh of your god, ... ;-) This can only serve to strengthen our connection with our land, ... Serve isn't the word for me, neither is honour quite there. ...
    (uk.religion.pagan)
  • Re: The gamblers fallacy: getting back to even
    ... > your competition. ... > the eyes of the people you plan to serve. ... You can't win by arguing with the storm about how ...
    (comp.security.misc)
  • Re: Species Counterpoint: ficta mid-mode?
    ... variety of pitches, and not to repeate one pitch too much etc. my ... No no no. That's not their purpose at all. ... CP on the CF like this is usually avoided blah blah blah". ...
    (rec.music.theory)
  • Re: Re: In the News: Tenn. AG: No constitutional concerns with
    ... On Thu, 19 Apr 2007 01:30:09 GMT, George Evans ... I think I can if they seem to violate physical laws and have a purpose. ... If you noticed, when one of the person posted the definition of miracle, it ...
    (talk.origins)
  • Re: [OT] squidguard, dansguardian, other?? on a 486?
    ... Adzapper is another way to serve a small image instead of a big denied ... Then you don't have to go to the trouble of dns games, ... with dansguardian, it's available in Woody. ...
    (Debian-User)