It is currently Sat May 10, 2025 10:39 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
Offline
 Post subject: tournaments as sorting networks
Post #1 Posted: Fri Sep 02, 2011 2:53 pm 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
I was thinking about the somewhat unusual format used for the Super Meijin tournament. In words it's like this:
A and B play. The loser of that match plays C. The winner of match 2 plays the winner of match one for the final. It occured to me that this could be represented as a sorting network:

Code:
--:-----:--
  |     |
--:--:--:--
     |   
-----:----- 


It's a bit hard to draw in ascii, hopefully it makes sense. At each switch, the winner goes up, loser goes down. I know there's quite a bit of theory about sorting networks, but I'm wondering if anything like that has been applied to tournaments, to find some theoretically nice tournaments. What do you all think?

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #2 Posted: Sat Sep 03, 2011 2:53 pm 
Lives in sente
User avatar

Posts: 921
Liked others: 401
Was liked: 164
Rank: German 2 dan
The championship preliminary in Hesse (a federal state of Germany) consists of 8 players who play three rounds to determine a complete ordering.

The final round of the national german championship is an 8 player round robin tournament with 7 rounds where each player plays each other player exactly once.

A man with a clock knows which time it is. A man with two clocks is never sure.

_________________
A good system naturally covers all corner cases without further effort.

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #3 Posted: Sat Sep 03, 2011 4:29 pm 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
I guess I'm thinking something like this: assume you have 8 players, and enough time or money for 7 rounds. These are your constraints. What tournament structure is most likely to pick the best player? Round robin is one method. But you could also have 2 single elimination rounds followed by a best-of-5 final. Or break into 2 groups of 4, play 3 rounds of round-robin, and have the final 4 play 4 rounds.

If you made some assumptions about player strength distribution, it'd be pretty straightforward to simulate different tournaments and see how often the best player comes out on top.

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #4 Posted: Sat Sep 03, 2011 5:15 pm 
Judan
User avatar

Posts: 5546
Location: Banbeck Vale
Liked others: 1104
Was liked: 1457
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
emeraldemon wrote:
...
Code:
--:-----:--
  |     |
--:--:--:--
     |   
-----:----- 

...


Just to clarify:

1) Each player is represented by a horizontal line starting at the left.
2) Each vertical line is a game.
3) Time goes from left to right.
4) The player coming out of the top right is the winner...

Is that correct?


EDIT: I was at the Royal Observatory Museum in Greenwich a few weeks ago, looking at all the centuries old scientific instrumentation...including the watches that cost a year's wages for the average person, and were accurate to within 1/2 hour per day.

_________________
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #5 Posted: Sun Sep 04, 2011 7:10 pm 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
@Joaz:
Yes, that's right. I'm basing it off of this:

http://en.wikipedia.org/wiki/Sorting_network

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #6 Posted: Thu Sep 15, 2011 10:11 am 
Lives in gote

Posts: 322
Liked others: 4
Was liked: 39
Rank: 6k
GD Posts: 25
OGS: phillip1882
hmm, interesting. i think any sort function will work, assuming your willing to have n*log2 n games.
if you really want a rigorous method, i'd reccomend the bitonic merge sort.
(this is closer to n*(log2 n)^2
http://en.wikipedia.org/wiki/Bitonic_sorter

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #7 Posted: Thu Sep 15, 2011 12:06 pm 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Well, there are some important differences between sorting and a tournament. First, a game's outcome is nondeterministic: imagine sorting in a situation where sometimes comparing to elements gave the "wrong" outcome. Second, a tournament is not (usually) concerned with a complete ranking of the players: most of the interest is in finding the best player. Some tournaments will have a third place match, for example, but rarely is an effort made to distinguish 5th from 6th. One exception is a league-type tournament (such as for the Big 3 Japanese tournaments) where you not only want to know the best, but also the worst so that they can be demoted from the league.

I think maybe to start it's best to come up with a simple framework, something like:

1) All players have a hidden (true) ELO rating.
2) The best tournament structure is the one with the highest likelihood of choosing the best player as the winner of the tournament, staying within the constraints (number of matches/rounds).

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #8 Posted: Fri Sep 16, 2011 11:19 am 
Lives in gote

