<?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"
	>
<channel>
	<title>Comments on: Swapping the values of two variables</title>
	<atom:link href="http://www.joaoff.com/2007/07/11/swapping-the-values-of-two-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joaoff.com/2007/07/11/swapping-the-values-of-two-variables/</link>
	<description>Programming, Algorithms, and Mathematics</description>
	<pubDate>Tue, 06 Jan 2009 15:34:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: jff</title>
		<link>http://www.joaoff.com/2007/07/11/swapping-the-values-of-two-variables/#comment-52</link>
		<dc:creator>jff</dc:creator>
		<pubDate>Wed, 11 Jul 2007 21:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.joaoferreira.org/2007/07/11/swapping-the-values-of-two-variables/#comment-52</guid>
		<description>sdv: truth tables correspond to case analysis, and case analysis is usually used when we can't recognize the structure of the problem. Therefore, it should be avoided (in fact, its avoidance is one of the basic rules of the effective problem solver).

Note that using truth tables you can prove the validity of a logical formula, but if that formula contains N variables, you have to consider 2^N different cases. It is much more simple to use algebraic properties of the logical operations.</description>
		<content:encoded><![CDATA[<p>sdv: truth tables correspond to case analysis, and case analysis is usually used when we can&#8217;t recognize the structure of the problem. Therefore, it should be avoided (in fact, its avoidance is one of the basic rules of the effective problem solver).</p>
<p>Note that using truth tables you can prove the validity of a logical formula, but if that formula contains N variables, you have to consider 2^N different cases. It is much more simple to use algebraic properties of the logical operations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdv</title>
		<link>http://www.joaoff.com/2007/07/11/swapping-the-values-of-two-variables/#comment-51</link>
		<dc:creator>sdv</dc:creator>
		<pubDate>Wed, 11 Jul 2007 20:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.joaoferreira.org/2007/07/11/swapping-the-values-of-two-variables/#comment-51</guid>
		<description>I'm impressed! If you find any example instantiation, be it nice or not, let us know.

P.S.
from programming.reddit.com:
"The thing is that, usually, the bitwise trick is presented using truth tables (ergh!)."
So, the truth tables push your buttons :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m impressed! If you find any example instantiation, be it nice or not, let us know.</p>
<p>P.S.<br />
from programming.reddit.com:<br />
&#8220;The thing is that, usually, the bitwise trick is presented using truth tables (ergh!).&#8221;<br />
So, the truth tables push your buttons <img src='http://www.joaoff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
