Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 413139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:09:17+00:00 2026-05-12T18:09:17+00:00

LD = Levenshtein Distance Just doing a few examples on paper, this seems to

  • 0

LD = Levenshtein Distance

Just doing a few examples on paper, this seems to work, but does anyone know if this is always true?

Lets say I have 3 strings

BOT

BOB

BOM

LD(BOT,BOB) = 1

and

LD(BOB,BOM)=1

then

LD(BOT,BOM)=max(LD(BOT,BOB) , LD(BOB,DOM))=1

OR

BAAB

BBAB

BCCD

LD(BBAB,BAAB) = 1

and

LD(BBAB,BCCD)=3

then

LD(BAAB,BCCD)=max(LD(BBAB,BAAB), LD(BBAB,BCCD))=3

I’d like to know if this always applies.

That is,

LD(B,C) = max (LD(A,C),LD(A,B))


EDIT — Added at 10/22/2009 7:08PM PST

I’m starting to think this holds for words of the same length, otherwise you can still do it but you have to add the absolute value of the difference in word length.

In essence LD(B,C) = max(LD(A,C),LD(A,B)) + abs(length(B)-length(C))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:09:17+00:00Added an answer on May 12, 2026 at 6:09 pm

    Doesn’t work.

    LD("BOB", "BOT") == 1
    LD("BOT", "BOB") == 1
    
    LD("BOB", "BOB") == 0
    max(LD("BOB", "BOT"), LD("BOT", "BOB")) == 1
    
    0 != 1
    

    there are probably harder examples also…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having troubles optimizing this Levenshtein Distance calculation I'm doing. I need to do
Good afternoon, Does anyone know of an out-of-the-box implementation of Levenshtein DFA ( deterministic
I'm looking at the possibility of implementing a Levenshtein distance algorithm using APARAPI, but
I'm trying to implement the levenshtein distance (or edit distance) in Haskell, but its
Will the Levenshtein distance algorithm work well for non-English language strings too? Update :
I could just add in something that creates typos based on Levenshtein distance of
I'm trying to calculate the similarity (read: Levenshtein distance ) of two images, using
Is there a package that contains Levenshtein distance counting function which is implemented as
By fuzzy matching I don't mean similar strings by Levenshtein distance or something similar,
I recently posted a question about optimizing the algorithm to compute the Levenshtein Distance,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.