Version franēaise
Home     About     Download     Resources     Contact us    
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: -- (:)
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
http://www.lri.fr/~filliatr/