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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:21:53+00:00 2026-05-26T18:21:53+00:00

I’m trying to think of an efficient or reasonable algorithm to take the results

  • 0

I’m trying to think of an efficient or reasonable algorithm to take the results of a test submitted by the user and compare them with the values of several profiles to find a match (like how online dating services match your answers to suitable mates).

I really have no idea how to go about this. If the user answers 10 questions about himself and there are 10 candidates to match him with, we’re looking at thousands of comparisons through the database. There must be a better way to do this.

Of the research I’ve done, maybe I could accomplish this with the Levenshtein distance function, but I don’t know how to go about it because I’m not entirely familiar with this and I don’t understand it that well. But maybe I could do something like compare the user’s results concatenated into a string (e.g. ‘AEBCDAABEAD’) with the answers of each candidate and measure similarity that way?

Any suggestions?

Thanks much.

  • 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-26T18:21:54+00:00Added an answer on May 26, 2026 at 6:21 pm

    I think using the exact answers is not a solution flexible enough for every purpose, because other answers may not have a deep impact on certain profile types.
    Someone with 1-2 and 3-4 will still have a non-matching answer, even if the person take 20-25 is way off. Afaik with Levensthein ‘AB’ and ‘AC’ are as similar as ‘AZ’ to ‘AB’.

    Also the Levensthein algorith is a good idea, I guess you get too worse matches in some cases, if you do this question-based.

    Let me describe what technique comes into my mind, when I read you question.

    Profile categories and answer weight

    I’m thinking of a configuration where you can described a few profiles or attribute categories.
    Let’s take for example food tastes. So our categories may look like:
    sweet, sour, spicy, normal etc.

    Now for your survey I would configure for each question a category weight. which you can accumulate.

    Example

    Do you like chili con carne
    Yes – spicy +3
    No – spicy -1

    Now you can use a algorithm to determine the distance in each category and weight them in a caculation.

    (sweet | spicy | sour | normal)
        -5      15      2        8  // Person 1
        10      -5     10        2  // Person 2
         8      -8      7       12  // Person 3
    

    Now you can compare for example the persons decision and see, that the distance between [2] and [3] is way smaller than between [1] and [2].
    Note: I’m not talking about Levensthein distance here, because these values are numeric and a calculation give better results than just not matching characters.


    I’m not sure if this is helpful to you, but thiis came into my mind and seemed to be a neat solution.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post

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.