Puzzles Weren't My Major: How Do I Re-Order An Mixed Up List?
January 22, 2009 12:54 PM
Subscribe
Help me sort out this problem of ranking bracket winners... Thx in advance, hivemind.
I have a bunch of data that needs to be ranked in the form of "A won over B", "C won over F", "A won over F", "B won over D"... etc, etc.
How do I get all of this scattered info into a ranked list of "A>B>C>D>E>F, etc"..?
I also have a sneaky suspicion that some of these tidbits of info might be contradictory (or circular)... eg. "A>C", "C>B", "B>A"...
Any help? Thanks!
posted by mhh5 to computers & internet (7 comments total)
2 users marked this as a favorite
If you do have "cycles" in your data (A>C, C>B, B>A, etc), the problem is a very hard one that computer scientists and operations researchers struggle with to this day. On the other hand, we've got it solved as long as your tournament has fewer than, say, 100 participants, and mostly solved as long as your tournament has fewer than 300-400.
There are some other practical problems to contend with. If you're missing enough data, the ranking could be "unstable": there could be two equally good rankings that give people drastically different positions. But if you have a round-robin tournament (everybody has played everybody), this should not be an issue. Also, this problem is much more tractable for round-robin tournaments if I recall.
If you only have to solve this problem once, email me (my email is in my profile) and I'd be glad to help out.
posted by goingonit at 1:04 PM on January 22