Browse thread
Tries are to sequences as ? is to trees
- Jon Harrop
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Tries are to sequences as ? is to trees |
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