
<?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 for niche computing science</title>
	<atom:link href="http://www.iis.sinica.edu.tw/~scm/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iis.sinica.edu.tw/~scm</link>
	<description>Research Blog of 穆信成 Shin-Cheng Mu</description>
	<lastBuildDate>Sat, 27 Feb 2010 17:09:31 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on A Survey of Binary Search by Shin</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2010/a-survey-of-binary-search/comment-page-1/#comment-6793</link>
		<dc:creator>Shin</dc:creator>
		<pubDate>Sat, 27 Feb 2010 17:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=278#comment-6793</guid>
		<description>You are right. I wasn&#039;t being clear: the &lt;code&gt;&gt;&gt;&gt;&lt;/code&gt; operator is available only in Java, and the last line (&lt;code&gt;m = ((unsigned int)l + (unsigned int)r)) &gt;&gt; 1;&lt;/code&gt;) is for C/C++. I&#039;ve added some comments to clarify that. Thanks!</description>
		<content:encoded><![CDATA[<p>You are right. I wasn&#8217;t being clear: the <code>>>></code> operator is available only in Java, and the last line (<code>m = ((unsigned int)l + (unsigned int)r)) >> 1;</code>) is for C/C++. I&#8217;ve added some comments to clarify that. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Survey of Binary Search by Michael</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2010/a-survey-of-binary-search/comment-page-1/#comment-6792</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 27 Feb 2010 16:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=278#comment-6792</guid>
		<description>Java does not have unsigned types.  Joshua Bloch&#039;s proposed alternatives in Java for avoiding overflow of the middle value are either &lt;code&gt; int mid = low + ((high - low) / 2);&lt;/code&gt; or &lt;code&gt;int mid = (low + high) &gt;&gt;&gt; 1;&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Java does not have unsigned types.  Joshua Bloch&#8217;s proposed alternatives in Java for avoiding overflow of the middle value are either <code> int mid = low + ((high - low) / 2);</code> or <code>int mid = (low + high) &gt;&gt;&gt; 1;</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Survey of Binary Search by Shin</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2010/a-survey-of-binary-search/comment-page-1/#comment-6791</link>
		<dc:creator>Shin</dc:creator>
		<pubDate>Sat, 27 Feb 2010 13:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=278#comment-6791</guid>
		<description>Thanks! I&#039;ve got to be careful next time. :)</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve got to be careful next time. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Survey of Binary Search by Dirk Gerrits</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2010/a-survey-of-binary-search/comment-page-1/#comment-6790</link>
		<dc:creator>Dirk Gerrits</dc:creator>
		<pubDate>Sat, 27 Feb 2010 08:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=278#comment-6790</guid>
		<description>The last name of &quot;Netty van Gasteren&quot; is &quot;Van Gasteren&quot;, not &quot;Gasteren&quot;.</description>
		<content:encoded><![CDATA[<p>The last name of &#8220;Netty van Gasteren&#8221; is &#8220;Van Gasteren&#8221;, not &#8220;Gasteren&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Determining List Steepness in a Homomorphism by Mark Essel</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2009/determining-list-steepness-in-a-homomorphism/comment-page-1/#comment-6687</link>
		<dc:creator>Mark Essel</dc:creator>
		<pubDate>Tue, 14 Jul 2009 18:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=275#comment-6687</guid>
		<description>Just had time to scan the top few paragraphs, I&#039;m interested enough to come back and do some homework. In a world with no free time, we still find time to have some fun :D</description>
		<content:encoded><![CDATA[<p>Just had time to scan the top few paragraphs, I&#8217;m interested enough to come back and do some homework. In a world with no free time, we still find time to have some fun :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Determining List Steepness in a Homomorphism by cmcq</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2009/determining-list-steepness-in-a-homomorphism/comment-page-1/#comment-6683</link>
		<dc:creator>cmcq</dc:creator>
		<pubDate>Sat, 11 Jul 2009 09:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=275#comment-6683</guid>
		<description>1) No, because s&gt;=(2^n-1)c where n is the list length. For negative c this puts a lower bound on n. For example [-8,-4,-2,-1] has s=-15, c=-1, so -15&gt;=(2^n-1)*(-1), which gives n&gt;=4.

A technique based on fixed-length inverses is very restricted: they can&#039;t compute length!

2) You don&#039;t need rationals ever: for sumcaps of two element lists you can use g(s,c)=[s-c,c]. Though personally I would not hesitate to extend the ring of numbers if it gave a simpler proof! Isn&#039;t that what proof irrelevance is all about?</description>
		<content:encoded><![CDATA[<p>1) No, because s&gt;=(2^n-1)c where n is the list length. For negative c this puts a lower bound on n. For example [-8,-4,-2,-1] has s=-15, c=-1, so -15&gt;=(2^n-1)*(-1), which gives n&gt;=4.</p>
<p>A technique based on fixed-length inverses is very restricted: they can&#8217;t compute length!</p>
<p>2) You don&#8217;t need rationals ever: for sumcaps of two element lists you can use g(s,c)=[s-c,c]. Though personally I would not hesitate to extend the ring of numbers if it gave a simpler proof! Isn&#8217;t that what proof irrelevance is all about?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Determining List Steepness in a Homomorphism by Shin</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2009/determining-list-steepness-in-a-homomorphism/comment-page-1/#comment-6682</link>
		<dc:creator>Shin</dc:creator>
		<pubDate>Sat, 11 Jul 2009 04:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=275#comment-6682</guid>
		<description>Thanks for the encouragement! I&#039;ve been relying on WordPress to generate the RSS (was &lt;a href=&quot;http://www.iis.sinica.edu.tw/~scm/feed/&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; the link you tried?). What error message did you see? I&#039;ll check whether other WordPress users had the same problem.</description>
		<content:encoded><![CDATA[<p>Thanks for the encouragement! I&#8217;ve been relying on WordPress to generate the RSS (was <a href="http://www.iis.sinica.edu.tw/~scm/feed/" rel="nofollow">this</a> the link you tried?). What error message did you see? I&#8217;ll check whether other WordPress users had the same problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Determining List Steepness in a Homomorphism by Shin</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2009/determining-list-steepness-in-a-homomorphism/comment-page-1/#comment-6681</link>
		<dc:creator>Shin</dc:creator>
		<pubDate>Sat, 11 Jul 2009 04:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=275#comment-6681</guid>
		<description>Thanks for the interesting comments, cmcq. Indeed it is harder than it looks. 

The first guess of mine (and some students here) was: &lt;code&gt;g (s, c) = [(s+c)/2, (s-c)/2]&lt;/code&gt;. Not only was that wrong (it fails for, e.g, &lt;code&gt;(8,8)&lt;/code&gt;, output of &lt;code&gt;sumcap [8]&lt;/code&gt;), but also forces us to move from integer to rational (that was why I was vague about the type of &quot;numbers&quot; in the post).

I&#039;ve been thinking: 1) is it possible to find an inverse that produces a constant-length list? 2) Can we stay within &lt;code&gt;Int&lt;/code&gt;, if the input is &lt;code&gt;Int&lt;/code&gt;? Goal 1) is essential for deriving &lt;code&gt;⊚&lt;/code&gt;, and 2) is desirable because the &lt;code&gt;⊚&lt;/code&gt; that eventually worked does operate on integers only.

You seem to have shown that goal 1) is hard to achieve. Well, perhaps the construction of list homomorphism by inverses is just not as widely applicable as we&#039;ve expected.</description>
		<content:encoded><![CDATA[<p>Thanks for the interesting comments, cmcq. Indeed it is harder than it looks. </p>
<p>The first guess of mine (and some students here) was: <code>g (s, c) = [(s+c)/2, (s-c)/2]</code>. Not only was that wrong (it fails for, e.g, <code>(8,8)</code>, output of <code>sumcap [8]</code>), but also forces us to move from integer to rational (that was why I was vague about the type of &#8220;numbers&#8221; in the post).</p>
<p>I&#8217;ve been thinking: 1) is it possible to find an inverse that produces a constant-length list? 2) Can we stay within <code>Int</code>, if the input is <code>Int</code>? Goal 1) is essential for deriving <code>⊚</code>, and 2) is desirable because the <code>⊚</code> that eventually worked does operate on integers only.</p>
<p>You seem to have shown that goal 1) is hard to achieve. Well, perhaps the construction of list homomorphism by inverses is just not as widely applicable as we&#8217;ve expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Determining List Steepness in a Homomorphism by Matías Giovannini</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2009/determining-list-steepness-in-a-homomorphism/comment-page-1/#comment-6680</link>
		<dc:creator>Matías Giovannini</dc:creator>
		<pubDate>Sat, 11 Jul 2009 00:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=275#comment-6680</guid>
		<description>Great post! Shin-Cheng, your RSS feed is broken. I&#039;d love to subscribe, but unfortunately the XML parser in Firefox 3.0.x complains.</description>
		<content:encoded><![CDATA[<p>Great post! Shin-Cheng, your RSS feed is broken. I&#8217;d love to subscribe, but unfortunately the XML parser in Firefox 3.0.x complains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Determining List Steepness in a Homomorphism by cmcq</title>
		<link>http://www.iis.sinica.edu.tw/~scm/2009/determining-list-steepness-in-a-homomorphism/comment-page-1/#comment-6679</link>
		<dc:creator>cmcq</dc:creator>
		<pubDate>Fri, 10 Jul 2009 11:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.iis.sinica.edu.tw/~scm/?p=275#comment-6679</guid>
		<description>Wordpress ate my definition of g:
For s&lt;3c&lt;0, pick n such that s&lt;=(2^n-1)c and use g(s,c)=[s+2^(n-1)c, 2^(n-2)c, ..., 2c, c].</description>
		<content:encoded><![CDATA[<p>Wordpress ate my definition of g:<br />
For s&lt;3c&lt;0, pick n such that s&lt;=(2^n-1)c and use g(s,c)=[s+2^(n-1)c, 2^(n-2)c, ..., 2c, c].</p>
]]></content:encoded>
	</item>
</channel>
</rss>