From: Richard Jones <rich@annexia.org>
To: Brian Hurt <bhurt@spnz.org>
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Re: Set and Map question
Date: Mon, 20 Sep 2004 09:17:08 +0100 [thread overview]
Message-ID: <20040920081708.GA2792@annexia.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0409192258210.5809-100000@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
On Sun, Sep 19, 2004 at 11:02:44PM -0500, Brian Hurt wrote:
> The code is actually fairly easy. Take the length of the list. Subtract
> one for the root node. The first (n-1)/2 elements are in the left hand
> subtree, the last n-1-((n-1)/2) elements are in the right subtree.
Wouldn't you have to iterate over the list when implementing this?
What I mean to say is that this would work if you had a pre-sorted
Array, but not a linked List. ?
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
http://www.winwinsales.co.uk/ - CRM improvement consultancy
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-09-20 8:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-20 2:37 [Caml-list] " Seth Fogarty
2004-09-20 3:14 ` [Caml-list] " Seth Fogarty
2004-09-20 3:56 ` skaller
2004-09-20 4:18 ` Seth Fogarty
2004-09-20 6:43 ` skaller
2004-09-20 8:32 ` Diego Olivier Fernandez Pons
2004-09-20 4:02 ` Brian Hurt
2004-09-20 8:17 ` Richard Jones [this message]
2004-09-20 12:41 ` Igor Pechtchanski
2004-09-20 12:54 ` Jean-Christophe Filliatre
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=20040920081708.GA2792@annexia.org \
--to=rich@annexia.org \
--cc=bhurt@spnz.org \
--cc=caml-list@pauillac.inria.fr \
/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