Click here to Skip to main content
15,886,840 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Lock free data structures Pin
Luc Pattyn6-Jun-07 0:19
sitebuilderLuc Pattyn6-Jun-07 0:19 
GeneralRe: Lock free data structures Pin
Sijin6-Jun-07 0:27
Sijin6-Jun-07 0:27 
AnswerRe: Lock free data structures Pin
El Corazon7-Jun-07 11:18
El Corazon7-Jun-07 11:18 
GeneralRe: Lock free data structures Pin
spin vector11-Jun-07 16:42
spin vector11-Jun-07 16:42 
GeneralRe: Lock free data structures Pin
El Corazon12-Jun-07 2:53
El Corazon12-Jun-07 2:53 
Question3D Camera Math Question Pin
joshp12171-Jun-07 9:18
joshp12171-Jun-07 9:18 
AnswerRe: 3D Camera Math Question Pin
Duane in Japan4-Jun-07 4:07
Duane in Japan4-Jun-07 4:07 
Questionlevenshtein distance Pin
jogman30-May-07 3:35
jogman30-May-07 3:35 
Could anyone write a function in mathematica to do the same with the following program? Confused | :confused:
main(){
char s[300],t[300];
int i,j,c,m,n,edit;
int a[301][301];

m=strlen(s);
n=strlen(t);

if(n==0){printf("Edit distance = %d\n",m); }
if(m==0){printf("Edit distance = %d\n",n);}

else{




for(i=0;i<=m;i++){
a[i][0]=i; }
for(j=1;j<=n;j++){
a[0][j]=j; }
for(i=1;i<=m;i++){
for(j=1;j<=n;j++){
if(s[i-1]==t[j-1])
c=0;
else c=1;

a[i][j]=min(a[i-1][j]+1,min(a[i][j-1]+1,a[i-1][j-1]+c));
edit=a[i][j];

}
}
printf("\nEdit distance = %d\n\n",edit);

}
}
GeneralRe: levenshtein distance Pin
Paul Conrad23-Dec-07 7:16
professionalPaul Conrad23-Dec-07 7:16 
QuestionSpeech Recognition Pin
smzhaq24-May-07 6:20
smzhaq24-May-07 6:20 
GeneralRe: Speech Recognition Pin
Paul Conrad23-Dec-07 7:16
professionalPaul Conrad23-Dec-07 7:16 
NewsFoundations of F# - Coming Very Soon Pin
strangelights23-May-07 23:41
strangelights23-May-07 23:41 
GeneralRe: Foundations of F# - Coming Very Soon Pin
Paul Conrad23-Dec-07 7:17
professionalPaul Conrad23-Dec-07 7:17 
QuestionBeginner Q: ^ = Math.Pow? (C#) Pin
matthias s.23-May-07 20:24
matthias s.23-May-07 20:24 
AnswerRe: Beginner Q: ^ = Math.Pow? (C#) Pin
CPallini23-May-07 20:32
mveCPallini23-May-07 20:32 
AnswerRe: Beginner Q: ^ = Math.Pow? (C#) Pin
Manoj Kumar Rai25-May-07 4:56
professionalManoj Kumar Rai25-May-07 4:56 
GeneralRe: Beginner Q: ^ = Math.Pow? (C#) Pin
CPallini25-May-07 5:36
mveCPallini25-May-07 5:36 
AnswerRe: Beginner Q: ^ = Math.Pow? (C#) Pin
PIEBALDconsult20-Jun-07 17:26
mvePIEBALDconsult20-Jun-07 17:26 
AnswerRe: Beginner Q: ^ = Math.Pow? (C#) Pin
Jeffrey Walton5-Jul-07 16:47
Jeffrey Walton5-Jul-07 16:47 
QuestionBest Math-Lib for C++ Pin
zqueezy23-May-07 14:04
zqueezy23-May-07 14:04 
AnswerRe: Best Math-Lib for C++ Pin
Bassam Abdul-Baki24-May-07 6:25
professionalBassam Abdul-Baki24-May-07 6:25 
AnswerRe: Best Math-Lib for C++ Pin
cp987624-May-07 14:44
cp987624-May-07 14:44 
AnswerRe: Best Math-Lib for C++ Pin
ekynox29-May-07 17:05
ekynox29-May-07 17:05 
QuestionRe: Best Math-Lib for C++ Pin
Matthew Faithfull29-May-07 23:21
Matthew Faithfull29-May-07 23:21 
AnswerRe: Best Math-Lib for C++ Pin
Jeffrey Walton5-Jul-07 16:46
Jeffrey Walton5-Jul-07 16:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.