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

  • Home
  • SEARCH
  • 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 7755127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:29:26+00:00 2026-06-01T12:29:26+00:00

I want to use string similarity functions to find corrupted data in my database.

  • 0

I want to use string similarity functions to find corrupted data in my database.

I came upon several of them:

  • Jaro,
  • Jaro-Winkler,
  • Levenshtein,
  • Euclidean and
  • Q-gram,

I wanted to know what is the difference between them and in what situations they work best?

  • 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-06-01T12:29:27+00:00Added an answer on June 1, 2026 at 12:29 pm

    Expanding on my wiki-walk comment in the errata and noting some of the ground-floor literature on the comparability of algorithms that apply to similar problem spaces, let’s explore the applicability of these algorithms before we determine if they’re numerically comparable.

    From Wikipedia, Jaro-Winkler:

    In computer science and statistics, the Jaro–Winkler distance
    (Winkler, 1990) is a measure of similarity between two strings. It is
    a variant of the Jaro distance metric (Jaro, 1989, 1995) and
    mainly[citation needed] used in the area of record linkage (duplicate
    detection). The higher the Jaro–Winkler distance for two strings is,
    the more similar the strings are. The Jaro–Winkler distance metric is
    designed and best suited for short strings such as person names. The
    score is normalized such that 0 equates to no similarity and 1 is an
    exact match.

    Levenshtein distance:

    In information theory and computer science, the Levenshtein distance
    is a string metric for measuring the amount of difference between two
    sequences. The term edit distance is often used to refer specifically
    to Levenshtein distance.

    The Levenshtein distance between two strings is defined as the minimum
    number of edits needed to transform one string into the other, with
    the allowable edit operations being insertion, deletion, or
    substitution of a single character. It is named after Vladimir
    Levenshtein, who considered this distance in 1965.

    Euclidean distance:

    In mathematics, the Euclidean distance or Euclidean metric is the
    “ordinary” distance between two points that one would measure with a
    ruler, and is given by the Pythagorean formula. By using this formula
    as distance, Euclidean space (or even any inner product space) becomes
    a metric space. The associated norm is called the Euclidean norm.
    Older literature refers to the metric as Pythagorean metric.

    And Q- or n-gram encoding:

    In the fields of computational linguistics and probability, an n-gram
    is a contiguous sequence of n items from a given sequence of text or
    speech. The items in question can be phonemes, syllables, letters,
    words or base pairs according to the application. n-grams are
    collected from a text or speech corpus.

    The two core
    advantages of n-gram models (and algorithms that use
    them) are relative simplicity and the ability to scale up – by simply
    increasing n a model can be used to store more context with a
    well-understood space–time tradeoff, enabling small experiments to
    scale up very efficiently.

    The trouble is these algorithms solve different problems that have different applicability within the space of all possible algorithms to solve the longest common subsequence problem, in your data or in grafting a usable metric thereof. In fact, not all of these are even metrics, as some of them don’t satisfy the triangle inequality.

    Instead of going out of your way to define a dubious scheme to detect data corruption, do this properly: by using checksums and parity bits for your data. Don’t try to solve a much harder problem when a simpler solution will do.

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

Sidebar

Related Questions

I want to use a regex to find a particular string in my sample,
I want to use string Tokenizer for CPP string but all I could find
I want to use a string that I have been using in one aspx.cs
I have a string in XML format and I want to use this string
I want to use \ in a string, like string str=abc\xyz; But this is
I want to use a particular string found in the Values folder into normal
I want to use the Split function on a string but keep the delimiting
I want to use regular expression same way as string.Format. I will explain I
I want to use this for an object factory: Given a string, create a
I have a variable line_number_max_digits and I want to use it in string format

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.