Help Logical calculation of pair comparisons from analysis of existing results

Click For Summary

Discussion Overview

The discussion revolves around the challenge of efficiently determining the ranking order of items based on pairwise comparisons. Participants explore the implications of subjective opinions in ranking and seek algorithms that can minimize the number of comparisons needed to establish a complete order among items.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes a system where users compare pairs of items to establish a ranking order and seeks a method to reduce the number of comparisons needed.
  • Another participant suggests that the problem relates to sorting algorithms and mentions several types, including quicksort and mergesort, while noting the difference between expected and worst-case scenarios.
  • A participant acknowledges the need for a third comparison if the results of the first two comparisons are inconsistent, emphasizing the importance of an algorithm that updates rankings dynamically after each comparison.
  • Another participant raises concerns about the subjectivity of opinions in comparisons, suggesting that inconsistencies may arise and recommending further reading on reconstructing partial orders and the secretary problem.

Areas of Agreement / Disagreement

Participants express differing views on the implications of subjective rankings and the necessity of additional comparisons based on inconsistent results. There is no consensus on a specific algorithm or method to apply.

Contextual Notes

The discussion highlights limitations related to the subjective nature of opinions in ranking systems and the potential for inconsistencies in choices made by users. The need for an algorithm that can adapt to new information after each comparison is emphasized.

ivehadanidea
Messages
2
Reaction score
0
Apologies if this has been asnswered before or if it's in the wrong place but I really don't know the proper terms I should be looking for.

I have a system whereby people are asked to choose between two items, then another two, etc. until all paired combinations from the list of items has been tested. This gives me a ranking order.

e.g. we have 3 items; A, B and C.
Each item must compared against each of the others, which may give us this result:

A > B
B > C
A > C

By '>' I mean 'better than', as in an opinion, rather than 'greater than', as in a mathematical fact.

My problem is this:

I want to be able to automatically calculate any possible results without having to ask them to the user. In the above example we only need have asked 2 comparisons, since by the third we knew A > C since A > B > C. It was ok to ask all possible combinations here as there are only 3 but in my real situation I will have at least 5 items, which means 10 possible combinations.

How can I apply this logic to minimise the number of questions I need to ask before I know the result of each combination?

I will be programming this in SQL since the results are coming from a database. Any help with that in mind would also be much appreciated.

Thanks in advance!
 
Physics news on Phys.org
It's called sorting. There was a whole book written about it by Knuth. There are many algorithms: quicksort, bubblesort, mergesort, to name just 3.

I'm sure now you have the right area to search for you will find the method that suits best (some need more memory, others more time, etc).

Incidentally, your example above didn't need just 2 comparisons. You only say that because you got A>B, and then B>C. Suppose that the second test gave you C > B instead. Now you have no way to know if A>C or C>A without a 3rd test. There is a difference between expected time and worst case time in the different algorithms.
 
Thanks Matt,

I realize that if the second result had been C > A then a third comparison would have been required. This is exactly why I need to find an algorithm that I can run each time a comparison is made, so that after every answer I can fill in any possible blanks and move on to the next question deemed necessary to ask.

This is great, thanks for pointing me in the right direction, I'll be looking into sorting to see if I can find an approriate solution.
 
I just noticed that you didn't mean > to mean any technical notion of order. You may well find that if you're attempting to use something subjective (someone's opinion of something) you will find that people are not consistent in their choices.

You may also wish to read about reconstructing partial orders (as opposed to well orders) and the secretary problem.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 72 ·
3
Replies
72
Views
7K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 39 ·
2
Replies
39
Views
5K
  • · Replies 5 ·
Replies
5
Views
6K