Lars T. Kyllingstad:
> Fun fact: There is already a Levenshtein distance algorithm in Phobos
> for D2:
> http://www.digitalmars.com/d/2.0/phobos/std_algorithm#levenshteinDistance
For more than a year there's a Levenshtein distance for D1 in my dlibs too, and
it's quite faster than the one in Pho
D. Reeds wrote:
Lars T. Kyllingstad Wrote:
Fun fact: There is already a Levenshtein distance algorithm in Phobos
for D2:
http://www.digitalmars.com/d/2.0/phobos/std_algorithm#levenshteinDistance
I know you said you use D1+Tango, I just thought I should mention it.
The source code is available
Lars T. Kyllingstad Wrote:
> Fun fact: There is already a Levenshtein distance algorithm in Phobos
> for D2:
> http://www.digitalmars.com/d/2.0/phobos/std_algorithm#levenshteinDistance
>
> I know you said you use D1+Tango, I just thought I should mention it.
> The source code is available, if yo
D. Reeds wrote:
Robert Fraser Wrote:
D. Reeds wrote:
can anybody help me translate this c code into d, im using D1+tango combo. i'm new to D and got stucked on multi-dimension array part.
int levenshtein_distance(char *s,char*t)
//Compute levenshtein distance between s and t
{
//Step 1
i
Robert Fraser Wrote:
> D. Reeds wrote:
> > can anybody help me translate this c code into d, im using D1+tango combo.
> > i'm new to D and got stucked on multi-dimension array part.
> >
> > int levenshtein_distance(char *s,char*t)
> > //Compute levenshtein distance between s and t
> > {
> > /
Robert Fraser Wrote:
> D. Reeds wrote:
> > can anybody help me translate this c code into d, im using D1+tango combo.
> > i'm new to D and got stucked on multi-dimension array part.
> >
> > int levenshtein_distance(char *s,char*t)
> > //Compute levenshtein distance between s and t
> > {
> > /
D. Reeds wrote:
can anybody help me translate this c code into d, im using D1+tango combo. i'm new to D and got stucked on multi-dimension array part.
int levenshtein_distance(char *s,char*t)
//Compute levenshtein distance between s and t
{
//Step 1
int k,i,j,n,m,cost,*d,distance;
n=strle
can anybody help me translate this c code into d, im using D1+tango combo. i'm
new to D and got stucked on multi-dimension array part.
int levenshtein_distance(char *s,char*t)
//Compute levenshtein distance between s and t
{
//Step 1
int k,i,j,n,m,cost,*d,distance;
n=strlen(s);
m=strlen