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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:49:07+00:00 2026-06-08T09:49:07+00:00

I’m creating a facebook application which matches people people based on a set of

  • 0

I’m creating a facebook application which matches people people based on a set of criteria, and I figure it’s pretty easy to make a query to search the database for people matching the criteria EXACTLY, but was wondering how websites normally generate results which don’t exactly match the criteria.

I was thinking of something like a tally system where I look at the first parameter and find all the people who match that and increment a counter for their id, then look at the second and increment a counter for all the ones which match that etc. Then just display the results for the cases with the highest counters. The problem with this is that some criteria may be more important than others and I guess this could be solved with giving them a higher weighting i.e. increment counter by higher value.

So my questions are:

  1. How do websites normally do this and are there any standard php recipes for this?
  2. Is the algorithm I suggested feasible?
  3. What is this general area called? (I don’t know what I should be searching google for…)
  • 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-08T09:49:10+00:00Added an answer on June 8, 2026 at 9:49 am

    I think the search term is in your question 🙂
    I would recommend this approach:

    Treat this as a graph where each of ‘N’ people are connected to everyone else.
    Assign weights to the edges depending on whatever your application is.

    Then try to find the maximum matching in a bipartite graph.
    This is a well known problem. Try searching for Network flow+ bipartite graphs.

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

Sidebar

Related Questions

I am creating Facebook application which get insights for user's page for multiple metric.
I'm creating an ASP.NET application which uses Facebook Connect and fbml tags. It also
I am creating an application which uses the facebook api, and I want facebook
I'm creating an application in SproutCore, which I want to integrate with Facebook. To
I am creating an application in which I am trying to add Facebook account
i am creating a facebook application which lets user to upload photo through html
I am creating a facebook application which can be added to a facebook fan
I'm creating a Facebook web application which functions in a similar way to a
I am creating a Facebook application which should allow the user do post something
I was creating a facebook application and a security prompt came up which asked

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.