<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Secret Santa as a Puzzle</title>
	<atom:link href="http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/</link>
	<description>Database Whisperer</description>
	<lastBuildDate>Thu, 23 May 2013 10:06:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Michael J. Swart</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6197</link>
		<dc:creator>Michael J. Swart</dc:creator>
		<pubDate>Tue, 25 Oct 2011 18:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6197</guid>
		<description><![CDATA[Hi Joe, 
Wow, as a practical suggestion, &quot;The boy gift/girl gift&quot; rules reduce the average number of picks for five couples from 36.8 to 18.7!
That is a suggestion that would work for my family.

Can&#039;t wait for the article. Cheers.]]></description>
		<content:encoded><![CDATA[<p>Hi Joe,<br />
Wow, as a practical suggestion, &#8220;The boy gift/girl gift&#8221; rules reduce the average number of picks for five couples from 36.8 to 18.7!<br />
That is a suggestion that would work for my family.</p>
<p>Can&#8217;t wait for the article. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Celko</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6196</link>
		<dc:creator>Joe Celko</dc:creator>
		<pubDate>Tue, 25 Oct 2011 05:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6196</guid>
		<description><![CDATA[I just did an article on Permutations in SQL. It is not published yet. 

Think about this approach; a couple gets a prime integer id, (n) and the husband is assigned (+n) and the wife is (-n). Thus a gift pair that totals to zero is illegal. The toal of a permutation should also be zero. 

It also makes the &quot;boy gift/girl gift&quot; rules easier, if you play with them (each gender is required to buy gifts for that gender or the other one).]]></description>
		<content:encoded><![CDATA[<p>I just did an article on Permutations in SQL. It is not published yet. </p>
<p>Think about this approach; a couple gets a prime integer id, (n) and the husband is assigned (+n) and the wife is (-n). Thus a gift pair that totals to zero is illegal. The toal of a permutation should also be zero. </p>
<p>It also makes the &#8220;boy gift/girl gift&#8221; rules easier, if you play with them (each gender is required to buy gifts for that gender or the other one).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael J. Swart</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6195</link>
		<dc:creator>Michael J. Swart</dc:creator>
		<pubDate>Mon, 24 Oct 2011 20:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6195</guid>
		<description><![CDATA[I hear you Bob. It can be pretty rough if #12 went out for a smoke with #19 and people insist on waiting for them.
And then you open a gift that&#039;s a paperback, but it turns out to be Dan Brown, and nobody will steal it from you.
Have some more egg nog :-) Cheers.]]></description>
		<content:encoded><![CDATA[<p>I hear you Bob. It can be pretty rough if #12 went out for a smoke with #19 and people insist on waiting for them.<br />
And then you open a gift that&#8217;s a paperback, but it turns out to be Dan Brown, and nobody will steal it from you.<br />
Have some more egg nog <img src='http://michaeljswart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6194</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6194</guid>
		<description><![CDATA[Our family does a yankee swap rather than Secret Santa. The only problem with that from my point of view is that the process takes forever with more than 5 people involved. 
&quot;who&#039;s got 15, you&#039;re next! 15? 15?&quot; 
&quot;Oh! that&#039;s mine, sorry. Let&#039;s see, which one [of the 5 remaining packages] will I pick ... this one? Nah ... hmmmmm&quot; 
&quot;Pick one!!&quot;
By this time, the beer&#039;s all gone, people are getting cranky and wanting to go home ... you get the picture. :-)
Plus there&#039;s the fun of getting the crappy gift or worse, your own. :-)]]></description>
		<content:encoded><![CDATA[<p>Our family does a yankee swap rather than Secret Santa. The only problem with that from my point of view is that the process takes forever with more than 5 people involved.<br />
&#8220;who&#8217;s got 15, you&#8217;re next! 15? 15?&#8221;<br />
&#8220;Oh! that&#8217;s mine, sorry. Let&#8217;s see, which one [of the 5 remaining packages] will I pick &#8230; this one? Nah &#8230; hmmmmm&#8221;<br />
&#8220;Pick one!!&#8221;<br />
By this time, the beer&#8217;s all gone, people are getting cranky and wanting to go home &#8230; you get the picture. <img src='http://michaeljswart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Plus there&#8217;s the fun of getting the crappy gift or worse, your own. <img src='http://michaeljswart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael J. Swart</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6185</link>
		<dc:creator>Michael J. Swart</dc:creator>
		<pubDate>Wed, 19 Oct 2011 20:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6185</guid>
		<description><![CDATA[@Claire, Good job! I think that there is hope for a method like that. That method has a much better chance of working than signing up at Elfster.com. Maybe I&#039;ll see if my family will be up for that.]]></description>
		<content:encoded><![CDATA[<p>@Claire, Good job! I think that there is hope for a method like that. That method has a much better chance of working than signing up at Elfster.com. Maybe I&#8217;ll see if my family will be up for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cressa</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6184</link>
		<dc:creator>Cressa</dc:creator>
		<pubDate>Wed, 19 Oct 2011 20:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6184</guid>
		<description><![CDATA[Awesome!  My family has this problem too.  :)]]></description>
		<content:encoded><![CDATA[<p>Awesome!  My family has this problem too.  <img src='http://michaeljswart.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claire</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6183</link>
		<dc:creator>Claire</dc:creator>
		<pubDate>Wed, 19 Oct 2011 19:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6183</guid>
		<description><![CDATA[As an anagram nut, I&#039;m preferential to joriki&#039;s answer. As a practical solution, I&#039;d say: &lt;ol&gt;
	&lt;li&gt;have a neutral 3rd party assign each participant a color. &lt;/li&gt;
	&lt;li&gt;each participant will submit a slip in assigned color with his/her name on it to the neutral party, or palm it into a bag, or make everyone look away while he/she puts it into a bag&lt;/li&gt;
	&lt;li&gt;Given bag method, once all slips are entered, dump contents onto a table. &lt;/li&gt;
	&lt;li&gt;Have everyone pick. Of course, there is some chance the last man standing will be left with his own color if you have an odd number.&lt;/li&gt;
&lt;/ol&gt;]]></description>
		<content:encoded><![CDATA[<p>As an anagram nut, I&#8217;m preferential to joriki&#8217;s answer. As a practical solution, I&#8217;d say:
<ol>
<li>have a neutral 3rd party assign each participant a color. </li>
<li>each participant will submit a slip in assigned color with his/her name on it to the neutral party, or palm it into a bag, or make everyone look away while he/she puts it into a bag</li>
<li>Given bag method, once all slips are entered, dump contents onto a table. </li>
<li>Have everyone pick. Of course, there is some chance the last man standing will be left with his own color if you have an odd number.</li>
</ol>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave S</title>
		<link>http://michaeljswart.com/2011/10/secret-santa-as-a-puzzle/comment-page-1/#comment-6181</link>
		<dc:creator>Dave S</dc:creator>
		<pubDate>Wed, 19 Oct 2011 17:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=2179#comment-6181</guid>
		<description><![CDATA[Really fun - but as I recall - It was mostly YOU giving only ME a hard time for picking my name over and over again.]]></description>
		<content:encoded><![CDATA[<p>Really fun &#8211; but as I recall &#8211; It was mostly YOU giving only ME a hard time for picking my name over and over again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 298/300 objects using disk: basic

 Served from: michaeljswart.com @ 2013-05-25 05:14:50 by W3 Total Cache -->