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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:18:13+00:00 2026-05-27T15:18:13+00:00

I need to solve a problem where an item A must be compared to

  • 0

I need to solve a problem where an item A must be compared to thousands of other items, and find out which items are the most similar to item A.

I want to assign a weight to each of these items depending on how similar they are to item A. Various criteria will determine the final weight. For instance, if item1.someProperty == otherItem.someProperty, then I increase the weight by 5, if item1.anotherProperty == otherItem.anotherProperty, then I only increase the weight by 1, because someProperty is more important than anotherProperty.

The reason I’m describing all that, is that I want to know if there’s any theory that will help me create this system. In particular, how to choose the weight of each criteria, how to compute the final weight of an item, and how to architecture all that.

So does anybody know if there is any theory that could help? Or perhaps there is a better way to do what I’m trying to do?

  • 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-27T15:18:14+00:00Added an answer on May 27, 2026 at 3:18 pm

    You could think of your properties as dimensions and compose a distance out of them. If there is correlation between the properties, you could take that into account as well (google for Mahalanobis distance).

    But basically it winds down to

     float distance(a, b) {
        return w1 * ABS(a.x - b.x)
             + w2 * ABS(a.y - b.y)
               ...
        ;
     } 
    

    Instead of summing the terms, you could sum the squared terms (to penalise big differences), anything goes.

    BTW for nominal data you could use some entropy-based measure of difference.

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

Sidebar

Related Questions

I need to solve a job affectation problem and I would like to find
I need a regular expression to solve the following problem (links to similar problems
I can't figure out how to solve the following problem. What i need it
I need to solve a problem within job booking software and am hoping to
I don't like JSF but I need to solve this problem with it, I
I need to solve a locking problem for this scenario: A multi CPU system.
To solve some problem I need to compute a variant of the pascal's triangle
A problem that we need to solve regularly at my workplace is how to
I need some ideas on how I can best solve this problem. I have
Well i need some help here i don't know how to solve this problem.

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.