<?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>Henry Yuen&#039;s Blog</title>
	<atom:link href="http://cipher3d.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cipher3d.wordpress.com</link>
	<description>Slowly discovering the universe</description>
	<lastBuildDate>Thu, 19 Jan 2012 01:47:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cipher3d.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7254b3ac2f66e3a47df48de1722a6806?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Henry Yuen&#039;s Blog</title>
		<link>http://cipher3d.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cipher3d.wordpress.com/osd.xml" title="Henry Yuen&#039;s Blog" />
	<atom:link rel='hub' href='http://cipher3d.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Metamorphoses</title>
		<link>http://cipher3d.wordpress.com/2012/01/19/metamorphoses/</link>
		<comments>http://cipher3d.wordpress.com/2012/01/19/metamorphoses/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 00:06:54 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=508</guid>
		<description><![CDATA[Back in high school I maintained a blog titled &#8220;Adventure is just bad planning.&#8221; A little ways into my time at USC I decided to start this current one, which went under various names, to demarcate a different chapter for &#8230; <a href="http://cipher3d.wordpress.com/2012/01/19/metamorphoses/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=508&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Back in high school I maintained a blog titled &#8220;Adventure is just bad planning.&#8221; A little ways into my time at USC I decided to start this current one, which went under various names, to demarcate a different chapter for myself. Well, 4 years later, I&#8217;m embarking on yet another chapter &#8211; graduate school &#8211; and I think it&#8217;s appropriate to have my blog presence begin anew.</p>
<p>For the adventures that come, I hope to share them with you at &#8220;<a href="http://hyuen.scripts.mit.edu/blog">A Smoother Pebble.</a>&#8221; Thanks for all those who read and commented on this blog!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/508/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=508&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2012/01/19/metamorphoses/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Cheap, quality Lattés</title>
		<link>http://cipher3d.wordpress.com/2011/10/16/cheap-quality-lattes/</link>
		<comments>http://cipher3d.wordpress.com/2011/10/16/cheap-quality-lattes/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 19:55:18 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=497</guid>
		<description><![CDATA[I thought I would like to share a cool trick I think every regular coffee drinker should know. Coffee isn&#8217;t cheap. Gone are the days where the standard was a $1 Dunkin&#8217; Donuts cup of joe. Now, people routinely will &#8230; <a href="http://cipher3d.wordpress.com/2011/10/16/cheap-quality-lattes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=497&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I thought I would like to share a cool trick I think every regular coffee drinker should know. Coffee isn&#8217;t cheap. Gone are the days where the standard was a $1 Dunkin&#8217; Donuts cup of joe. Now, people routinely will shell out $3 or $4 for a Latté at starbucks, multiple times a day. I&#8217;m a grad student; I&#8217;m under extraordinary evolutionary pressure to adapt my coffee habit so that my meager earnings aren&#8217;t decimated. The result: the Grad Student Iced Latté:</p>
<ol>
<li>Order a double expresso (which is usually &lt; $2).</li>
<li>Ask for a cup of ice.</li>
<li>Add your favorite quantities of sugar/spice in the expresso.</li>
<li>Add liberal amounts of cream/milk to the expresso.</li>
<li>Pour the expresso into your cup of ice.</li>
<li>Iced Latté!</li>
</ol>
<div>You&#8217;ve now saved yourself $1 or $2 per drink. Enjoy!</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/497/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=497&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/10/16/cheap-quality-lattes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>A Solution to a Generalized Pepys&#8217;s Problem</title>
		<link>http://cipher3d.wordpress.com/2011/08/19/a-solution-to-a-generalized-pepyss-problem/</link>
		<comments>http://cipher3d.wordpress.com/2011/08/19/a-solution-to-a-generalized-pepyss-problem/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 06:55:59 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=486</guid>
		<description><![CDATA[Samuel Pepys, the famed English diarist, proposed the following problem to Isaac Newton, in order to gauge his chances in a wager: Which experiment is more probable? A. You roll 6 fair die and get at least 1 dice that &#8230; <a href="http://cipher3d.wordpress.com/2011/08/19/a-solution-to-a-generalized-pepyss-problem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=486&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Samuel Pepys, <a href="http://en.wikipedia.org/wiki/Samuel_Pepys">the famed English diarist</a>, proposed the following problem to Isaac Newton, in order to gauge his chances in a wager:</p>
<p><em>Which experiment is more probable?<br />
</em>A. You roll 6 fair die and get at least 1 dice that shows up as &#8220;6&#8243;;<br />
B. You roll 12 fair die and get at least 2 die that show up as &#8220;6&#8243;;<br />
C. You roll 18 fair die and get at least 3 die that show up as &#8220;6&#8243;.</p>
<p>The correct answer turns out to be experiment A. Based upon the correspondence between Newton (who provided the correct solution) and Pepys, the wagerer was not immediately convinced of the answer. When challenged, Newton attempted to give an intuitive explanation of the answer, though it is technically incorrect/incomplete (Newton probably knew this). Here it is, paraphrased from the Ye Olde Englishe version:</p>
<blockquote><p>Imagine that B and C toss their dice in groups of six. A is most favorable because it requires a 6 in only one group toss, while B and C require a 6 in each of their group tosses.</p></blockquote>
<p>Astute readers will recognize that this intuitive explanation neglects situations where C might get two 6&#8242;s in the first or third set, for example.</p>
<p>This problem has been discussed often enough that it has been titled the &#8220;<a href="http://en.wikipedia.org/wiki/Newton%E2%80%93Pepys_problem">Newton-Pepys Problem</a>&#8220;, and one is likely to find it given as an elementary probability exercise. I myself came across a more general version of Pepys problem: I win if, in 6<em>n</em> independent rolls of dice I acquire at least <em>n</em> 6&#8242;s. You win if, in 6(<em>n </em>+ 1) independent rolls of dice you acquire at least <em>n</em> + 1 6&#8242;s. Who is more likely to win?</p>
<p>When <em>n</em> = 1 or 2, we know from Newton that I am more likely to win (yay!), but what about for all <em>n</em>? The answer is of course that I still am more likely to win, but how goes the proof? It is unclear whether Newton had a general solution, as <a href="https://webspace.yale.edu/chem125/125/history99/2Pre1800/SPepysINewton/PepysStudent.htm">his letters to Pepys</a> indicate a purely numerical approach (he calculated the probabilities by hand for A, B and C). My guess is that he had an elegant solution that unfortunately could not fit in the margin of his letter.<span id="more-486"></span></p>
<p>And surprisingly, the solution to this general Pepys&#8217;s problem cannot fit within the confines of a Wikipedia entry or <a href="http://mathworld.wolfram.com/Newton-PepysProblem.html">Wolfram Mathworld page</a> either! The latter aludes to a general solution, which involves this horrifying &#8220;regularised hypergeometric function&#8221; &#8211; what the hell is that?! No, no, there has to be a better way.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=D_k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='D_k' title='D_k' class='latex' /> be the random variable that counts the occurrences of 6&#8242;s in <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='k' title='k' class='latex' /> independent dice rolls (fair die). Then we are comparing probabilities <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%5Cgeq+n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} &#92;geq n)' title='&#92;mathbb{P}(D_{6n} &#92;geq n)' class='latex' /> vs. <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n+%2B+6%7D+%5Cgeq+n%2B1%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n + 6} &#92;geq n+1)' title='&#92;mathbb{P}(D_{6n + 6} &#92;geq n+1)' class='latex' />. Thanks to independence, we can write <img src='http://s0.wp.com/latex.php?latex=D_%7B6n+%2B+6%7D+%3D+D_%7B6n%7D+%2B+D_6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='D_{6n + 6} = D_{6n} + D_6' title='D_{6n + 6} = D_{6n} + D_6' class='latex' />.</p>
<p>We can forget that the dice have six sides, and instead pretend they&#8217;re coins, where you get heads (6) with probability 1/6, and get tails (1,&#8230;, 5) with probability 5/6. Then the <img src='http://s0.wp.com/latex.php?latex=D_k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='D_k' title='D_k' class='latex' /> has a binomial distribution:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%5Cgeq+n%29+%3D+%5Csum_%7Bj%3Dn%7D%5E%7B6n%7D%7B%5Cbinom%7B6n%7D%7Bj%7D+p%5E%7Bj%7D%281-p%29%5E%7B6n-j%7D+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} &#92;geq n) = &#92;sum_{j=n}^{6n}{&#92;binom{6n}{j} p^{j}(1-p)^{6n-j} }' title='&#92;mathbb{P}(D_{6n} &#92;geq n) = &#92;sum_{j=n}^{6n}{&#92;binom{6n}{j} p^{j}(1-p)^{6n-j} }' class='latex' /><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%2B6%7D+%5Cgeq+n%2B1%29+%3D+%5Csum_%7Bj%3Dn%2B1%7D%5E%7B6n%2B6%7D%7B%5Cbinom%7B6n%2B6%7D%7Bj%7D+p%5E%7Bj%7D%281-p%29%5E%7B6n%2B6-j%7D+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n+6} &#92;geq n+1) = &#92;sum_{j=n+1}^{6n+6}{&#92;binom{6n+6}{j} p^{j}(1-p)^{6n+6-j} }' title='&#92;mathbb{P}(D_{6n+6} &#92;geq n+1) = &#92;sum_{j=n+1}^{6n+6}{&#92;binom{6n+6}{j} p^{j}(1-p)^{6n+6-j} }' class='latex' /></p>
<p>with <img src='http://s0.wp.com/latex.php?latex=p+%3D+1%2F6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p = 1/6' title='p = 1/6' class='latex' />. But treating <img src='http://s0.wp.com/latex.php?latex=D_%7B6n+%2B+6%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='D_{6n + 6}' title='D_{6n + 6}' class='latex' /> as a convolution of <img src='http://s0.wp.com/latex.php?latex=D_%7B6n%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='D_{6n}' title='D_{6n}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=D_6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='D_6' title='D_6' class='latex' />, we can instead write:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%2B6%7D+%5Cgeq+n%2B1%29+%3D+%5Csum_%7Bj%3Dn%2B1%7D%5E%7B6n%2B6%7D+%5Csum_%7By+%3D+0%7D%5E%7B6%7D+%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+j+-+y%29+%5Cmathbb%7BP%7D%28D_%7B6%7D+%3D+y%29+&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n+6} &#92;geq n+1) = &#92;sum_{j=n+1}^{6n+6} &#92;sum_{y = 0}^{6} &#92;mathbb{P}(D_{6n} = j - y) &#92;mathbb{P}(D_{6} = y) ' title='&#92;mathbb{P}(D_{6n+6} &#92;geq n+1) = &#92;sum_{j=n+1}^{6n+6} &#92;sum_{y = 0}^{6} &#92;mathbb{P}(D_{6n} = j - y) &#92;mathbb{P}(D_{6} = y) ' class='latex' /></p>
<p>By implementing the change of variables <img src='http://s0.wp.com/latex.php?latex=z+%3D+j+-+y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='z = j - y' title='z = j - y' class='latex' />, we have</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%2B6%7D+%5Cgeq+n%2B1%29+%3D+%5Csum_%7Bz%3Dn%2B1%7D%5E%7B6n%7D%7B%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+z%29+%7D+%2B+%5CLambda&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n+6} &#92;geq n+1) = &#92;sum_{z=n+1}^{6n}{&#92;mathbb{P}(D_{6n} = z) } + &#92;Lambda' title='&#92;mathbb{P}(D_{6n+6} &#92;geq n+1) = &#92;sum_{z=n+1}^{6n}{&#92;mathbb{P}(D_{6n} = z) } + &#92;Lambda' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=%5CLambda+%3D+%5Csum_%7Bz%3Dn-5%7D%5E%7Bn%7D%7B%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+z%29+%5Csum_%7By%3Dn-z%2B1%7D%5E%7B6%7D+%7B%5Cmathbb%7BP%7D%28D_6+%3D+y%29+%7D%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;Lambda = &#92;sum_{z=n-5}^{n}{&#92;mathbb{P}(D_{6n} = z) &#92;sum_{y=n-z+1}^{6} {&#92;mathbb{P}(D_6 = y) }}' title='&#92;Lambda = &#92;sum_{z=n-5}^{n}{&#92;mathbb{P}(D_{6n} = z) &#92;sum_{y=n-z+1}^{6} {&#92;mathbb{P}(D_6 = y) }}' class='latex' />. That is the first trick.</p>
<p>Note that <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%5Cgeq+n%29+%3D+%5Csum_%7Bz%3Dn%7D%5E%7B6n%7D+%7B%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+z%29+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} &#92;geq n) = &#92;sum_{z=n}^{6n} {&#92;mathbb{P}(D_{6n} = z) }' title='&#92;mathbb{P}(D_{6n} &#92;geq n) = &#92;sum_{z=n}^{6n} {&#92;mathbb{P}(D_{6n} = z) }' class='latex' />, so in order to compare  <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%5Cgeq+n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} &#92;geq n)' title='&#92;mathbb{P}(D_{6n} &#92;geq n)' class='latex' /> vs. <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n+%2B+6%7D+%5Cgeq+n%2B1%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n + 6} &#92;geq n+1)' title='&#92;mathbb{P}(D_{6n + 6} &#92;geq n+1)' class='latex' /> we can compare <img src='http://s0.wp.com/latex.php?latex=%5CLambda&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;Lambda' title='&#92;Lambda' class='latex' /> against <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} = n)' title='&#92;mathbb{P}(D_{6n} = n)' class='latex' />.</p>
<p>Assuming that <img src='http://s0.wp.com/latex.php?latex=n+%3E+6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n &gt; 6' title='n &gt; 6' class='latex' /> (we&#8217;ll leave cases <img src='http://s0.wp.com/latex.php?latex=n+%3D+1%2C%5Cldots%2C6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n = 1,&#92;ldots,6' title='n = 1,&#92;ldots,6' class='latex' /> to the reader), <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+n+-+h%29+%3C+%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} = n - h) &lt; &#92;mathbb{P}(D_{6n} = n)' title='&#92;mathbb{P}(D_{6n} = n - h) &lt; &#92;mathbb{P}(D_{6n} = n)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=h+%3D+1%2C%5Cldots%2C5&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='h = 1,&#92;ldots,5' title='h = 1,&#92;ldots,5' class='latex' />.  Here comes the second trick. Note that <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bz%3Dn-5%7D%5E%7Bn%7D%7B%5Csum_%7By%3Dn-z%2B1%7D%5E%7B6%7D+%7B%5Cmathbb%7BP%7D%28D_6+%3D+y%29+%7D%7D+%3D+%5Csum_%7Bj%3D0%7D%5E%7B6%7D%7B%5Cbinom%7B6%7D%7Bj%7D+jp%5Ej%281-p%29%5E%7B6+-+j%7D%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sum_{z=n-5}^{n}{&#92;sum_{y=n-z+1}^{6} {&#92;mathbb{P}(D_6 = y) }} = &#92;sum_{j=0}^{6}{&#92;binom{6}{j} jp^j(1-p)^{6 - j}}' title='&#92;sum_{z=n-5}^{n}{&#92;sum_{y=n-z+1}^{6} {&#92;mathbb{P}(D_6 = y) }} = &#92;sum_{j=0}^{6}{&#92;binom{6}{j} jp^j(1-p)^{6 - j}}' class='latex' /> <img src='http://s0.wp.com/latex.php?latex=%3D+6p+%3D+1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='= 6p = 1' title='= 6p = 1' class='latex' />, which follows from <a href="http://cipher3d.wordpress.com/2011/04/13/another-identity-for-posterity/#comment-105">this identity</a>. Thus, we know that in the <img src='http://s0.wp.com/latex.php?latex=%5CLambda&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;Lambda' title='&#92;Lambda' class='latex' /> sum, the <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+z%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} = z)' title='&#92;mathbb{P}(D_{6n} = z)' class='latex' /> are being weighted by numbers that sum up to 1, and so the average must be smaller than the largest probability, which is <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} = n)' title='&#92;mathbb{P}(D_{6n} = n)' class='latex' />. Thus, <img src='http://s0.wp.com/latex.php?latex=%5CLambda+%3C+%5Cmathbb%7BP%7D%28D_%7B6n%7D+%3D+n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;Lambda &lt; &#92;mathbb{P}(D_{6n} = n)' title='&#92;Lambda &lt; &#92;mathbb{P}(D_{6n} = n)' class='latex' />, and so <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BP%7D%28D_%7B6n%7D+%5Cgeq+n%29+%3E+%5Cmathbb%7BP%7D%28D_%7B6n+%2B+6%7D+%5Cgeq+n%2B1%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{P}(D_{6n} &#92;geq n) &gt; &#92;mathbb{P}(D_{6n + 6} &#92;geq n+1)' title='&#92;mathbb{P}(D_{6n} &#92;geq n) &gt; &#92;mathbb{P}(D_{6n + 6} &#92;geq n+1)' class='latex' />. I win!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/486/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=486&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/08/19/a-solution-to-a-generalized-pepyss-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>A New Kind of Sci- I mean, Solution.</title>
		<link>http://cipher3d.wordpress.com/2011/08/10/a-new-kind-of-sci-i-mean-solution/</link>
		<comments>http://cipher3d.wordpress.com/2011/08/10/a-new-kind-of-sci-i-mean-solution/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 00:36:42 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=473</guid>
		<description><![CDATA[In an act of egomania and narcissism that can only be matched by several Stephen Wolfram tomes on cellular automata, I present the object of my obsession over the past two weeks: A New Kind of Solution, and an Application &#8230; <a href="http://cipher3d.wordpress.com/2011/08/10/a-new-kind-of-sci-i-mean-solution/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=473&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In an act of egomania and narcissism that can only be matched by several Stephen Wolfram tomes on cellular automata, I present the object of my obsession over the past two weeks: <em><a href="http://henryyuen.net/writings/ClosedFormSolutions.pdf" target="_blank">A New Kind of Solution, and an Application to Recurrence Relations</a>.</em> In this essay (6 pages), I argue that the notion of &#8220;closed form solution&#8221; has evolved into something inherently computational in nature, and provide an illustration via the <em>computational complexity</em> of solving recurrence relations. This is from the first part of the essay:</p>
<p style="text-align:center;"><strong>The Evolution of Solution</strong></p>
<p>Throughout the history of mathematics, a central goal of its practioners has been to find simple expressions for solutions to equations. Although there is no rigorous definition of &#8220;simple expression&#8221;, mathematicians have nonetheless spent enormous amounts of effort seeking solutions to their analytical problems that satisfy their aesthetic of simplicity. This aesthetic has evolved over time. In antiquity, &#8220;simple&#8221; meant <em>rational</em>: the ancient Greeks conducted a (misguided) search for two integers <em>a</em> and <em>b</em> such (a/b)<sup>2</sup> = 2. Later, &#8220;simple&#8221; meant having an <em>algebraic expression</em>, which involve only addition, multiplication, and <em>n</em>th-roots. For centuries, mathematicians sought the elusive quintic formula, an algebraic expression for the roots of a degree 5 polynomial. One of the greatest triumphs of mathematics was Galois&#8217;s discovery that there is no such expression, that in general polynomials are too <em>complex</em> to be subject to easy solution. <span id="more-473"></span></p>
<p>More recently, &#8220;simple&#8221; has been equated with <em>closed form</em> expressions, which has a rather nebulous definition. Generally, closed form expressions are composed of so-called &#8220;elementary&#8221; operations: the usual arithmetic operations, radicals, exponentiation and logarithms (and thus trigonometric functions are included). The three-body problem is an iconic example of a system of equations resisting all attempts to find a closed form solution. The problem statement is simple: given the initial state (positions and velocities) of 3 point masses experiencing mutual gravitational attraction, determine their state at a later time. The three-body problem has notoriously consumed mathematicians of the likes of Newton, Lagrange, Euler, Hilbert, Poincare. Their efforts have led to a bountiful harvest in terms of a deeper understanding of analysis and dynamical systems, but the holy grail &#8211; the closed form solution &#8211; to the three-body problem remains out of reach. Indeed, a closed form solution is probably too much to hope for.</p>
<p>As our mathematical understanding advances, so does the reach of &#8220;simple&#8221;. Each form of simplicity, whether it meant rational, or algebraic, or closed-form, is a reflection of what mathematicians considered amenable to computation at the time. The Greeks abhorred the irrationality of <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%7B2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sqrt{2}' title='&#92;sqrt{2}' class='latex' />, because it meant that geometrical computations would fail to be <em>exact</em>. Before calculus, non-algebraic expressions for roots of polynomials was anathema to mathematicians. Without the use of high speed computers, calculating the precise trajectory of three heavenly objects seemed intractable.</p>
<p>Today, none of these problems give mathematicians headaches anymore, mostly thanks to Moore&#8217;s Law. Computers barely work up a sweat when dealing with the three-body problem; astrophysicists now routinely simulate the dynamics of entire <em>galactic clusters</em>. Nearly every area of scientific and industrial computing performs massive numerical linear algebra, which can involve finding the roots of polynomials of degree <img src='http://s0.wp.com/latex.php?latex=1%5Ctimes+10%5E6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='1&#92;times 10^6' title='1&#92;times 10^6' class='latex' />. Today, &#8220;simple&#8221; means something like &#8220;solvable by computers within a reasonable amount of time&#8221;.</p>
<p>Fortunately, this has a formal definition in mathematics: it is also known as <em>polynomial-time computability</em>. The formalization of the notion of efficient computation is at heart of computational complexity, the branch of theoretical computer science that studies the <em>difficulty</em> of solving mathematical problems. Just as zoologist attempts to provide a complete classification of life on Earth, so does a computational complexity theorist try to categorize mathematical problems by the computational resources needed to solve them. Perhaps the most important category is the set of problems that are solvable by computers in polynomial time, or <img src='http://s0.wp.com/latex.php?latex=%5Csf+P&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sf P' title='&#92;sf P' class='latex' />. That is, the number of steps that are required to solve a problem in <img src='http://s0.wp.com/latex.php?latex=%5Csf+P&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sf P' title='&#92;sf P' class='latex' /> scales as a polynomial in the length of the problem instance you&#8217;re trying to solve.</p>
<p>Though they were not aware of it, the Greeks, the predecessors of Galois, mathematicians trying to compute the dynamics of 3 bodies &#8211; they were seeking limited forms of polynomial time algorithms for their respective problems. One could say that, before electronic computers, the working notion of polynomial time computation <em>was</em> that involving only plus, times, <em>n</em>th-roots, and perhaps exponentiation and logarithms. Now that we do have computers at our disposal, &#8220;simple&#8221; now encompasses the much more general notion of <img src='http://s0.wp.com/latex.php?latex=%5Csf+P&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sf P' title='&#92;sf P' class='latex' />. And because of the Church-Turing Thesis, I argue that <img src='http://s0.wp.com/latex.php?latex=%5Csf+P&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sf P' title='&#92;sf P' class='latex' /> is probably the most general notion of &#8220;simple&#8221; (Let&#8217;s leave quantum computers out of the picture for a moment). The buck stops with <img src='http://s0.wp.com/latex.php?latex=%5Csf+P&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sf P' title='&#92;sf P' class='latex' />: if your laptop can&#8217;t solve it efficiently, neither can any other mathematician (A nod to Kamal Jain&#8217;s pithy quote).</p>
<p>Many scientists and engineers continue to seek solutions to their problems that fit the traditional notion of simple; closed form expressions are still regarded as the gold standard for tractable solutions. Other than its historical importance, though, the criteria for closed-formedness is largely arbitrary. What is so special about computation methods that only involve <img src='http://s0.wp.com/latex.php?latex=%2B%2C%5Ctimes&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='+,&#92;times' title='+,&#92;times' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%5Bn%5D%7B%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sqrt[n]{}' title='&#92;sqrt[n]{}' class='latex' />? Why should computing <img src='http://s0.wp.com/latex.php?latex=%5Cint%7Be%5E%7Bx%5E2%7Ddx%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;int{e^{x^2}dx}' title='&#92;int{e^{x^2}dx}' class='latex' /> be any more difficult than computing <img src='http://s0.wp.com/latex.php?latex=%5Cint%7Be%5Ex+dx%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;int{e^x dx}' title='&#92;int{e^x dx}' class='latex' />? Why can&#8217;t a polynomial time algorithm count as a solution to a problem?</p>
<p>The age of the closed form expression is over. Modern problems are usually too complex to admit nice, clean formulas. Instead, they require a more general algorithmic approach, and now issues of computational complexity and numerical accuracy take center stage. For solvers of mathematical problems, it is important to understand what can be computed efficiently and accurately. And just as the the discovery of the irrationality of <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%7B2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sqrt{2}' title='&#92;sqrt{2}' class='latex' />, Galois theory, and the 3-body problem have led to major leaps in mathematics, so will the study of algorithms and complexity.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=473&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/08/10/a-new-kind-of-sci-i-mean-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Quantum Assembly Language</title>
		<link>http://cipher3d.wordpress.com/2011/06/30/quantum-assembly-language/</link>
		<comments>http://cipher3d.wordpress.com/2011/06/30/quantum-assembly-language/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 04:12:51 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=459</guid>
		<description><![CDATA[I kid you not, there actually is a quantum circuit assembly language. Unfortunately, it&#8217;s only been used so far to draw quantum circuits, but one could hope that one day there will be an Google Quantum Android SDK that will take &#8230; <a href="http://cipher3d.wordpress.com/2011/06/30/quantum-assembly-language/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=459&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I kid you not, there actually is a <a href="http://www.media.mit.edu/quanta/qasm2circ/">quantum circuit assembly language</a>.</p>
<p>Unfortunately, it&#8217;s only been used so far to <em>draw</em> quantum circuits, but one could hope that one day there will be an Google Quantum Android SDK that will take in the following&#8230;<br />
<code></p>
<p>#<br />
# File: test17.qasm<br />
# Date: 24-Mar-04<br />
# Author: I. Chuang<br />
#<br />
# Sample qasm input file - example from Nielsen<br />
# paper on cluster states</p>
<p>def MeasH,0,'\dmeter{H}'</p>
<p>qubit q0,\psi<br />
qubit q1,+<br />
qubit q2,+<br />
qubit q3,\phi</p>
<p>nop q0<br />
nop q2<br />
ZZ q0,q1<br />
ZZ q2,q3<br />
ZZ q1,q2<br />
MeasH q1<br />
MeasH q2<br />
</code><br />
&nbsp;</p>
<p>and generate the following&#8230;</p>
<p><img class="alignnone" title="There's an (quantum) app for that..." src="http://www.media.mit.edu/quanta/qasm2circ/test17.png" alt="" width="366" height="262" /></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/459/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=459&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/06/30/quantum-assembly-language/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>

		<media:content url="http://www.media.mit.edu/quanta/qasm2circ/test17.png" medium="image">
			<media:title type="html">There&#039;s an (quantum) app for that...</media:title>
		</media:content>
	</item>
		<item>
		<title>The most powerful supercomputer? The Web.</title>
		<link>http://cipher3d.wordpress.com/2011/06/25/the-most-powerful-supercomputer-the-web/</link>
		<comments>http://cipher3d.wordpress.com/2011/06/25/the-most-powerful-supercomputer-the-web/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 22:13:42 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[Philosophy]]></category>

		<guid isPermaLink="false">https://cipher3d.wordpress.com/2011/06/25/the-most-powerful-supercomputer-the-web/</guid>
		<description><![CDATA[Recently there was news about a supercomputer in Japan taking the crown of the best in the world, for now. However, I believe that this beast of a machine has NOTHING on what is potentially the most powerful computing device, &#8230; <a href="http://cipher3d.wordpress.com/2011/06/25/the-most-powerful-supercomputer-the-web/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=450&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://cipher3d.files.wordpress.com/2011/06/20110625-031825.jpg"><img class="alignnone size-full" src="http://cipher3d.files.wordpress.com/2011/06/20110625-031825.jpg?w=584" alt="20110625-031825.jpg" /></a></p>
<p>Recently there was news about a supercomputer in Japan taking the crown of the best in the world, for now. However, I believe that this beast of a machine has NOTHING on what is potentially the most powerful computing device, but yet lies dormant.</p>
<p>I ran across this link: <a href="http://www.statlect.com/ideas_computational_engine.htm">http://www.statlect.com/ideas_computational_engine.htm</a>, which puts forth the rather BRILLIANT idea of harnessing Wikipedia or other heavily-trafficked websites as a supercomputer. Simply install a small amount of JavaScript on each page, and take advantage of the user&#8217;s likely supply of idle CPU cycles to do something useful for the world, such as finding cures for cancer, or searching for extraterrestrial life, or folding proteins, or solving some difficult mathematical problem. The possibilities are endless!</p>
<p>What I would really like to see &#8211; and here I raise a developer&#8217;s call-to-arms &#8211; is for someone or a group of people to get together and create a distributed crowd sourced computing platform that runs solely on JavaScript. Then a website owner could just drop a small amount of JavaScript (much like they would to install google analytics) into their page, and voila! Every time a visitor navigates to their website, their computers will be periodically send back computational work done in the browser, until they leave the website.</p>
<p>I could see a company like Google or Amazon getting behind such an effort. I can see universities, governments, organized crime wanting to get involved too. Here are some of the possibilities:</p>
<p>- pedestrian science like curing cancer and folding proteins (NIH, universities)<br />
- search for Ramsey numbers<br />
- run simulations or nuclear explosions (governments)<br />
- run molecular dynamics simulations<br />
- factorize large numbers to break encrypted messages (governments, criminals)<br />
- off load your company&#8217;s computing costs to unwitting users across the world by disguising it as a protein folding problem (corporations)</p>
<p>I can for see browsers in the future allowing you to throttle how much &#8220;free work&#8221; you are willing to do for organizations you don&#8217;t even know (it&#8217;s not really free because of energy costs). Or, perhaps users can charge for the work being done on their computers! This could open up a whole new market, a new type of economics of computing! For example,</p>
<p>In exchange for lending your CPU cycles, the New York Times might give you free access to their content, and the New York Times could be using your computer to run computations for China, who needs to simulate new materials design for their aircraft fleet.</p>
<p>This is great stuff for a technothriller novel. This reminds me of the many sci-fi stories I&#8217;ve read that involve aliens/machines using humans/brains as a computational substrate. We&#8217;re not quite there, but it&#8217;s happening to our personal computing devices. Our laptops, phones, tablets could be enslaved by shadowy organizations in order to come up with the next super mega-virus, or crack RSA, or run massive DDoS attacks (oh wait&#8230;.).</p>
<p>Here I go again, letting my imagination run amok&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/450/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=450&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/06/25/the-most-powerful-supercomputer-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>

		<media:content url="http://cipher3d.files.wordpress.com/2011/06/20110625-031825.jpg" medium="image">
			<media:title type="html">20110625-031825.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Triangle Inequality for Inner Products in Euclidean Space</title>
		<link>http://cipher3d.wordpress.com/2011/06/21/434/</link>
		<comments>http://cipher3d.wordpress.com/2011/06/21/434/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 04:26:44 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=434</guid>
		<description><![CDATA[Due to great public pressure, I&#8217;ll appease my widespread readership with an extremely engaging blog post entitled &#8220;Triangle Inequality for Inner Products in Euclidean Space.&#8221; Hold onto your seats! Sarcasm aside, I&#8217;ll try my best to make this somewhat un-soporific! Let &#8230; <a href="http://cipher3d.wordpress.com/2011/06/21/434/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=434&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Due to great public pressure, I&#8217;ll appease my widespread readership with an extremely engaging blog post entitled &#8220;Triangle Inequality for Inner Products in Euclidean Space.&#8221; Hold onto your seats!</p>
<p>Sarcasm aside, I&#8217;ll try my best to make this <em>somewhat</em> un-soporific! Let me start by briefly describing the motivation for this little article: I wanted to analyze the effect of a repeated sequence of quantum circuits on a <em>noisy input</em>. Let&#8217;s say you have a quantum circuit <em>Q </em>that you want to run multiple times in order to perform success probability amplification (much as one might want to amplify a BPP algorithm&#8217;s success probability from 2/3 to something exponentially close to 1). One way to do that is have <em>k </em>copies of the circuit <em>Q</em> and run them in parallel, and take the majority vote of the answers.</p>
<p>However, I&#8217;m not satisfied with this approach. It&#8217;s not environmentally friendly &#8211; after all, as a theorist living in California, I have a duty to make my theorems as green as possible. Having <em>k</em> parallel copies of <em>Q</em> requires <em>k-</em>times the number of qubits, and that&#8217;s quite wasteful. Getting one or two more coherent qubits in a quantum computer is a nightmare for experimentalists all around the world, so wantonly repeating <em>Q</em> a polynomial number of times would be just insult to injury for them. Let&#8217;s be environmentally friendly AND nice!</p>
<p><span id="more-434"></span></p>
<p>What about running the circuit <em>Q</em> sequentially <em>k </em>times, reusing the same workspace, while storing the answers of each of the <em>k</em> runs separately? This only requires 1 extra qubit per repetition of <em>Q. </em>The catch is that we have to know that the workspace is relatively clean after each run: if there&#8217;s junk in the workspace after the last iteration of <em>Q</em>, it&#8217;ll mess up the calculations for the next <em>Q</em>.</p>
<p>Long story short &#8211; let&#8217;s say you were only able to guarantee that the output workspace of <em>Q</em> is somewhat <em>close</em> to being in a pristine, untouched state (namely, being set to all zeros). Then can we still make this sequential repetition of <em>Q</em> accomplish success amplification?</p>
<p>The answer is &#8220;maybe&#8221;, but regardless, it led me to conceive of the following cute geometric fact:</p>
<p><strong>Theorem</strong>: Let <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Ccdots%2Cx_k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_1,&#92;cdots,x_k' title='x_1,&#92;cdots,x_k' class='latex' /> be unit vectors in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5En&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mathbb{R}^n' title='&#92;mathbb{R}^n' class='latex' />, and that for all <img src='http://s0.wp.com/latex.php?latex=1+%5Cleq+i+%5Cleq+k-1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='1 &#92;leq i &#92;leq k-1' title='1 &#92;leq i &#92;leq k-1' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_i%2Cx_%7Bi%2B1%7D+%5Crangle+%5Cgeq+1-%5Cepsilon&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;langle x_i,x_{i+1} &#92;rangle &#92;geq 1-&#92;epsilon' title='&#92;langle x_i,x_{i+1} &#92;rangle &#92;geq 1-&#92;epsilon' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Clangle+%5Ccdot%2C%5Ccdot+%5Crangle&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;langle &#92;cdot,&#92;cdot &#92;rangle' title='&#92;langle &#92;cdot,&#92;cdot &#92;rangle' class='latex' /> denotes the standard inner product on Euclidean space. Then, <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_1%2Cx_k+%5Crangle+%5Cgeq+1+-+k%5E2%5Cepsilon&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;langle x_1,x_k &#92;rangle &#92;geq 1 - k^2&#92;epsilon' title='&#92;langle x_1,x_k &#92;rangle &#92;geq 1 - k^2&#92;epsilon' class='latex' />.</p>
<p>This is closely related to the standard &#8220;Triangle Inequality&#8221; for Euclidean space, but instead of an inequality about distances, it&#8217;s more a triangle inequality of <em>angles</em> between vectors. But indeed, the proof of this relies on the standard triangle inequality for Euclidean space.</p>
<p><strong>Proof</strong>: Consider <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_1' title='x_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_2' title='x_2' class='latex' />. Since <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_1%2Cx_2+%5Crangle+%3D+%7Cx_1%7C+%5Ccdot+%7Cx_2%7C+%5Ccdot+%5Ccos%28%5Ctheta%29+%3D+%5Ccos%28%5Ctheta%29+%5Cgeq+1+-+%5Cepsilon&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;langle x_1,x_2 &#92;rangle = |x_1| &#92;cdot |x_2| &#92;cdot &#92;cos(&#92;theta) = &#92;cos(&#92;theta) &#92;geq 1 - &#92;epsilon' title='&#92;langle x_1,x_2 &#92;rangle = |x_1| &#92;cdot |x_2| &#92;cdot &#92;cos(&#92;theta) = &#92;cos(&#92;theta) &#92;geq 1 - &#92;epsilon' class='latex' />, we know that the distance between <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_1' title='x_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_2' title='x_2' class='latex' /> (the distance between the endpoints of these vectors) is less than <img src='http://s0.wp.com/latex.php?latex=2%5Csin%28%5Cfrac%7B%5Ctheta%7D%7B2%7D%29+%5Cleq+%5Csqrt%7B2%5Cepsilon%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='2&#92;sin(&#92;frac{&#92;theta}{2}) &#92;leq &#92;sqrt{2&#92;epsilon}' title='2&#92;sin(&#92;frac{&#92;theta}{2}) &#92;leq &#92;sqrt{2&#92;epsilon}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> is the angle between <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_1' title='x_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_2' title='x_2' class='latex' />. Furthermore, we know for all <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='i' title='i' class='latex' />, the distance between the endpoints of <img src='http://s0.wp.com/latex.php?latex=x_i&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_i' title='x_i' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_%7Bi%2B1%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_{i+1}' title='x_{i+1}' class='latex' /> is less than <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%7B2%5Cepsilon%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;sqrt{2&#92;epsilon}' title='&#92;sqrt{2&#92;epsilon}' class='latex' />, meaning, by the triangle inequality, the distance between <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_1' title='x_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x_k' title='x_k' class='latex' /> is at most <img src='http://s0.wp.com/latex.php?latex=k%5Csqrt%7B2%5Cepsilon%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='k&#92;sqrt{2&#92;epsilon}' title='k&#92;sqrt{2&#92;epsilon}' class='latex' />. Then <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_1%2Cx_k+%5Crangle+%5Cgeq+%5Ccos%282+%5Carcsin%28%5Cfrac%7Bk%7D%7B2%7D%5Csqrt%7B2%5Cepsilon%7D%29%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;langle x_1,x_k &#92;rangle &#92;geq &#92;cos(2 &#92;arcsin(&#92;frac{k}{2}&#92;sqrt{2&#92;epsilon}))' title='&#92;langle x_1,x_k &#92;rangle &#92;geq &#92;cos(2 &#92;arcsin(&#92;frac{k}{2}&#92;sqrt{2&#92;epsilon}))' class='latex' /> <img src='http://s0.wp.com/latex.php?latex=%3D+%5Ccos%5E2%28%5Carcsin%28%5Cfrac%7Bk%7D%7B2%7D%5Csqrt%7B2%5Cepsilon%7D%29%29+-+%5Csin%5E2%28%5Carcsin%28%5Cfrac%7Bk%7D%7B2%7D%5Csqrt%7B2%5Cepsilon%7D%29%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='= &#92;cos^2(&#92;arcsin(&#92;frac{k}{2}&#92;sqrt{2&#92;epsilon})) - &#92;sin^2(&#92;arcsin(&#92;frac{k}{2}&#92;sqrt{2&#92;epsilon}))' title='= &#92;cos^2(&#92;arcsin(&#92;frac{k}{2}&#92;sqrt{2&#92;epsilon})) - &#92;sin^2(&#92;arcsin(&#92;frac{k}{2}&#92;sqrt{2&#92;epsilon}))' class='latex' /> <img src='http://s0.wp.com/latex.php?latex=%5Cgeq+1+-+k%5E2%5Cepsilon&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;geq 1 - k^2&#92;epsilon' title='&#92;geq 1 - k^2&#92;epsilon' class='latex' />. QED.</p>
<p>This seems useful enough to keep around, and maybe you&#8217;ll find a use for it? If so, don&#8217;t forget to drop some change in the &#8220;Starving Mathematician&#8221; bucket. Or leave a comment, that works too.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/434/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=434&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/06/21/434/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Lens Conference Videos</title>
		<link>http://cipher3d.wordpress.com/2011/05/15/lens-conference-videos/</link>
		<comments>http://cipher3d.wordpress.com/2011/05/15/lens-conference-videos/#comments</comments>
		<pubDate>Sun, 15 May 2011 16:43:05 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=430</guid>
		<description><![CDATA[If you weren&#8217;t able to attend the Lens Conference last weekend, you will be able to experience at least half of its amazingness via the videos posted here: http://www.eecs.berkeley.edu/IPRO/lensconference2011/. (The other half is the experience of meeting and engaging with the &#8230; <a href="http://cipher3d.wordpress.com/2011/05/15/lens-conference-videos/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=430&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you weren&#8217;t able to attend the Lens Conference last weekend, you will be able to experience at least half of its amazingness via the videos posted here: <a href="http://www.eecs.berkeley.edu/IPRO/lensconference2011/">http://www.eecs.berkeley.edu/IPRO/lensconference2011/</a>. (The other half is the experience of meeting and engaging with the other participants of the conference!).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/430/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=430&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/05/15/lens-conference-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Lens Conference 2011</title>
		<link>http://cipher3d.wordpress.com/2011/05/09/lens-conference-2011/</link>
		<comments>http://cipher3d.wordpress.com/2011/05/09/lens-conference-2011/#comments</comments>
		<pubDate>Mon, 09 May 2011 22:03:41 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Medicine]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=419</guid>
		<description><![CDATA[This past weekend I attended the Theory of Computation as a Lens on the Sciences 2011 at UC Berkeley. As one might guess from the title, the theme is the importance of theoretical computer science not only as a means &#8230; <a href="http://cipher3d.wordpress.com/2011/05/09/lens-conference-2011/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=419&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">This past weekend I attended the <a href="http://www.eecs.berkeley.edu/IPRO/lensconference2011/">Theory of Computation as a Lens on the Sciences 2011</a> at UC Berkeley. As one might guess from the title, the theme is the importance of theoretical computer science not only as a means of studying computation itself, but rather as a means of bringing a new perspective on the major mysteries of the natural sciences &#8211; a lens, if you will.</p>
<p style="text-align:justify;">Of course, computers have been undeniably crucial to the progress of science in the last half century, but for the most part, computation has been used as a <em>tool</em> for carrying out science, much as one might have a particle accelerator or gel electrophoresis as a tool. Here, the focus is on viewing quantum physics, molecular biology, evolution, as <em>computational phenomena</em>. If one does this, then one can bring out the big guns of theoretical computer science out &#8211; theorems and concepts of complexity, computability, algorithms &#8211; and potentially make groundbreaking discoveries in the initial science.</p>
<p style="text-align:justify;"><span id="more-419"></span></p>
<p style="text-align:justify;">The Lens conference was fantastic. For two days, one found an eclectic but exciting mix of computer scientists, mathematicians, biologists, physicists, economists, etc. etc. together in one room, throwing about ideas, educating one another about their respective fields, challenging each other, all peering through the lens of computer science and trying to understand what they saw.</p>
<p style="text-align:justify;">The best part of this conference was that it was about <em>big ideas</em> - the talks weren&#8217;t dense with technical proofs and theorems as most conference talks are. On the contrary, the talks talked more about the <em>major questions, </em>the <em>big mysteries</em>, rather than giving <em>answers</em>. This gave me the feeling of being right on the very frontier of science, that all it takes is the right question, some cleverness, and some hard work, and one will find a treasure trove of scientific discoveries.</p>
<p style="text-align:justify;">Let me describe one talk I found to exemplify the conference theme. <a href="http://en.wikipedia.org/wiki/Leslie_Valiant">Leslie Valiant</a>, winner of the 2010 Turing Award, gave a talk on his recent work on &#8220;Evolvability.&#8221; He starts with the observation that Darwin&#8217;s theory of evolution is incomplete. While Darwin&#8217;s theory gives a mechanism for how species change over time, it doesn&#8217;t offer any way to quantify evolution. To this day, we have no idea of how to predict how species today will evolve in the future, what they will evolve to, or when they will evolve. Can everything we can imagine be in principle evolved?</p>
<p style="text-align:justify;">More specifically, consider protein regulatory circuits that reside within our bodies. We are amazing pieces of machinery whose continued operation hinges (among other things) on the delicate balance of protein expression levels in our cells. The expression levels of a single protein could be dependent on hundreds if not thousands of other proteins, and this dependency can be extremely complicated. One can view such a dependency as a function that takes as input the expression level of (say) ten other proteins, and the output is the expression level of another. This function presumably is a product of evolution. Is there a limit to how complicated this function could be? Can Nature evolve arbitrarily complicated dependencies?</p>
<p style="text-align:justify;">Here&#8217;s where the theory of computation comes into play: we know Nature cannot. As a trivial example, suppose the function was: &#8220;Express protein A if and only if protein B&#8217;s expression level, encoded as a Turing Machine, halts on input 0.&#8221; A strange function, perhaps &#8211; but we know from computability theory that there is no way Nature could evolve this function!</p>
<p style="text-align:justify;">This suggests that the limits of evolvability don&#8217;t stop there. What about functions that are, in some sense, <em>really</em> hard to acquire? Though evolution on Earth has been going on for billions of years, we don&#8217;t expect it to have gotten its hands on a function that we intuitively expect would take a <em>trillion trillion</em> years to learn. These ideas are made unvague in the field of <em>computational learning theory</em>, from which Valiant draws inspiration for his evolvability theory. Incidentally, Valiant won his Turing Award partly for his seminal work in computational learning theory (CLT). In CLT, one can show that there are certain functions that are hard to learn, meaning that it either takes a superpolynomial amount of time to learn, or the function requires an exponential number of examples, etc.</p>
<p style="text-align:justify;">Valiant suggests that one can view evolution as a <em>learning algorithm</em>. Consider a species with a particular genome G. Think of G as a function that maps situations to actions, e.g. G(&#8220;Tiger heading my way&#8221;) = &#8220;Run away&#8221; or G(&#8220;Mushroom in my view&#8221;) = &#8220;Eat it&#8221;. G is a representation of the evolution algorithm&#8217;s current <em>hypothesis</em> of the ideal genome H &#8211; the genome that maps situations to the ideal action, with respect to the species&#8217; fitness. The evolution algorithm acts on G, updating it, trying to reach this ideal genome H, and it <em>learns</em> of what changes to make to G via experiences derived from the environment. For example, if G(&#8220;Mushroom in my view&#8221;) = &#8220;Eat it&#8221;, and the resulting experience is that of death, then the evolution algorithm should try to change G to G(&#8220;Mushroom in my view&#8221;) = &#8220;Get the hell away&#8221;.</p>
<p style="text-align:justify;">Though this is a highly stylized view of evolution, it has the benefit of being amenable to the same kind of analyses one uses in CLT. In fact, Valiant reported some interesting theorems showing that certain kinds of boolean functions are not evolvable in polynomial time under a particular evolution algorithm (polynomial in the length of the genome). The take home message is that now one can introduce concepts like polynomial-time computability to evolution, and that these concepts are vital to understanding what can and cannot be evolved. We should, Valiant claims, only expect Nature to evolve genomes that can be evolved using a polynomial number of steps.</p>
<p style="text-align:justify;">Valiant&#8217;s theory of &#8220;Evolvability&#8221; has a markedly different flavor than other approaches to creating a quantitative theory of evolution. Whereas many scientists are trying to derive quantities such as the rate at which species evolve under sexual reproduction, or how fast gene mixing occurs, or what else, Valiant is trying to mathematically quantify the limits of evolution. Although I think there are many shortcomings to his toy model of evolvability, I believe it is a good start to an understand of evolution that complements other approaches. To adopt the language of theoretical computer science, most other evolutionary biologists/physicists are dealing with &#8220;upper bounds&#8221; &#8211; analyzing a particular evolution algorithm (the one we see in Nature), whereas Valiant is dealing with &#8220;lower bounds&#8221; &#8211; showing what can&#8217;t be done by <em>all</em> (polytime) evolution algorithms.</p>
<p style="text-align:justify;">Leslie Valiant&#8217;s talk was just one of many fascinating talks given, and maybe I&#8217;ll write little vignettes about the others soon.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/419/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=419&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/05/09/lens-conference-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Sunset, a poem</title>
		<link>http://cipher3d.wordpress.com/2011/04/18/sunset-a-poem/</link>
		<comments>http://cipher3d.wordpress.com/2011/04/18/sunset-a-poem/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 05:43:17 +0000</pubDate>
		<dc:creator>Henry Yuen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cipher3d.wordpress.com/?p=403</guid>
		<description><![CDATA[This is a poem I wrote on a plane from Frankfurt to Amsterdam, in 2008. It references the Omega Point theory. It describes the final moments of the universe, as it is dissolving into an maximally entropic state. Sunset I &#8230; <a href="http://cipher3d.wordpress.com/2011/04/18/sunset-a-poem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=403&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a poem I wrote on a plane from Frankfurt to Amsterdam, in 2008. It references the <a href="http://en.wikipedia.org/wiki/Omega_Point" target="_blank">Omega Point theory</a>. It describes the final moments of the universe, as it is dissolving into an maximally entropic state.</p>
<h2><em><strong>Sunset</strong></em></h2>
<p>I watch despondently<br />
As the lights wink out<br />
One by one<br />
Great tired suns heaving<br />
Their last sighs<br />
Dousing this universe in a deep<br />
Enveloping gloom.</p>
<p>I am the Omega Point<br />
I am Life itself<br />
I am the triumph<br />
of the uncountably infinite multitudes<br />
who have ever roamed space and time<br />
With my coming came they into me<br />
Their voices joined as one, asking deliverance<br />
From the dark recesses whence they came.</p>
<p>I brace myself -<br />
The final bitter cold sets in,<br />
Holding myself tightly to save the last<br />
Vestiges of warmth; but<br />
slowly,<br />
Quietly,<br />
Like an innocent gas leak<br />
Life seeps out<br />
Into the hungry void.</p>
<p>The candles burn low;<br />
I can almost imagine<br />
A terrible snow storm raging outside.<br />
But there is no snow<br />
There is no storm<br />
There is no outside<br />
Of this quickly emptying cell.</p>
<p>God has sent me to witness<br />
The terminal days of this place<br />
Alone.<br />
There is none left<br />
To share my burden, and to<br />
Weep with me.<br />
For all that ever was,<br />
And could have been<br />
Will never be.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cipher3d.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cipher3d.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cipher3d.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cipher3d.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cipher3d.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cipher3d.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cipher3d.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cipher3d.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cipher3d.wordpress.com&amp;blog=45209&amp;post=403&amp;subd=cipher3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cipher3d.wordpress.com/2011/04/18/sunset-a-poem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adc0b2bb32c3f4bd30c509398464867?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cipher3d</media:title>
		</media:content>
	</item>
	</channel>
</rss>
