caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: [Caml-list] Why AVL-tree?
@ 2014-06-02 18:23 Damien Guichard
  0 siblings, 0 replies; 17+ messages in thread
From: Damien Guichard @ 2014-06-02 18:23 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

Worth to be mentionned : OCaml Reins has red-black trees featuring whole-set
operations.
 
http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=599
 
Regards,
 
damien guichard
 

[-- Attachment #2: Type: text/html, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [Caml-list] Why AVL-tree?
@ 2014-06-02 13:21 Damien Guichard
  2014-06-02 13:34 ` Andrew Herron
  0 siblings, 1 reply; 17+ messages in thread
From: Damien Guichard @ 2014-06-02 13:21 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

 
Red-black tree would spare a machine word per node, because a red-black tree
doesn't need depth information. 
Hence the reason is either historical or a space/speed trade-off (comparing
two depths may be faster than pattern matching). 
 
Regards,
 
damien guichard 
Hi, list, 


Just from the curiosity, why balanced binary trees used in Set and Map are
AVL-trees, not their alternative, say, red-black trees?  Is there a deep
reason for it, or just a historical one?


Best,
-- 

Yoriyuki Yamagata
http://yoriyuki.info/

[-- Attachment #2: Type: text/html, Size: 1539 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [Caml-list] Why AVL-tree?
@ 2014-06-02 11:48 Yoriyuki Yamagata
  0 siblings, 0 replies; 17+ messages in thread
From: Yoriyuki Yamagata @ 2014-06-02 11:48 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Hi, list,

Just from the curiosity, why balanced binary trees used in Set and Map are
AVL-trees, not their alternative, say, red-black trees?  Is there a deep
reason for it, or just a historical one?

Best,
-- 
Yoriyuki Yamagata
*http://yoriyuki.info/ <http://yoriyuki.info/>*

[-- Attachment #2: Type: text/html, Size: 401 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-08-03 21:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-02 18:23 [Caml-list] Why AVL-tree? Damien Guichard
  -- strict thread matches above, loose matches on Subject: below --
2014-06-02 13:21 Damien Guichard
2014-06-02 13:34 ` Andrew Herron
2014-06-02 15:06   ` Gabriel Scherer
2014-06-03 12:48     ` Yaron Minsky
2014-06-03 13:12       ` Gabriel Scherer
2014-06-03 13:37         ` Yaron Minsky
2014-06-03 13:41       ` Yoriyuki Yamagata
2014-06-02 16:57   ` Xavier Leroy
2014-06-02 21:16     ` Andrew Herron
2014-06-10 18:19     ` jonikelee
2014-06-10 18:51       ` Florian Hars
2014-06-10 19:52         ` Jonathan
2014-06-15  4:51       ` Lukasz Stafiniak
2014-06-15 14:01         ` Jonathan
2014-08-03 21:25     ` Diego Olivier Fernandez Pons
2014-06-02 11:48 Yoriyuki Yamagata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).