<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Choosing up sides</title>
	<link>http://bit-player.org/2007/choosing-up-sides</link>
	<description>An amateur's outlook on computation and mathematics.</description>
	<pubDate>Fri, 29 Aug 2008 07:44:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Choosing up sides by: mark</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1692</link>
		<pubDate>Mon, 02 Jun 2008 13:38:59 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1692</guid>
					<description>Hi there-

Isn't this the Morse-Thue sequence?

ABBA-BAAB-BAAB-ABBA...

Check out &quot;Fair Division&quot; works by Brams and Taylor.  I think they prove some cool things about Morse-Thue and its relation to the playground picking.</description>
		<content:encoded><![CDATA[	<p>Hi there-</p>
	<p>Isn&#8217;t this the Morse-Thue sequence?</p>
	<p>ABBA-BAAB-BAAB-ABBA&#8230;</p>
	<p>Check out &#8220;Fair Division&#8221; works by Brams and Taylor.  I think they prove some cool things about Morse-Thue and its relation to the playground picking.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Seb</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1449</link>
		<pubDate>Fri, 20 Apr 2007 17:40:23 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1449</guid>
					<description>Barry, I made some new experiments and I think you are right. Team B seems to be favored by the algorithm ABBABA. Thank you. You should continue trusting your &quot;strength&quot; analysis.</description>
		<content:encoded><![CDATA[	<p>Barry, I made some new experiments and I think you are right. Team B seems to be favored by the algorithm ABBABA. Thank you. You should continue trusting your &#8220;strength&#8221; analysis.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Barry Cipra</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1448</link>
		<pubDate>Tue, 17 Apr 2007 18:45:18 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1448</guid>
					<description>Seb's algorithm is equivalent to ABBABA, which works best when n is a multiple of 6, say n=6m.  My &quot;strength&quot; analysis says this algorithm produces a bias of m in favor of team B, which suggests the discrepancy should also favor team B (but not as much as team A is favored by the ABAB algorithm, which has bias 3m).  So if Seb's program shows his algorithm still favors team A, then either there's something amiss in his program, or my &quot;strength&quot; analysis is worthless.  The latter possibility seems the more likely....</description>
		<content:encoded><![CDATA[	<p>Seb&#8217;s algorithm is equivalent to ABBABA, which works best when n is a multiple of 6, say n=6m.  My &#8220;strength&#8221; analysis says this algorithm produces a bias of m in favor of team B, which suggests the discrepancy should also favor team B (but not as much as team A is favored by the ABAB algorithm, which has bias 3m).  So if Seb&#8217;s program shows his algorithm still favors team A, then either there&#8217;s something amiss in his program, or my &#8220;strength&#8221; analysis is worthless.  The latter possibility seems the more likely&#8230;.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Seb</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1443</link>
		<pubDate>Sat, 07 Apr 2007 12:13:03 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1443</guid>
					<description>The following algorithm (call it ABCABC-BABA) uses a third bully in the following way:
Do ABCABC until all the players have been distributed in three groups. Then, take the players in C and distribute them using the BABA algorithm. According to my program this one is better than the ABAB but not as good as the ABBA. May be some kind of 'buffer' like this can improve the result but the team with the first choice has still a big advantage.</description>
		<content:encoded><![CDATA[	<p>The following algorithm (call it ABCABC-BABA) uses a third bully in the following way:<br />
Do ABCABC until all the players have been distributed in three groups. Then, take the players in C and distribute them using the BABA algorithm. According to my program this one is better than the ABAB but not as good as the ABBA. May be some kind of &#8216;buffer&#8217; like this can improve the result but the team with the first choice has still a big advantage.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Barry Cipra</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1438</link>
		<pubDate>Wed, 28 Feb 2007 18:35:38 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1438</guid>
					<description>Brian, I missed your use of &quot;two bullies.&quot;  My &quot;bully's algorithm&quot; has just one bully, who picks all the best players, leaving the scrawny kids for the other team -- that's what 11110000 (or AAAABBBB, in your notation) does with 8 kids.  

My point, if I have one, is that you should be able to get some sense of how big the expected discrepancy will be by measuring what I call the &quot;strength&quot; of each teams and taking the difference (which I call the &quot;bias&quot;).  My &quot;bully's algorithm&quot; is quadratically biased (it grows with the square of the number of players), the classic ABAB algorithm is linearly biased, and your ABBA and my ABA'B' algorithms are essentially unbiased (i.e., either 0 or 1).</description>
		<content:encoded><![CDATA[	<p>Brian, I missed your use of &#8220;two bullies.&#8221;  My &#8220;bully&#8217;s algorithm&#8221; has just one bully, who picks all the best players, leaving the scrawny kids for the other team &#8212; that&#8217;s what 11110000 (or AAAABBBB, in your notation) does with 8 kids.  </p>
	<p>My point, if I have one, is that you should be able to get some sense of how big the expected discrepancy will be by measuring what I call the &#8220;strength&#8221; of each teams and taking the difference (which I call the &#8220;bias&#8221;).  My &#8220;bully&#8217;s algorithm&#8221; is quadratically biased (it grows with the square of the number of players), the classic ABAB algorithm is linearly biased, and your ABBA and my ABA&#8217;B&#8217; algorithms are essentially unbiased (i.e., either 0 or 1).
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: brian</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1437</link>
		<pubDate>Tue, 27 Feb 2007 02:58:48 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1437</guid>
					<description>Hi guys. I'm getting confused by my own blog. What is the &quot;bully's algorithm&quot;? I had used the term &quot;two bullies algorithm&quot; (or words to that effect) to mean essentially the same thing as the ABAB algorithm. Barry, you have something else in mind? Or maybe I've just dropped a stitch. I've been a bit out of it, in more than one way -- now including being out of town. Because I may not be able to attend to this forum from moment to moment over the next two weeks, I've set comments to post automatically, without my intervention. So please carry on without me. (But the spam filter remains in place.)

--Brian</description>
		<content:encoded><![CDATA[	<p>Hi guys. I&#8217;m getting confused by my own blog. What is the &#8220;bully&#8217;s algorithm&#8221;? I had used the term &#8220;two bullies algorithm&#8221; (or words to that effect) to mean essentially the same thing as the ABAB algorithm. Barry, you have something else in mind? Or maybe I&#8217;ve just dropped a stitch. I&#8217;ve been a bit out of it, in more than one way &#8212; now including being out of town. Because I may not be able to attend to this forum from moment to moment over the next two weeks, I&#8217;ve set comments to post automatically, without my intervention. So please carry on without me. (But the spam filter remains in place.)</p>
	<p>&#8211;Brian
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Barry Cipra</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1436</link>
		<pubDate>Mon, 26 Feb 2007 20:17:13 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1436</guid>
					<description>An equivalent way to run my algorithm is to alternate picks with A going first and B second for roughly half the rounds, then switching to B first, A second for the rest (thus giving B two consecutive picks midway through).  E.g, for n=8, the picks go ABABBABA, while for n=10 they go ABABABBABA.

In general, any &quot;playground algorithm&quot; amounts to assigning to each (even) n, an n-bit binary number (letting A=1, B=0) with equal numbers of 1's and 0's.  There is, for example, the bully's algorithm, which gives numbers like 11110000.  The expected discrepancy for the bully's algorithm is obviously going to be quite large!

Let's define the &quot;value&quot; of a player to be the number of players on the other team that he or she is better than -- i.e., the &quot;value&quot; of each 1 is the number of 0's to its right, and likewise the &quot;value of each 0 is the number of 1's to its right.  The &quot;strength&quot; of a team is the sum of its players' values.  The &quot;bias&quot; of an algorithm is the difference between the two teams' strengths.  It is a function of n.  For the bully's algorithm, the bias is a whopping k^2, where k=n/2.  For the classic ABAB algorithm, it's simply k.  And for Brian's ABBA and my ABA'B' approach, it's 0 when k is even and 1 when k is odd.  (It's a nice exercise to show that you cannot get 0 bias when k is odd, no matter what you do.)

My guess is that, at least asymptotically, the expected discrepancy for any playground algorithm is purely a function of its bias divided by k.  I'm not sure what I mean by &quot;purely.&quot;  I'll leave that for someone else to figure out....</description>
		<content:encoded><![CDATA[	<p>An equivalent way to run my algorithm is to alternate picks with A going first and B second for roughly half the rounds, then switching to B first, A second for the rest (thus giving B two consecutive picks midway through).  E.g, for n=8, the picks go ABABBABA, while for n=10 they go ABABABBABA.</p>
	<p>In general, any &#8220;playground algorithm&#8221; amounts to assigning to each (even) n, an n-bit binary number (letting A=1, B=0) with equal numbers of 1&#8217;s and 0&#8217;s.  There is, for example, the bully&#8217;s algorithm, which gives numbers like 11110000.  The expected discrepancy for the bully&#8217;s algorithm is obviously going to be quite large!</p>
	<p>Let&#8217;s define the &#8220;value&#8221; of a player to be the number of players on the other team that he or she is better than &#8212; i.e., the &#8220;value&#8221; of each 1 is the number of 0&#8217;s to its right, and likewise the &#8220;value of each 0 is the number of 1&#8217;s to its right.  The &#8220;strength&#8221; of a team is the sum of its players&#8217; values.  The &#8220;bias&#8221; of an algorithm is the difference between the two teams&#8217; strengths.  It is a function of n.  For the bully&#8217;s algorithm, the bias is a whopping k^2, where k=n/2.  For the classic ABAB algorithm, it&#8217;s simply k.  And for Brian&#8217;s ABBA and my ABA&#8217;B&#8217; approach, it&#8217;s 0 when k is even and 1 when k is odd.  (It&#8217;s a nice exercise to show that you cannot get 0 bias when k is odd, no matter what you do.)</p>
	<p>My guess is that, at least asymptotically, the expected discrepancy for any playground algorithm is purely a function of its bias divided by k.  I&#8217;m not sure what I mean by &#8220;purely.&#8221;  I&#8217;ll leave that for someone else to figure out&#8230;.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: John</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1435</link>
		<pubDate>Mon, 26 Feb 2007 14:42:57 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1435</guid>
					<description>I'm not sure Barry's algorithm would be as acceptable in a playground situation. Is it more insulting to be picked last or to be nominated as the worst player while there are still many more to be selected :)</description>
		<content:encoded><![CDATA[	<p>I&#8217;m not sure Barry&#8217;s algorithm would be as acceptable in a playground situation. Is it more insulting to be picked last or to be nominated as the worst player while there are still many more to be selected :)
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Barry Cipra</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1434</link>
		<pubDate>Thu, 22 Feb 2007 17:47:17 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1434</guid>
					<description>I wonder how the following algorithm, which I'll call the ABA'B' method, does:  Captain A picks first, followed by Captain B.  They obviously pick the top two players.  Then Captain B makes A's next choice -- picking the *worst* player available -- followed by A doing the same for B's team.  Then repeat.  In effect this pairs players from the outside in (assuming the number of players n is a multiple of 4 -- otherwise the innermost pair go to opposite teams, with the better of those two going to team A).

My guess is, it'll be virtually indistinguishable, expected-discrepancy-wise, from the ABBA algorithm.</description>
		<content:encoded><![CDATA[	<p>I wonder how the following algorithm, which I&#8217;ll call the ABA&#8217;B&#8217; method, does:  Captain A picks first, followed by Captain B.  They obviously pick the top two players.  Then Captain B makes A&#8217;s next choice &#8212; picking the *worst* player available &#8212; followed by A doing the same for B&#8217;s team.  Then repeat.  In effect this pairs players from the outside in (assuming the number of players n is a multiple of 4 &#8212; otherwise the innermost pair go to opposite teams, with the better of those two going to team A).</p>
	<p>My guess is, it&#8217;ll be virtually indistinguishable, expected-discrepancy-wise, from the ABBA algorithm.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: brian</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1433</link>
		<pubDate>Thu, 22 Feb 2007 13:43:54 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1433</guid>
					<description>Suresh: The abilities are known to both captains, and furthermore the captains agree in all their assessments. I assume that the captains always choose the highest-ranked player from those remaining.</description>
		<content:encoded><![CDATA[	<p>Suresh: The abilities are known to both captains, and furthermore the captains agree in all their assessments. I assume that the captains always choose the highest-ranked player from those remaining.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: Suresh</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1432</link>
		<pubDate>Wed, 21 Feb 2007 22:46:56 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1432</guid>
					<description>I'm not clear on the rules of the game here. are the player &quot;qualities&quot; hidden from the choosers, or does A always choose the top ranked player, B chooses the next two, and so on? If not, do A and B pick randomly from all players at each step  ?</description>
		<content:encoded><![CDATA[	<p>I&#8217;m not clear on the rules of the game here. are the player &#8220;qualities&#8221; hidden from the choosers, or does A always choose the top ranked player, B chooses the next two, and so on? If not, do A and B pick randomly from all players at each step  ?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Choosing up sides by: clem</title>
		<link>http://bit-player.org/2007/choosing-up-sides#comment-1430</link>
		<pubDate>Tue, 20 Feb 2007 22:08:35 +0000</pubDate>
		<guid>http://bit-player.org/2007/choosing-up-sides#comment-1430</guid>
					<description>The ABBA method is basically a two player version of the &quot;snake draft&quot; customarily used to pick teams in fantasy football leagues.  Team drafting order is selected either randomly or based on the previous season's final standings.  After the first round of picks, the last picker picks first in the second round, thus picking twice in a row, and the sequence is reversed. So in a four team league it would go ABCDDCBAABCD....</description>
		<content:encoded><![CDATA[	<p>The ABBA method is basically a two player version of the &#8220;snake draft&#8221; customarily used to pick teams in fantasy football leagues.  Team drafting order is selected either randomly or based on the previous season&#8217;s final standings.  After the first round of picks, the last picker picks first in the second round, thus picking twice in a row, and the sequence is reversed. So in a four team league it would go ABCDDCBAABCD&#8230;.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