Posts: 322
Liked others: 4
Was liked: 39
Rank: 6k
GD Posts: 25
OGS: phillip1882
for an 8 player, 7 round tournament, i don't think you can do much better than the following:
Code:
--:---------------------:---:------:------------:------:------------:---
  |                     |   |      |            |      |            |
--|--:---------------:--|---|--:---|--:---------|--:---|-----:------:---
  |  |               |  |   |  |   |  |         |  |   |     |
--|--|--:---------:--|--|---|--:---|--|--:------:--|---|--:--|------:---
  |  |  |         |  |  |   |      |  |  |         |   |  |  |      |
--|--|--|--:---:--|--|--|---:------|--|--|--:------:---|--|--|--:---:---
  |  |  |  |   |  |  |  |          |  |  |  |          |  |  |  |
--|--|--|--:---|--|--|--:---:------|--|--:--|---:------|--|--:--|---:---
  |  |  |      |  |  |      |      |  |     |   |      |  |     |   |
--|--|--:------|--|--:------|--:---|--|-----:---|--:---:--|-----|---:---
  |  |         |  |         |  |   |  |         |  |      |     |   
--|--:---------|--:---------|--:---:--|---------:--|------|-----:---:---
  |            |            |         |            |      |         |
--:------------:------------:---------:------------:------:---------:---

after the first round, it alternates between the top 4 playing the bottom 4, and the top 4, bottom 4 playing against eachother. this gives players a chance to come from behind if they win 2 in a row, but also severely punishes players for losing against a bad player.


This post by phillip1882 was liked by: emeraldemon
Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #9 Posted: Fri Sep 16, 2011 12:48 pm 
Lives in gote
User avatar

Posts: 655
Location: Czechia
Liked others: 29
Was liked: 41
Rank: 1d KGS
KGS: Laman
phillip1882 wrote:
for an 8 player, 7 round tournament, i don't think you can do much better than the following: ...

but with 8 players and 7 rounds you should get round robin anyway, don't you? (sorry, i don't know much about sorting networks, that's just my assumption)

_________________
Spilling gasoline feels good.

I might be wrong, but probably not.

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #10 Posted: Fri Sep 16, 2011 1:31 pm 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Certainly a round-robin would also be 7 rounds. The question is, which tournament is more likely to end with the best player in first place?

Top
 Profile  
 
Offline
 Post subject: Re: tournaments as sorting networks
Post #11 Posted: Sat Sep 17, 2011 12:48 pm 
Lives in gote
User avatar

Posts: 312
Liked others: 52
Was liked: 41
Rank: 7K KGS
KGS: tictac
slightly off topic: instead of sorting network you can consider more generally trying to apply a sorting algo to a set of players.
But something implicit in tournaments but not in sorting algorithms is that you try to have everybody have the same number of game with the exception of a few bye (meaning that you want an heavily parrallelizable algo: so sorting networks are indeed good candidates, but a decent tournament model should maximise parrallelism before all else);

Imagine applying a standard selecting algo to a tournament of 100 player when you want to know the top 3 to qualifwy them to an event.
apply quickselect:
you select a random player, then make him play against everybody else;
Then if more than 3 players have beaten him, select a random player amongst those that beat the first one and make him play against all of those that beat the first one; Those that have been beaten the first time are out (if more than 3 ar beaten the first pivot)
rince and repeat until exactly 3 players have beaten your pivot.
That would be a pretty dumb tournament model :mrgreen:

back on the topic;, i dont think there are been studies of the effects of errors on the comparison and the resilience of sorting algo to that ?

_________________
In theory, there is no difference between theory and practice. In practice, there is.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group