caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Tries are to sequences as ? is to trees
@ 2008-04-26  1:20 Jon Harrop
  2008-04-26  6:58 ` [Caml-list] " Christophe Raffalli
  2008-04-26  7:36 ` Jean-Christophe Filliâtre
  0 siblings, 2 replies; 3+ messages in thread
From: Jon Harrop @ 2008-04-26  1:20 UTC (permalink / raw)
  To: caml-list


So tries let us associate sequences with values. What data structure lets us 
associate trees with values?

I ask because I am interested in replacing hash consing of expressions with a 
purely functional equivalent so I need a way to map expressions onto 
expressions.

The only idea I've come up with so far is to fold over the tree to make a 
sequence and use that as the key into a trie but it seems a bit naff...

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e


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

end of thread, other threads:[~2008-04-26  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-26  1:20 Tries are to sequences as ? is to trees Jon Harrop
2008-04-26  6:58 ` [Caml-list] " Christophe Raffalli
2008-04-26  7:36 ` Jean-Christophe Filliâtre

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).