From: John Max Skaller <skaller@ozemail.com.au>
To: Mattias Waldau <mattias.waldau@abc.se>
Cc: Sven LUTHER <luther@dpt-info.u-strasbg.fr>, caml-list@inria.fr
Subject: Re: sorting of list of vectors (array with one dimension)
Date: Sun, 03 Dec 2000 03:00:12 +1100 [thread overview]
Message-ID: <3A291C8C.DF869DC4@ozemail.com.au> (raw)
In-Reply-To: <HDEEKOMJILGEIHIMAPCDEEEMDLAA.mattias.waldau@abc.se>
Mattias Waldau wrote:
>
> Nice suggestions changing the data structure, but I can't change it.
>
> Instead, I implemented the indirection trick by Max Skaller. However instead
> of finding how to reorder the data, I just use a temporary data structure
> instead.
That's easiest, but it would be nice to find a fast way to reorder
the array in place, in case you get very large arrays, where
constructing a new one would exhaust memory, or slow down
the process due to the VM thrashing the disk.
--
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net
next prev parent reply other threads:[~2000-12-03 22:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-21 8:23 Jocelyn Serot
2000-11-29 17:36 ` sorting of list of vectors (array with one dimension) Mattias Waldau
2000-11-30 7:37 ` John Max Skaller
2000-11-30 11:47 ` Sven LUTHER
2000-11-30 12:21 ` John Max Skaller
2000-12-01 18:44 ` Mattias Waldau
2000-12-02 16:00 ` John Max Skaller [this message]
2000-11-30 11:33 ` Judicael Courant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A291C8C.DF869DC4@ozemail.com.au \
--to=skaller@ozemail.com.au \
--cc=caml-list@inria.fr \
--cc=luther@dpt-info.u-strasbg.fr \
--cc=mattias.waldau@abc.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox