<?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: Generating all combinations of n elements taken t at a time</title>
	<atom:link href="http://www.riondabsd.net/2012/03/08/generating-all-combinations-of-n-elements-taken-t-at-a-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riondabsd.net/2012/03/08/generating-all-combinations-of-n-elements-taken-t-at-a-time/</link>
	<description>A hard working wasp in the big garden of the Internet</description>
	<lastBuildDate>Fri, 08 Mar 2013 18:51:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Matteo</title>
		<link>http://www.riondabsd.net/2012/03/08/generating-all-combinations-of-n-elements-taken-t-at-a-time/comment-page-1/#comment-69514</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Fri, 09 Mar 2012 23:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.riondabsd.net/?p=2930#comment-69514</guid>
		<description><![CDATA[Sure. You call it as &quot;./chaseseqcombgen n t&quot; and it will print to stdout the bitstrings (i.e. strings of zeroes and ones) corresponding to the combinations of n elements taken t at a time. Each printed line corresponds to a combination. Each combination is a string of n characters, of which t are ones, and n-t are zeroes. A &quot;1&quot; in position i (0 less or equal than i less or equal than n-1) means that element &quot;i&quot; (in some predefined order of the elements) appears in the combination. A &quot;0&quot; means that the element does not.

I personally use it as a key-generating step in a Hadoop MapReduce algorithm. I need to create all combinations of n items and associate a unique key to each combination. This does the job of creating the unique key and at the same time telling me exactly which items belong to the combination.

I believe it can be useful if you modify the code so that, instead of printing the combination bitstring, you do something with the combination, e.g., it&#039;s a good place to actually build the combination. ]]></description>
		<content:encoded><![CDATA[<p>Sure. You call it as &#8220;./chaseseqcombgen n t&#8221; and it will print to stdout the bitstrings (i.e. strings of zeroes and ones) corresponding to the combinations of n elements taken t at a time. Each printed line corresponds to a combination. Each combination is a string of n characters, of which t are ones, and n-t are zeroes. A &#8220;1&#8243; in position i (0 less or equal than i less or equal than n-1) means that element &#8220;i&#8221; (in some predefined order of the elements) appears in the combination. A &#8220;0&#8243; means that the element does not.</p>
<p>I personally use it as a key-generating step in a Hadoop MapReduce algorithm. I need to create all combinations of n items and associate a unique key to each combination. This does the job of creating the unique key and at the same time telling me exactly which items belong to the combination.</p>
<p>I believe it can be useful if you modify the code so that, instead of printing the combination bitstring, you do something with the combination, e.g., it&#8217;s a good place to actually build the combination. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Reid</title>
		<link>http://www.riondabsd.net/2012/03/08/generating-all-combinations-of-n-elements-taken-t-at-a-time/comment-page-1/#comment-69510</link>
		<dc:creator>Marcus Reid</dc:creator>
		<pubDate>Fri, 09 Mar 2012 21:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.riondabsd.net/?p=2930#comment-69510</guid>
		<description><![CDATA[Can you give an example of its use?]]></description>
		<content:encoded><![CDATA[<p>Can you give an example of its use?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
