<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ebeworld's Weblog</title>
	<atom:link href="http://ebeworld.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebeworld.wordpress.com</link>
	<description>Trying to create</description>
	<lastBuildDate>Tue, 19 Apr 2011 20:48:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ebeworld.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ebeworld's Weblog</title>
		<link>http://ebeworld.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ebeworld.wordpress.com/osd.xml" title="Ebeworld&#039;s Weblog" />
	<atom:link rel='hub' href='http://ebeworld.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Precompiled header files</title>
		<link>http://ebeworld.wordpress.com/2011/04/19/precompiled-header-files/</link>
		<comments>http://ebeworld.wordpress.com/2011/04/19/precompiled-header-files/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 20:48:13 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[CPP]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=394</guid>
		<description><![CDATA[There are .pch files are i always wonder what is that. Today i found nice article explains it on wikipedia. Also the article little bit explains about forward declaration, which prevents from recompiling.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=394&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are .pch files are i always wonder what is that. Today i found <a href="http://en.wikipedia.org/wiki/Precompiled_header">nice article </a>explains it on wikipedia.</p>
<p>Also the article little bit explains about forward declaration, which prevents from recompiling.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/394/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=394&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/04/19/precompiled-header-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>Subset sum problems</title>
		<link>http://ebeworld.wordpress.com/2011/04/07/subset-sum-problems/</link>
		<comments>http://ebeworld.wordpress.com/2011/04/07/subset-sum-problems/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 06:18:18 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=321</guid>
		<description><![CDATA[One of the classic DP problem stated as &#8220;Given a set of n numbers ai sum up to M, and any K ≤ M, whether there is a subset of the numbers such that they sum up to (hit) K? We assume n might be as big as 1000, but M or K is not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=321&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the classic DP problem stated as &#8220;Given a set of n numbers ai sum up to M, and any K ≤ M, whether there is a subset of the numbers such that they sum up to (hit) K? We assume n might be as big as 1000, but M or K is not too big.</p>
<p>Solution is easy, as follows:<br />
<pre class="brush: cpp;">
#include&lt;iostream&gt;
#include&lt;vector&gt;
#include&lt;algorithm&gt;
using namespace std;

int main(int argc, char** argv){
	int a[]={2,6,15,21,34};  //simple test array
	int n=sizeof(a)/sizeof(int);

	int m=0;
	for_each(a,a+n,[&amp;m](int x){ m+=x;});

	int* M=new int[m+1];
	for(int i=0;i&lt;=m;i++){
		M[i]=0;
	}
	M[0]=1;

	for(int i=0;i&lt;n;i++){
		for(int j=m;j&gt;=a[i];j--){
			M[j]|=M[j-a[i]];
		}
	}
	int k=55; //simple test num

	cout&lt;&lt;&quot;Sum to &quot;&lt;&lt;k&lt;&lt;&quot; is &quot;&lt;&lt;(M[k]?&quot; possible&quot;:&quot; not possible&quot;)&lt;&lt;endl;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/321/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=321&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/04/07/subset-sum-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between # and ## in macros</title>
		<link>http://ebeworld.wordpress.com/2011/04/02/317/</link>
		<comments>http://ebeworld.wordpress.com/2011/04/02/317/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 19:10:12 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CPP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=317</guid>
		<description><![CDATA[When x(1) is invoked it becomes x1, since ## appends, while # gives arguments.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=317&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: cpp;">
#define x(i) x##i
</pre></p>
<p>When x(1) is invoked it becomes x1, since ## appends, while # gives arguments.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/317/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=317&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/04/02/317/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>Header files</title>
		<link>http://ebeworld.wordpress.com/2011/03/29/header-files/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/29/header-files/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 02:24:14 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CPP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=314</guid>
		<description><![CDATA[1. It is best to include a.h file in a.cpp at the top to insure order of header files are irrelevant, which is very good design. There could be forward declarations. A header file should be included only when a forward declaration would not do the job. a.The size of the class&#8217; objects is not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=314&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. It is best to include a.h file in a.cpp at the top to insure order of header files are irrelevant, which is very good design. There could be forward declarations.</p>
<p>A header file should be included only when a forward declaration would not do the job.<br />
a.The size of the class&#8217; objects is not needed.<br />
b.The names or types of any of the class&#8217; members are not needed.<br />
c.The prototypes to or names of any of the class&#8217; member functions are not needed<br />
The header file should be so designed that the order of header file inclusion is not important.<br />
The header file inclusion mechanism should be tolerant  to duplicate header file inclusions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=314&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/29/header-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>An easy problem</title>
		<link>http://ebeworld.wordpress.com/2011/03/29/an-easy-problem/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/29/an-easy-problem/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 01:52:23 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=312</guid>
		<description><![CDATA[My little brother just asked me about finding number of ways to divide numbers from 1 to N into two sets where the sums are equal. N&#60;37. It feels like simple DP problem.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=312&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My little brother just asked me about finding number of ways to divide numbers from 1 to N into two sets where the sums are equal. N&lt;37. It feels like simple DP problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/312/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=312&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/29/an-easy-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>Combinable containers</title>
		<link>http://ebeworld.wordpress.com/2011/03/23/combinable-containers/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/23/combinable-containers/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 20:54:35 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CPP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=310</guid>
		<description><![CDATA[Preventing from excessive use of locks, uses combinable containers, such as following<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=310&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Preventing from excessive use of locks, uses combinable containers, such as following</p>
<p><pre class="brush: cpp;">
        vector&lt;int&gt; values(10);
	int i = 0;
	generate(values.begin(), values.end(), [&amp;]{return ++i;} );

	// 1. Calculate the sum of the elements of the vector in parallel.
	combinable&lt;int&gt; sums;
	parallel_for_each(values.begin(),values.end(), [&amp;](int n)
	{
		sums.local() += n;}
	);

	// 2. Combine/Reduce into final result
	int result = sums.combine([](int left, int right) { return left + right; });
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=310&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/23/combinable-containers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>The reason behind nullptr</title>
		<link>http://ebeworld.wordpress.com/2011/03/23/the-reason-behind-nullptr/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/23/the-reason-behind-nullptr/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 19:46:53 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CPP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=308</guid>
		<description><![CDATA[Due to template type prediction, either of the following declaration would result to deduct int version of the template and eventually cause compilation to fail. This is explained at http://channel9.msdn.com/shows/Going+Deep/Stephan-T-Lavavej-Everything-you-ever-wanted-to-know-about-nullptr/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=308&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Due to template type prediction, either of the following declaration would result to deduct int version of the template and eventually cause compilation to fail. </p>
<p><pre class="brush: cpp;">
#define NULL 0
//or sometimes
#define NULL (void *)0
</pre></p>
<p>This is explained at http://channel9.msdn.com/shows/Going+Deep/Stephan-T-Lavavej-Everything-you-ever-wanted-to-know-about-nullptr/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=308&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/23/the-reason-behind-nullptr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>parallel_for_each Example</title>
		<link>http://ebeworld.wordpress.com/2011/03/23/parallel_for_each-example/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/23/parallel_for_each-example/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 03:21:53 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CPP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=306</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=306&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: cpp;">
#include&lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;ppl.h&gt;
#include &lt;windows.h&gt;
#include &lt;vector&gt;
#include &lt;algorithm&gt;
using namespace std;
using namespace Concurrency;

__int64 GetTime(){
	return GetTickCount();
}

void makeDouble(vector&lt;int&gt; vec){
	for_each(vec.begin(),vec.end(),[&amp;](int i){
		cout&lt;&lt;2*i&lt;&lt;&quot; &quot;;
	});
	cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl;
}

void parallel_makeDouble(vector&lt;int&gt; vec){
	parallel_for_each(vec.begin(),vec.end(),[=](int i){
		cout&lt;&lt;2*i&lt;&lt;&quot; &quot;;
	});
	cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl;
}

int main(int argc, char** argv){
	vector&lt;int&gt; v(200);
	int n=0;
	generate(v.begin(),v.end(),[&amp;](){ return n++;});

	__int64 begin=GetTime();
	makeDouble(v);
	__int64 end=GetTime();
	cout&lt;&lt;&quot;Seq:&quot;&lt;&lt;end-begin&lt;&lt;endl;

	begin=GetTime();
	parallel_makeDouble(v);
	end=GetTime();
	cout&lt;&lt;&quot;Parallel:&quot;&lt;&lt;end-begin&lt;&lt;endl;
	getch();
	return 0;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=306&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/23/parallel_for_each-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>parallel_for example</title>
		<link>http://ebeworld.wordpress.com/2011/03/23/parallel_for-example/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/23/parallel_for-example/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 02:13:51 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CPP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=304</guid>
		<description><![CDATA[Output: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 5 6 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=304&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: cpp;">
#include&lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;ppl.h&gt;
using namespace std;
using namespace Concurrency;

void makeDouble(int n){
	for(int i=0;i&lt;n;i++){
		cout&lt;&lt;2*i&lt;&lt;&quot; &quot;;
	}
	cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl;
}

void parallel_makeDouble(int n){
	parallel_for(0,n,[](int i){
		cout&lt;&lt;2*i&lt;&lt;&quot; &quot;;
	});

}

int main(int argc, char** argv){
	makeDouble(100);
	parallel_makeDouble(100);
	getch();
	return 0;
}
</pre></p>
<p>Output:</p>
<p>0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 5<br />
6 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106<br />
 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146<br />
 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186<br />
 188 190 192 194 196 198</p>
<p>50 0 150 100 52 54 56 58 60 176 178 180 182 184 186 188 190 192 194 196 198 62 1<br />
02 104 152 154 156 164 166 168 1702 64 66 68 70 72  172 174 158 106 108 110 112<br />
114 116 118 120 162 4 122 124 126 128 130 132 134 136 138 140 28 74 76 78 80 82<br />
84 86 88 90 92 94 96 98 30 32 34 36 38 40 42 44 46 48 142 6 144 160 146 8 10 12<br />
18 20 148 22 14 24 16 26</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/304/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=304&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/23/parallel_for-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
		<item>
		<title>Secret History of SV</title>
		<link>http://ebeworld.wordpress.com/2011/03/23/secret-history-of-sv/</link>
		<comments>http://ebeworld.wordpress.com/2011/03/23/secret-history-of-sv/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 01:41:39 +0000</pubDate>
		<dc:creator>ebeworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ebeworld.wordpress.com/?p=302</guid>
		<description><![CDATA[On google tech talk i saw this talk and it is quite entertaining. http://www.youtube.com/user/GoogleTechTalks#p/u/6/hFSPHfZQpIQ<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=302&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On google tech talk i saw this talk and it is quite entertaining.</p>
<p>http://www.youtube.com/user/GoogleTechTalks#p/u/6/hFSPHfZQpIQ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ebeworld.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ebeworld.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ebeworld.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ebeworld.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ebeworld.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ebeworld.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ebeworld.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ebeworld.wordpress.com/302/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ebeworld.wordpress.com&amp;blog=5157598&amp;post=302&amp;subd=ebeworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ebeworld.wordpress.com/2011/03/23/secret-history-of-sv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5ebaca1d1c2b06cc18b8d977bb1c37d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ebeworld</media:title>
		</media:content>
	</item>
	</channel>
</rss>
