I work for an organisation which sometimes gives away free books, CDs and stuff to people on a mailing list who write in and ask for them. (Long story, and no, you can't join, sorry!)
Say we have 20 books to give away. We send out that list and thirty people write in and say "I would like Book A please" etc.
I've asked them to state a preference, to make it easier. So what they do is actually say "I would like, in order of preference, Book A, Book B or Book C".
So now I've got twenty books, and thirty people asking for them.
If the matrix looked like this, there'd be no problem:
Item 1st 2nd 3rd
--------------------------------------
Book A Person 1 Person 3 Person 4
--------------------------------------
Book B Person 4 Person 1 Person 3
--------------------------------------
Book C Person 2 Person 5 Person 2
--------------------------------------
Book D Person 3 Person 4 Person 5
--------------------------------------
Book E Person 5 Person 2 Person 1
(Hope that comes out OK in your browser. Looks OK on preview. Monospaced font will line everything up.)
Because in that perfect world, there are five books and five people and everyone's got a first choice which is nobody else's first choice.
What happens of course is more like this:
Item 1st 2nd 3rd
--------------------------------------
Book A Person 1 Person 3 Person 4
Person 2 Person 2
Person 7
--------------------------------------
Book B Person 4 Person 1 Person 3
Person 2
Person 5
Person 3
Person 6
Person 7
Person 8
--------------------------------------
Book C Person 5
Person 6
--------------------------------------
Book D Person 4 Person 5
Person 8 Person 6
--------------------------------------
Book E Person 1 Person 8
Person 7
--------------------------------------
with lots of people nominating popular items, lots of "holes", and more people than items.
What would be your strategy for maximum happiness here? In other words, what's the best way to make sure the greatest number of people get their highest-number choice?
Person 2 has chosen book A as both their 2nd and 3rd choice?
Person 3 has chosen book B as both their 1st and 3rd choice?
Person 1 has two 2nd choices?
...Am I reading the data wrong?
posted by juv3nal at 7:52 PM on October 27, 2005