From: "Mattias Waldau" <mattias.waldau@abc.se>
To: "'Gerd Stolpmann'" <info@gerd-stolpmann.de>, <caml-list@inria.fr>
Subject: RE: [Caml-list] Suggestion about balanced trees in stdlib
Date: Mon, 13 May 2002 09:23:15 +0200 [thread overview]
Message-ID: <000301c1fa4f$0e793770$0200a8c0@gateway> (raw)
In-Reply-To: <20020510185954.C635@ice.gerd-stolpmann.de>
> - operations on intervals: "iter_interval", "fold_interval",
> and "interval"
In order to solve the mentioned operations, I usually use Splay-trees,
which is part of the CDK. They have the following operations.
val floor: 'a t -> key -> key * 'a
(* [floor s c] returns the greatest element with [key <= c] *)
val ceil: 'a t -> key -> key * 'a
(* [ceil s c] returns the smallest element with [key >= c] *)
val prev: 'a t -> key -> key * 'a
(* [prev s c] returns the greatest element with [key < c] *)
val next: 'a t -> key -> key * 'a
(* [next s c] returns the smallest element with [key > c] *)
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2002-05-13 7:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-10 16:59 Gerd Stolpmann
2002-05-10 16:56 ` Alexander V.Voinov
2002-05-10 22:31 ` Stefano Zacchiroli
2002-05-10 23:05 ` Alexander V.Voinov
2002-05-11 7:20 ` Stefano Zacchiroli
2002-05-11 15:47 ` Gerd Stolpmann
2002-05-11 17:18 ` Stefano Zacchiroli
2002-05-11 17:36 ` Dave Mason
2002-05-12 0:03 ` polux moon
2002-05-13 7:23 ` Mattias Waldau [this message]
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='000301c1fa4f$0e793770$0200a8c0@gateway' \
--to=mattias.waldau@abc.se \
--cc=caml-list@inria.fr \
--cc=info@gerd-stolpmann.de \
/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