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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:15:00+00:00 2026-06-02T01:15:00+00:00

I want to develop a site which can compare two products based on their

  • 0

I want to develop a site which can compare two products based on their features.

I want to store features as attributes in database. For example, Cellphone is a product so ‘Screen Type’ and ‘Screen Resolution’ are attributes and their values could be LED/AMOLED and 800×400/340×230.

Database could be of Cellphone/Laptop/TV but database will be for one product type only.

I want to know if there are any algorithms to find out best of two depending on their attributes?

Any suggestion/pointers will be more appreciated.

  • 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-02T01:15:02+00:00Added an answer on June 2, 2026 at 1:15 am

    Here’s a possible algorithm, but it won’t be applicable to multiple users/customers unless they share your same preferences (and disposable income!). I’ve done something roughly like this when looking for an apartment:

    Step 1: For each feature, map the different options to a numerical value. I don’t know much about cell phone screens, but let’s say you consider an AMOLED screen to be worth 20% more than an LED screen. Values that are already numeric can either be mapped discretely or using an equation.

    Step 2: Give each feature a weight.

    Step 3: For each feature, multiply the weight by the value; add these up and you have a score for each product. Whichever product has the highest score wins.


    For example, say each cell phone has these parameters:

    • Screen type: LED or AMOLED
    • Weight in grams
    • Screen dimensions in inches, L*W
    • Screen resolution in pixels, X*Y
    • Battery life in hours

    Mapping each parameter to a value, such that something twice as valuable is twice as high:

    Screen type: LED => 1.0, AMOLED => 1.2
    Weight: w => 50/(w+3)
    Screen size: (L,W) => sqrt(L^2 + W^2) / 3
    Screen DPI: (L,W,X,Y) => sqrt((X*Y)/(L*W)) / 100
    Battery life: T => T / 20
    

    And your relative weights are:

    Screen type: 3
    Weight: 1
    Screen size: 4
    Screen DPI: 2
    Battery life: 2
    

    Compute score for cell phone #1 with an 800x400px, 3×4 inch, LED screen, weighing 40g, with 48 hours of battery life would get a score of:

    3*1.0 + 1*50/(40+3) + 4*sqrt(3^2*4^2)/3 + 2*sqrt(800*400/(3*4))/100 + 2*48/20
    = 28.23
    

    Compute score for cell phone #2 with an 100x100px, 2×1.5 inch, AMOLED screen, weighing 8g, with 200 hours of battery life would get a score of:

    3*1.2 + 1*50/(8+3) + 4*sqrt(2^2*1.5^2)/3 + 2*sqrt(100*100/(2*1.5))/100 + 2*200/20
    = 33.3
    

    So the second phone is “best”. Other parameters, especially cost, should probably be included in the score.


    Accurate results will require accurate mapping to a numerical scale and accurate relative weights – not an easy task, even to decide for yourself. You could allow users to set their own relative weights, perhaps…

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

Sidebar

Related Questions

I want to develop a online karaoke site where users can select a video
I want to develop a site that will allow be to publish information to
I'm new in ASP.NET MVC2. But I want to develop a simply Newsletter site.
I want to develop an application in which i want to display restaurants nearby
I want to develop a site with 2 languages, a default one, my native
I want to develop an chat application, in which I successfully added files of
Can I get information from which web site is came request to read XML
We are developing a mobile web application which user's can reach via their mobile
is there a free framework which I can use to develop a web analytics
I want develop some web product with using javascript 3d library like three.js But

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.