Version franēaise
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Tries are to sequences as ? is to trees
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-26 (07:36)
From: Jean-Christophe_Filliātre <Jean-Christophe.Filliatre@l...>
Subject: Re: [Caml-list] Tries are to sequences as ? is to trees
Jon Harrop a écrit :
> So tries let us associate sequences with values. What data structure lets us 
> associate trees with values?

In Okasaki's book, there is a Section 10.3.2 "Generalized Tries" which
addresses exactly this problem. The solution proposed is more efficient
than building the list of elements with fold.

Jean-Christophe Filliātre