[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] patient search functionality revisited
From: |
Horst Herb |
Subject: |
Re: [Gnumed-devel] patient search functionality revisited |
Date: |
Sat, 4 Jan 2003 08:47:47 +1100 |
User-agent: |
KMail/1.4.3 |
On Sat, 4 Jan 2003 08:38, Horst Herb wrote:
> > There is also a function levenshtein () which I found useful:
> > it gives the number of substitutions required to match two strings, so
> > is language-agnostic.
>
> problem is that the Levenshtein distance is expensive to calculate. Since
> you cannot even assume that the first letter is spelled correctly (it may
> or may not begin with a silent letter etc), in the worst case you would
> need to traverse the full list of names calculating the distance for each
> single one of them.
>
> Due to the possible number of permutations, it is not practical either to
> have lookup tables for comon cases etc in order to speed up the search.
P.S.: you can try it out yourself; leveshtein is in the postgres contrib
directory in the "fuzzystrmatch" package
Horst
- [Gnumed-devel] patient search functionality revisited, Karsten Hilbert, 2003/01/01
- Re: [Gnumed-devel] patient search functionality revisited, Horst Herb, 2003/01/01
- Re: [Gnumed-devel] patient search functionality revisited, Karsten Hilbert, 2003/01/01
- Re: [Gnumed-devel] patient search functionality revisited, Karsten Hilbert, 2003/01/03
- Re: [Gnumed-devel] patient search functionality revisited, Horst Herb, 2003/01/03
- Re: [Gnumed-devel] patient search functionality revisited, John Denning, 2003/01/03
- Re: [Gnumed-devel] patient search functionality revisited, Horst Herb, 2003/01/03
- Re: [Gnumed-devel] patient search functionality revisited, Ian Haywood, 2003/01/03
- Re: [Gnumed-devel] patient search functionality revisited, Elizabeth Dodd, 2003/01/04
- Re: [Gnumed-devel] patient search functionality revisited, Ian Haywood, 2003/01/04
- Re: [Gnumed-devel] patient search functionality revisited, Elizabeth Dodd, 2003/01/04