Click here to Skip to main content
15,884,425 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Hi There is a function in PhotoShop Color match! Pin
Richard MacCutchan29-Oct-11 7:16
mveRichard MacCutchan29-Oct-11 7:16 
GeneralRe: Hi There is a function in PhotoShop Color match! Pin
shengcheng_jin30-Oct-11 19:37
shengcheng_jin30-Oct-11 19:37 
GeneralRe: Hi There is a function in PhotoShop Color match! Pin
the north face15-Nov-11 15:57
the north face15-Nov-11 15:57 
QuestionLevenshtein Distance Pin
PIEBALDconsult14-Oct-11 6:05
mvePIEBALDconsult14-Oct-11 6:05 
AnswerRe: Levenshtein Distance Pin
TheGreatAndPowerfulOz18-Oct-11 12:44
TheGreatAndPowerfulOz18-Oct-11 12:44 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 6:27
mvePIEBALDconsult19-Oct-11 6:27 
AnswerRe: Levenshtein Distance Pin
Luc Pattyn18-Oct-11 14:08
sitebuilderLuc Pattyn18-Oct-11 14:08 
AnswerRe: Levenshtein Distance Pin
Luc Pattyn18-Oct-11 17:23
sitebuilderLuc Pattyn18-Oct-11 17:23 
I gave it another pass, and now I discovered Wikipedia[^] holds the obvious optimization: "We can adapt the algorithm to use less space, O(min(n,m)) instead of O(mn), since it only requires that the previous row and current row be stored at any one time." (I had come to a similar conclusion holding two lines perpendicular to the major diagonal).

And you would only need one sweep, as all you want is the distance, not the way to get there with insert/delete/replace operations.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
iSad

GeneralRe: Levenshtein Distance Pin
PIEBALDconsult18-Oct-11 17:54
mvePIEBALDconsult18-Oct-11 17:54 
AnswerRe: Levenshtein Distance Pin
Luc Pattyn19-Oct-11 0:31
sitebuilderLuc Pattyn19-Oct-11 0:31 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 2:40
mvePIEBALDconsult19-Oct-11 2:40 
AnswerRe: Levenshtein Distance Pin
Luc Pattyn19-Oct-11 3:01
sitebuilderLuc Pattyn19-Oct-11 3:01 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 3:16
mvePIEBALDconsult19-Oct-11 3:16 
AnswerRe: Levenshtein Distance Pin
Luc Pattyn19-Oct-11 3:51
sitebuilderLuc Pattyn19-Oct-11 3:51 
AnswerRe: Levenshtein Distance Pin
TheGreatAndPowerfulOz19-Oct-11 4:58
TheGreatAndPowerfulOz19-Oct-11 4:58 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 6:24
mvePIEBALDconsult19-Oct-11 6:24 
AnswerRe: Levenshtein Distance Pin
YvesDaoust19-Oct-11 3:31
YvesDaoust19-Oct-11 3:31 
AnswerRe: Levenshtein Distance Pin
Luc Pattyn19-Oct-11 3:49
sitebuilderLuc Pattyn19-Oct-11 3:49 
GeneralRe: Levenshtein Distance Pin
YvesDaoust19-Oct-11 4:06
YvesDaoust19-Oct-11 4:06 
GeneralRe: Levenshtein Distance Pin
Luc Pattyn19-Oct-11 4:16
sitebuilderLuc Pattyn19-Oct-11 4:16 
GeneralRe: Levenshtein Distance Pin
YvesDaoust19-Oct-11 4:27
YvesDaoust19-Oct-11 4:27 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 6:26
mvePIEBALDconsult19-Oct-11 6:26 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 6:24
mvePIEBALDconsult19-Oct-11 6:24 
GeneralRe: Levenshtein Distance Pin
PIEBALDconsult19-Oct-11 6:28
mvePIEBALDconsult19-Oct-11 6:28 
AnswerRe: Levenshtein Distance Pin
YvesDaoust19-Oct-11 7:14
YvesDaoust19-Oct-11 7:14 

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.