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 5980133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:45:29+00:00 2026-05-22T21:45:29+00:00

This is for automating a testing process. I have two string arrays (extracted from

  • 0

This is for automating a testing process. I have two string arrays (extracted from two different sources for testing). Each string in one of the arrays has to be assigned to a string in the other array. The strings may not always match exactly, but there may be a similar string (best match) that can be used. If the degree of variance (based on percentage???) is too much, then the item can be appropriately marked.

What I need is an algorithm for searching the BEST string and reject the same if there isn’t any.

  • 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-22T21:45:29+00:00Added an answer on May 22, 2026 at 9:45 pm

    The is no gold standard (“BEST”) string comparision algorithm. There are rather a number of string similarity algorithms based on various assumptions. The similarity measure takes two strings and returns a number indicating how similar the strings are.

    Using a similarity measure you can compare how equal the given strings with all the strings in your array. The similarity is a number and you can easily select the string with the best match, even when the given string and the one in the array are not identical.

    It’s also possible to introduce a cut-off threshold such as if no string is similar enough to the given string your algorithm can detect this.

    A popular similarity measure is the Levenshtein distance where the number of character changes, additions, and removals in order to go from one string to the other is counted.

    The levenshtein distance can easily be computed in c#, see for example this link for code sample.

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

Sidebar

Related Questions

We're in the process of streamlining/automating build, integration and unit testing as well as
What tools are useful for automating clicking through a windows form application? Is this
I'm using Automation to get_Text from an Excel worksheet. I do this because I
I'm trying to establish more formal requirements and testing procedures then we have now,
I have IE8 installed on my computer and have been working on automating some
I have found this example on StackOverflow: var people = new List<Person> { new
This is in the context of Automatic Differentiation - what would such a system
Our custom automatic email delivery service is hitting this problem with a couple of
If I define a struct in C# using automatic properties like this: public struct
This is a bit of a long shot, but if anyone can figure it

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.