[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Trie?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 28 May 2007 16:46:41 -0300
> Hmmm... well... in this specific case... it's for implementing
> something like a full text search... e.g. given 'hell' and 'hello'
> return both for a partial match on 'hel'... a trie looks like an
> attractive structure for such search, no?
I'd create a table of possible matches from a list of words.
For instance,
t['hell'] = { 'hell', 'hello', ... }