<?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>girish varma&#039;s&#160;&#124;&#160;ഗിരീഷ്‌ വര്‍മയുടെ homepage</title>
	<atom:link href="http://girishvarma.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://girishvarma.wordpress.com</link>
	<description></description>
	<lastBuildDate>Thu, 14 Jul 2011 10:32:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='girishvarma.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>girish varma&#039;s&#160;&#124;&#160;ഗിരീഷ്‌ വര്‍മയുടെ homepage</title>
		<link>http://girishvarma.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://girishvarma.wordpress.com/osd.xml" title="girish varma&#039;s&#160;&#124;&#160;ഗിരീഷ്‌ വര്‍മയുടെ homepage" />
	<atom:link rel='hub' href='http://girishvarma.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A Latex Template</title>
		<link>http://girishvarma.wordpress.com/2010/11/05/a-latex-template/</link>
		<comments>http://girishvarma.wordpress.com/2010/11/05/a-latex-template/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 20:43:44 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=563</guid>
		<description><![CDATA[My first paper is being rewritten for a special issue of the journal Theoretical Computer Science. Thought of starting from scratch. So i made a latex template with some good scripts which readily outputs the pdf and cleans up the directory. Click here to download it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=563&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My first paper is being rewritten for a special issue of the journal Theoretical Computer Science. Thought of starting from scratch. So i made a latex template with some good scripts which readily outputs the pdf and cleans up the directory.</p>
<p><strong><a href="http://db.tt/fe8oFnH">Click here to download it.</a></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/563/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=563&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2010/11/05/a-latex-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>
	</item>
		<item>
		<title>Fall at Saarbrücken</title>
		<link>http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/</link>
		<comments>http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 07:22:14 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=564</guid>
		<description><![CDATA[Tagged: photos<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=564&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<a href="http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/#gallery-1-slideshow">Click to view slideshow.</a>

<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-4/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-20-55.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-5/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-21-51.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-6/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-25-17.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/2010-11-01-07-28-23/' title='2010-11-01 07.28.23'><img width="150" height="21" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-28-23.jpg?w=150&#038;h=21" class="attachment-thumbnail" alt="2010-11-01 07.28.23" title="2010-11-01 07.28.23" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-7/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-36-25.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-9/' title='SAMSUNG'><img width="112" height="150" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-13-49-19-e1288683471658.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-12/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-14-24-35.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-14/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-14-25-44.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-15/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-00-52.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-16/' title='SAMSUNG'><img width="150" height="112" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-00-56.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/2010-10-24-15-13-53/' title='2010-10-24 15.13.53'><img width="150" height="31" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-13-53.jpg?w=150&#038;h=31" class="attachment-thumbnail" alt="2010-10-24 15.13.53" title="2010-10-24 15.13.53" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/2010-10-24-15-49-29/' title='2010-10-24 15.49.29'><img width="150" height="40" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-49-29-e1288595660544.jpg?w=150&#038;h=40" class="attachment-thumbnail" alt="2010-10-24 15.49.29" title="2010-10-24 15.49.29" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/2010-10-24-15-50-14/' title='2010-10-24 15.50.14'><img width="150" height="40" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-50-14-e1288595647561.jpg?w=150&#038;h=40" class="attachment-thumbnail" alt="2010-10-24 15.50.14" title="2010-10-24 15.50.14" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-18/' title='SAMSUNG'><img width="112" height="150" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-15-19-e1288595676192.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/2010-10-24-18-25-09/' title='2010-10-24 18.25.09'><img width="150" height="21" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-25-09.jpg?w=150&#038;h=21" class="attachment-thumbnail" alt="2010-10-24 18.25.09" title="2010-10-24 18.25.09" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-19/' title='SAMSUNG'><img width="112" height="150" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-26-04-e1288595806445.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/2010-10-24-18-28-48/' title='2010-10-24 18.28.48'><img width="150" height="20" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-28-48.jpg?w=150&#038;h=20" class="attachment-thumbnail" alt="2010-10-24 18.28.48" title="2010-10-24 18.28.48" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-20/' title='SAMSUNG'><img width="112" height="150" src="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-30-17-e1288595789804.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-8/' title='SAMSUNG'><img width="112" height="150" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-04-10-57-35-e1288903536822.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>
<a href='http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/samsung-10/' title='SAMSUNG'><img width="112" height="150" src="http://girishvarma.files.wordpress.com/2010/11/2010-11-04-11-01-07-e1288902262141.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="SAMSUNG" title="SAMSUNG" /></a>

<br /> Tagged: <a href='http://girishvarma.wordpress.com/tag/photos/'>photos</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/564/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=564&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2010/11/01/fall-at-saarbrucken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-20-55.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-21-51.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-25-17.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-28-23.jpg?w=150" medium="image">
			<media:title type="html">2010-11-01 07.28.23</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-01-07-36-25.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-13-49-19-e1288683471658.jpg?w=112" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-14-24-35.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-14-25-44.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-00-52.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-00-56.jpg?w=150" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-13-53.jpg?w=150" medium="image">
			<media:title type="html">2010-10-24 15.13.53</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-49-29-e1288595660544.jpg?w=150" medium="image">
			<media:title type="html">2010-10-24 15.49.29</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-15-50-14-e1288595647561.jpg?w=150" medium="image">
			<media:title type="html">2010-10-24 15.50.14</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-15-19-e1288595676192.jpg?w=112" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-25-09.jpg?w=150" medium="image">
			<media:title type="html">2010-10-24 18.25.09</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-26-04-e1288595806445.jpg?w=112" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-28-48.jpg?w=150" medium="image">
			<media:title type="html">2010-10-24 18.28.48</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-10-24-18-30-17-e1288595789804.jpg?w=112" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-04-10-57-35-e1288903536822.jpg?w=112" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2010/11/2010-11-04-11-01-07-e1288902262141.jpg?w=112" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>
	</item>
		<item>
		<title>Flow problems on graphs</title>
		<link>http://girishvarma.wordpress.com/2010/09/29/flow-problems-on-graphs/</link>
		<comments>http://girishvarma.wordpress.com/2010/09/29/flow-problems-on-graphs/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 13:46:46 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=298</guid>
		<description><![CDATA[Let be a directed graph. Given , is said to be a flow from to if flow is conserved at every vertex except () and is skew symmetric(). is said to be a circulation in , if the flow is conserved at all vertices. The following problems are well studied in literature: MAX-FLOW Given some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=298&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let <img src='http://s0.wp.com/latex.php?latex=G%28V%2CE%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G(V,E)' title='G(V,E)' class='latex' /> be a directed graph. Given <img src='http://s0.wp.com/latex.php?latex=s%2Ct+%5Cin+V&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s,t &#92;in V' title='s,t &#92;in V' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%3AV+%5Crightarrow+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f:V &#92;rightarrow &#92;mathbb{R}' title='f:V &#92;rightarrow &#92;mathbb{R}' class='latex' /> is said to be a <em>flow</em> from <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s' title='s' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t' title='t' class='latex' /> if flow is conserved at every vertex except <img src='http://s0.wp.com/latex.php?latex=s%2Ct&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s,t' title='s,t' class='latex' />(<img src='http://s0.wp.com/latex.php?latex=%5Cforall+v+%5Cin+V+%5Csetminus+%5C%7Bs%2Ct%5C%7D%2C%7E+%5Csum_%7Bu+%7C+%28u%2Cv%29+%5Cin+E%7D+f%28u%2Cv%29+%3D+%5Csum_%7Bu+%7C+%28v%2Cu%29+%5Cin+E%7D+f%28v%2Cu%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;forall v &#92;in V &#92;setminus &#92;{s,t&#92;},~ &#92;sum_{u | (u,v) &#92;in E} f(u,v) = &#92;sum_{u | (v,u) &#92;in E} f(v,u)' title='&#92;forall v &#92;in V &#92;setminus &#92;{s,t&#92;},~ &#92;sum_{u | (u,v) &#92;in E} f(u,v) = &#92;sum_{u | (v,u) &#92;in E} f(v,u)' class='latex' />) and <img src='http://s0.wp.com/latex.php?latex=f&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f' title='f' class='latex' /> is skew symmetric(<img src='http://s0.wp.com/latex.php?latex=f%28u%2Cv%29+%3D+-+f%28v%2Cu%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f(u,v) = - f(v,u)' title='f(u,v) = - f(v,u)' class='latex' />). <img src='http://s0.wp.com/latex.php?latex=f%3AV+%5Crightarrow+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f:V &#92;rightarrow &#92;mathbb{R}' title='f:V &#92;rightarrow &#92;mathbb{R}' class='latex' /> is said to be a <em>circulation</em> in <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G' title='G' class='latex' />, if the flow is conserved at all vertices. The following problems are well studied in literature:</p>
<h4>MAX-FLOW</h4>
<p>Given some capacities for the edges <img src='http://s0.wp.com/latex.php?latex=G%2C%7E+c%3AE+%5Crightarrow+%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' title='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=s%2Ct+%5Cin+V&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s,t &#92;in V' title='s,t &#92;in V' class='latex' />, find a flow <img src='http://s0.wp.com/latex.php?latex=f&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f' title='f' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s' title='s' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t' title='t' class='latex' /> that satisfies the constraints <img src='http://s0.wp.com/latex.php?latex=%5Cforall+e+%5Cin+E%2C%7E+f%28e%29+%5Cleq+c%28e%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;forall e &#92;in E,~ f(e) &#92;leq c(e)' title='&#92;forall e &#92;in E,~ f(e) &#92;leq c(e)' class='latex' /> and maximizes the value (<img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bu%7C+%28s%2Cu%29+%5Cin+E%7D+f%28s%2Cu%29+-+%5Csum_%7Bu%7C+%28u%2Cs%29+%5Cin+E%7D+f%28u%2Cs%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sum_{u| (s,u) &#92;in E} f(s,u) - &#92;sum_{u| (u,s) &#92;in E} f(u,s)' title='&#92;sum_{u| (s,u) &#92;in E} f(s,u) - &#92;sum_{u| (u,s) &#92;in E} f(u,s)' class='latex' />).</p>
<h4>MIN-FLOW</h4>
<p>Given <img src='http://s0.wp.com/latex.php?latex=r+%5Cin+%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='r &#92;in &#92;mathbb{R}^+' title='r &#92;in &#92;mathbb{R}^+' class='latex' />, costs for the edges <img src='http://s0.wp.com/latex.php?latex=G%2C%7E+c%3AE+%5Crightarrow+%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' title='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=s%2Ct+%5Cin+V&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s,t &#92;in V' title='s,t &#92;in V' class='latex' />, find a flow <img src='http://s0.wp.com/latex.php?latex=f&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f' title='f' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s' title='s' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t' title='t' class='latex' /> that has value <img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='r' title='r' class='latex' /> (<img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bu%7C+%28s%2Cu%29+%5Cin+E%7D+f%28s%2Cu%29+-+%5Csum_%7Bu%7C+%28u%2Cs%29+%5Cin+E%7D+f%28u%2Cs%29+%3D+r&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sum_{u| (s,u) &#92;in E} f(s,u) - &#92;sum_{u| (u,s) &#92;in E} f(u,s) = r' title='&#92;sum_{u| (s,u) &#92;in E} f(s,u) - &#92;sum_{u| (u,s) &#92;in E} f(u,s) = r' class='latex' />) and minimizes the total cost (<img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Be+%5Cin+E%7D+f%28e%29+c%28e%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sum_{e &#92;in E} f(e) c(e)' title='&#92;sum_{e &#92;in E} f(e) c(e)' class='latex' />).</p>
<h4>MIN-CIRCULATION</h4>
<p>Given costs for the edges <img src='http://s0.wp.com/latex.php?latex=G%2C%7E+c%3AE+%5Crightarrow+%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' title='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' class='latex' />, find a circulation <img src='http://s0.wp.com/latex.php?latex=f&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f' title='f' class='latex' /> that minimizes the total cost (<img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Be+%5Cin+E%7D+f%28e%29+c%28e%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sum_{e &#92;in E} f(e) c(e)' title='&#92;sum_{e &#92;in E} f(e) c(e)' class='latex' />).</p>
<h4>MAX-MULTICOMMODITY-FLOW</h4>
<p>Given commodities <img src='http://s0.wp.com/latex.php?latex=K_1%2C%5Ccdots+K_t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='K_1,&#92;cdots K_t' title='K_1,&#92;cdots K_t' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=K_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='K_i' title='K_i' class='latex' /> is the tuple <img src='http://s0.wp.com/latex.php?latex=%28s_i%2Ct_i%2Cd_i%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='(s_i,t_i,d_i)' title='(s_i,t_i,d_i)' class='latex' />(ie source, destination and demand), and capacities for the edges <img src='http://s0.wp.com/latex.php?latex=G%2C%7E+c%3AE+%5Crightarrow+%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' title='G,~ c:E &#92;rightarrow &#92;mathbb{R}^+' class='latex' />, find flows <img src='http://s0.wp.com/latex.php?latex=f_i%2C+%5Cforall+%5Cin+%5Bt%5D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f_i, &#92;forall &#92;in [t]' title='f_i, &#92;forall &#92;in [t]' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=s_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s_i' title='s_i' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=t_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t_i' title='t_i' class='latex' /> that satisfies the capacity constraints (<img src='http://s0.wp.com/latex.php?latex=%5Cforall+e+%5Cin+E%2C%7E+%5Csum_%7Bi+%5Cin+%5Bt%5D%7D+f_i%28e%29+%5Cleq+c%28e%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;forall e &#92;in E,~ &#92;sum_{i &#92;in [t]} f_i(e) &#92;leq c(e)' title='&#92;forall e &#92;in E,~ &#92;sum_{i &#92;in [t]} f_i(e) &#92;leq c(e)' class='latex' />) and maximizes the value (<img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi+%5Cin+%5Bt%5D%7D+%5Csum_%7Bu%7C+%28s_i%2Cu%29+%5Cin+E%7D+f_i%28s_i%2Cu%29+-+%5Csum_%7Bu%7C+%28u%2Cs_i%29+%5Cin+E%7D+f%28u%2Cs_i%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sum_{i &#92;in [t]} &#92;sum_{u| (s_i,u) &#92;in E} f_i(s_i,u) - &#92;sum_{u| (u,s_i) &#92;in E} f(u,s_i)' title='&#92;sum_{i &#92;in [t]} &#92;sum_{u| (s_i,u) &#92;in E} f_i(s_i,u) - &#92;sum_{u| (u,s_i) &#92;in E} f(u,s_i)' class='latex' />).</p>
<h4>MIN-MULTICOMMODITY-FLOW</h4>
<p>Given commodities <img src='http://s0.wp.com/latex.php?latex=K_1%2C%5Ccdots+K_t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='K_1,&#92;cdots K_t' title='K_1,&#92;cdots K_t' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=K_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='K_i' title='K_i' class='latex' /> is the tuple <img src='http://s0.wp.com/latex.php?latex=%28s_i%2Ct_i%2Cd_i%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='(s_i,t_i,d_i)' title='(s_i,t_i,d_i)' class='latex' />(ie source, destination and demand), and costs for the edges <img src='http://s0.wp.com/latex.php?latex=c%3AE+%5Crightarrow+%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='c:E &#92;rightarrow &#92;mathbb{R}^+' title='c:E &#92;rightarrow &#92;mathbb{R}^+' class='latex' />, find flows <img src='http://s0.wp.com/latex.php?latex=f_i%2C+%5Cforall+%5Cin+%5Bt%5D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='f_i, &#92;forall &#92;in [t]' title='f_i, &#92;forall &#92;in [t]' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=s_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s_i' title='s_i' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=t_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t_i' title='t_i' class='latex' /> that satisfies the demand(<img src='http://s0.wp.com/latex.php?latex=%5Cforall+i+%5Cin+%5Bt%5D%2C%5Csum_%7Bu+%5Cmid+%28s_i+%2Cu%29+%5Cin+E%7D+f_i%28s_i%2Cu%29+-+%5Csum_%7Bu+%5Cmid+%28u%2Cs_i%29+%5Cin+E%7D+f%28u%2Cs_i%29+%3D+d_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;forall i &#92;in [t],&#92;sum_{u &#92;mid (s_i ,u) &#92;in E} f_i(s_i,u) - &#92;sum_{u &#92;mid (u,s_i) &#92;in E} f(u,s_i) = d_i' title='&#92;forall i &#92;in [t],&#92;sum_{u &#92;mid (s_i ,u) &#92;in E} f_i(s_i,u) - &#92;sum_{u &#92;mid (u,s_i) &#92;in E} f(u,s_i) = d_i' class='latex' />) and minimizes the costs (<img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Be+%5Cin+E%7D+%5Csum_%7Bi+%5Cin+%5Bt%5D%7D+f_i%28e%29+c%28e%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;sum_{e &#92;in E} &#92;sum_{i &#92;in [t]} f_i(e) c(e)' title='&#92;sum_{e &#92;in E} &#92;sum_{i &#92;in [t]} f_i(e) c(e)' class='latex' />).</p>
<p>All these problems can be solved with linear programming, by having a variable for every vertex and putting the constraints, optimization as linear functions on them. But the problem is when one requires a solution for the variables that takes integer values(integral solution), these becomes hard. There is one exception of MAX-FLOW, because of the MAX-FLOW MIN-CUT theorem, if the capacities are integral, the maximum flow has integral value. Finding an integral solution for the MIN-MULTICOMMODITY-FLOW is NP-HARD, even if there are only two commodities.</p>
<p>The MIN-MULTICOMMODITY-FLOW is used to model congestion and routing in the internet. The costs on the edges are just the latencies(the amount of time required for a unit of data to be transfered between the ends of a link). One would like to find how the packets from <img src='http://s0.wp.com/latex.php?latex=s_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='s_i' title='s_i' class='latex' />s to <img src='http://s0.wp.com/latex.php?latex=t_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t_i' title='t_i' class='latex' />s need to be routed so as to minimize the total latency. But in actual networks the latency of a link increases when more flow is routed through it due to queuing in the devices. So we need the latency on the edges to be increasing functions of the flow rather than just scalars. Also in the internet routing of packets are not controlled by a central authority. So what is assumed is each packet takes a route so as to minimize its latency. Such a flow is called the Nash flow. But such a process need not minimize the total latency incurred by all the packets. The ratio between the largest latency of Nash flows by the Optimal total latency is called the <a href="http://en.wikipedia.org/wiki/Price_of_anarchy">Price of Anarchy</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/298/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=298&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2010/09/29/flow-problems-on-graphs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>
	</item>
		<item>
		<title>Streaming Algorithms Workshop at IITK</title>
		<link>http://girishvarma.wordpress.com/2009/12/22/streaming-algorithms-workshop-at-iitk/</link>
		<comments>http://girishvarma.wordpress.com/2009/12/22/streaming-algorithms-workshop-at-iitk/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 02:10:20 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=261</guid>
		<description><![CDATA[There was a workshop on streaming algos right after FSTTCS at IIT Kanpur. First of all iitk has an awesome campus really spacious with lots of sports facilities. Though I didn&#8217;t understand most of the talks, I got a vague idea of the problems and how they are solved. Streaming algos are heavily used in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=261&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There was a workshop on streaming algos right after <a href="http://www.fsttcs.org/">FSTTCS</a> at <a href="http://www.cse.iitk.ac.in/">IIT Kanpur</a>. First of all iitk has an awesome campus really spacious with lots of sports facilities.</p>
<p> Though I didn&#8217;t understand most of the talks, I got a vague idea of the problems and how they are solved. Streaming algos are heavily used in applications like web search, databases, routers etc. These algos work on a looong stream of data(say of length <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='n' title='n' class='latex' />), over which they can do only a few passes(<img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1' title='1' class='latex' />, a const, or <img src='http://s0.wp.com/latex.php?latex=o%28%5Clog+n%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='o(&#92;log n)' title='o(&#92;log n)' class='latex' />), keeping only small memory(<img src='http://s0.wp.com/latex.php?latex=O%281%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='O(1)' title='O(1)' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=O%28%5Clog+n%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='O(&#92;log n)' title='O(&#92;log n)' class='latex' />). Though they have been around for some time, the big push in the area came after the <a href="www.math.tau.ac.il/~nogaa/PDFS/amsz4.pdf">ams</a> paper(all the speakers referenced this paper and for this the authors won the godel prize). This paper gave approximate randomized one pass algorithm for frequency moments using small space. One another important feature is that they  also proved lowerbounds using communication complexity. This was an awesome idea and has been successfully used to obtain lower bounds for other streaming problems.</p>
<p>Some of the problems were based on the specifiations that these applications require and some purely theoretical. The first problem is to define a good model of computation  that abstracts actual appliccations. Since the applications are different you need to look at different models. People talked about models of distributed streaming computations, models in which on can annotate the stream or write to it, copies of streams can be maintained, multiple passes allowed(the ams paper just looked at simple one pass read only stream). </p>
<p>Many streaming algos work by making a small sketch of the streaming data in there small memory. Later it extracts the requred information about the stream from the sketch. Usually hash functions are used to make sketches. </p>
<p>People seems to have mastered the art of using communication complexity to prove lowerbounds. Even for multiple passes they consider the communication complexity for multiple rounds of communication. There was some talk on 2 other methods called information complexity and round elemibation. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/261/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=261&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/12/22/streaming-algorithms-workshop-at-iitk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>
	</item>
		<item>
		<title>Undirected Reachability in Log Space</title>
		<link>http://girishvarma.wordpress.com/2009/12/09/undirected-reachability-in-log-space/</link>
		<comments>http://girishvarma.wordpress.com/2009/12/09/undirected-reachability-in-log-space/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:04:34 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=235</guid>
		<description><![CDATA[Theorem[by Omer Reingold] : Given a undirected graph and , the question &#8220;Is there a path between and ?&#8221; can be answered in space All graphs mentioned in the proof are undirected and may have multiple edges. denotes . The problem is equivalent to outputting all vertices reachable from in space, or more generally seperating the connected [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=235&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong> Theorem[by <em><a href="http://www.wisdom.weizmann.ac.il/~reingold/">Omer Reingold</a>]</em> : <span style="font-weight:normal;">Given a undirected graph <img src='http://s0.wp.com/latex.php?latex=%7BG%28%5Bn%5D%2CE%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G([n],E)}' title='{G([n],E)}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7Bs%2Ct%5Cin+%5Bn%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s,t&#92;in [n]}' title='{s,t&#92;in [n]}' class='latex' />, the question &#8220;Is there a path between <img src='http://s0.wp.com/latex.php?latex=%7Bs%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s}' title='{s}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7Bt%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{t}' title='{t}' class='latex' />?&#8221; can be answered in space <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' /></span></strong></p></blockquote>
<p>All graphs mentioned in the proof are undirected and may have multiple edges. <img src='http://s0.wp.com/latex.php?latex=%7B%5Bn%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{[n]}' title='{[n]}' class='latex' /> denotes <img src='http://s0.wp.com/latex.php?latex=%7B%5C%7B1%5Ccdots+n%5C%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;{1&#92;cdots n&#92;}}' title='{&#92;{1&#92;cdots n&#92;}}' class='latex' />.</p>
<p>The problem is equivalent to outputting all vertices reachable from <img src='http://s0.wp.com/latex.php?latex=%7Bs%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s}' title='{s}' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' /> space, or more generally seperating the connected components in <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' />. But one of the vertices may be reachable only by an <img src='http://s0.wp.com/latex.php?latex=%7BO%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(n)}' title='{O(n)}' class='latex' /> length path from <img src='http://s0.wp.com/latex.php?latex=%7Bs%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s}' title='{s}' class='latex' />, and it might be a degree <img src='http://s0.wp.com/latex.php?latex=%7B1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{1}' title='{1}' class='latex' /> vertex. Since this <img src='http://s0.wp.com/latex.php?latex=%7BO%28n%29%3D%5Cell%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(n)=&#92;ell}' title='{O(n)=&#92;ell}' class='latex' /> length path can be an arbitrary one, the only way i can think of is by brute force checking of all <img src='http://s0.wp.com/latex.php?latex=%7B%5Cell%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;ell}' title='{&#92;ell}' class='latex' /> length paths. But the number of such paths can be exponential in <img src='http://s0.wp.com/latex.php?latex=%7Bn%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{n}' title='{n}' class='latex' /> !. If degree is <img src='http://s0.wp.com/latex.php?latex=%7Bd%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{d}' title='{d}' class='latex' />, it can be as large as <img src='http://s0.wp.com/latex.php?latex=%7Bd%5E%5Cell%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{d^&#92;ell}' title='{d^&#92;ell}' class='latex' />. However if the graph is such that all nodes reachable from <img src='http://s0.wp.com/latex.php?latex=%7Bs%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s}' title='{s}' class='latex' /> are at a distance <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' />, then brute force is a viable method. Such a property is true in special graphs called expanders which are graphs whose adjacency matrix have small second eigen values. The proof basically constructs an expander from an arbitrary undirected graph preserving the reachability between vertices in <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' /> space.</p>
<p>My aim is just to show the logic that leads to the proof. So i just state the main lemmas without proofs and some definitions. Proofs of the lemmas could be found in <a href="http://www.ccs.neu.edu/home/viola/classes/gems-08/lectures/le15-18.pdf">Emanuele Viola&#8217;s Lecture notes</a>.</p>
<p>First step is to reduce the reachability question in <img src='http://s0.wp.com/latex.php?latex=%7BG%28%5Bn%5D%2CE%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G([n],E)}' title='{G([n],E)}' class='latex' /> between vertices to reachability question between large connected subsets <img src='http://s0.wp.com/latex.php?latex=%7BS%2CT+%5Csubset+%5Bn%5E%7B%27%7D%5D%2C+%7CS%7C%2C%7CT%7C+%5Cgeq+%5Cfrac%7B%7Cn%5E%7B%27%7D%7C%7D%7B3%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S,T &#92;subset [n^{&#039;}], |S|,|T| &#92;geq &#92;frac{|n^{&#039;}|}{3}}' title='{S,T &#92;subset [n^{&#039;}], |S|,|T| &#92;geq &#92;frac{|n^{&#039;}|}{3}}' class='latex' /> in some <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%7D%28%5Bn%5E%7B%27%7D%5D%2CE%5E%7B%27%7D%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;}([n^{&#039;}],E^{&#039;})}' title='{G^{&#039;}([n^{&#039;}],E^{&#039;})}' class='latex' /> which is <img src='http://s0.wp.com/latex.php?latex=%7B4%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{4}' title='{4}' class='latex' />-regular graph and has a self loop on every node.</p>
<blockquote><p><strong>Reduction 1:</strong>There is an algorithm which on input <img src='http://s0.wp.com/latex.php?latex=%7BG%28%5Bn%5D%2CE%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G([n],E)}' title='{G([n],E)}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7Bs%2Ct+%5Cin+%5Bn%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s,t &#92;in [n]}' title='{s,t &#92;in [n]}' class='latex' />, that uses only <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' /> spaces and outputs</p>
<ul>
<li> a <img src='http://s0.wp.com/latex.php?latex=%7B4%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{4}' title='{4}' class='latex' />-regular graph with a self-loop on all verices <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%7D%28%5Bn%5E%7B%27%7D%5D%2CE%5E%7B%27%7D%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;}([n^{&#039;}],E^{&#039;})}' title='{G^{&#039;}([n^{&#039;}],E^{&#039;})}' class='latex' /></li>
<li> <img src='http://s0.wp.com/latex.php?latex=%7BS%5E%7B%27%7D%2CT%5E%7B%27%7D+%5Csubset+%5Bn%5E%7B%27%7D%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S^{&#039;},T^{&#039;} &#92;subset [n^{&#039;}]}' title='{S^{&#039;},T^{&#039;} &#92;subset [n^{&#039;}]}' class='latex' />, such that <img src='http://s0.wp.com/latex.php?latex=%7B%7CS%5E%7B%27%7D%7C%2C%7CT%5E%7B%27%7D%7C%5Cgeq+n%5E%7B%27%7D%2F3%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{|S^{&#039;}|,|T^{&#039;}|&#92;geq n^{&#039;}/3}' title='{|S^{&#039;}|,|T^{&#039;}|&#92;geq n^{&#039;}/3}' class='latex' /></li>
<li> the induced subgraphs of <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;}}' title='{G^{&#039;}}' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=%7BS%5E%7B%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S^{&#039;}}' title='{S^{&#039;}}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7BT%5E%7B%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{T^{&#039;}}' title='{T^{&#039;}}' class='latex' /> are connected</li>
</ul>
<p>such that</p>
<p style="text-align:center;">there is a path between <img src='http://s0.wp.com/latex.php?latex=%7Bs%2Ct%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s,t}' title='{s,t}' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> <img src='http://s0.wp.com/latex.php?latex=%7B%5CLeftrightarrow%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Leftrightarrow}' title='{&#92;Leftrightarrow}' class='latex' /> there is path between <img src='http://s0.wp.com/latex.php?latex=%7BS%5E%7B%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S^{&#039;}}' title='{S^{&#039;}}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7BT%5E%7B%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{T^{&#039;}}' title='{T^{&#039;}}' class='latex' />.</p>
</blockquote>
<p>But this is actually not a simpler problem. The trouble I mentioned about <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> still remains valid here. But this makes the problem simple for spectral analysis.</p>
<p>Note that if you have a graph without self loops and then add self loops to all nodes, <img src='http://s0.wp.com/latex.php?latex=%7Bk%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{k}' title='{k}' class='latex' /> length paths in the latter corresponds to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cleq+k%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;leq k}' title='{&#92;leq k}' class='latex' /> length paths in the former(this is a many-one, surjective map). Another reason for doing this is to make the graph non-bipartite, which is required for the application of the next result.</p>
<p>Its a well known fact that the second eigen value of the adjacency matrix is related to how connected a graph is. Lower the eigen value, the graph is better connected. Following is how the second eigen value is defined.</p>
<blockquote><p><strong>Definition 1 :</strong></p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clambda%28G%29+%3A%3D+%5Cmax_%7B%7C%7Cx%7C%7C%3D1%2Cx+%5Cperp+%5Cmathbf%7B1%7D%7D+%7C%7CMx%7C%7C&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle &#92;lambda(G) := &#92;max_{||x||=1,x &#92;perp &#92;mathbf{1}} ||Mx||' title='&#92;displaystyle &#92;lambda(G) := &#92;max_{||x||=1,x &#92;perp &#92;mathbf{1}} ||Mx||' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=%7BM%3DA%2FD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M=A/D}' title='{M=A/D}' class='latex' /> the normailized adjacency matrix of <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathbf%7B1%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathbf{1}}' title='{&#92;mathbf{1}}' class='latex' /> is the all 1&#8242;s vector.</p></blockquote>
<p>For a complete graph <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda+%3D+0%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda = 0}' title='{&#92;lambda = 0}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda+%3D+1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda = 1}' title='{&#92;lambda = 1}' class='latex' /> if and only if the graph is disconnected or it is bipartite. For a connected undirected graph <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%29%5Cleq+1+-+%5Cfrac%7B1%7D%7Bn%5Ec%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G)&#92;leq 1 - &#92;frac{1}{n^c}}' title='{&#92;lambda(G)&#92;leq 1 - &#92;frac{1}{n^c}}' class='latex' />.</p>
<blockquote><p><strong>Lemma 1 :</strong> For any connected, non-bipartite undirected graph <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=%7Bn%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{n}' title='{n}' class='latex' /> vertices</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clambda%28G%29+%5Cleq+1-+%5Cfrac%7B1%7D%7Bn%5Ec%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle &#92;lambda(G) &#92;leq 1- &#92;frac{1}{n^c}' title='&#92;displaystyle &#92;lambda(G) &#92;leq 1- &#92;frac{1}{n^c}' class='latex' /></p>
<p>for some constant <img src='http://s0.wp.com/latex.php?latex=%7Bc%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{c}' title='{c}' class='latex' />.</p></blockquote>
<p>It is known that if <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G)}' title='{&#92;lambda(G)}' class='latex' /> is small, the number of edges between subsets of the vertex set is proportional to the product sizes of the subsets with a small additive term. This is known as the Expander mixing lemma. The following is a corollary of this lemma</p>
<blockquote><p><strong>Lemma 2 :</strong> For a <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' />-regular graph <img src='http://s0.wp.com/latex.php?latex=%7BG%28%5Bm%5D%2CE%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G([m],E)}' title='{G([m],E)}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7BS%2CT+%5Csubset+%5Bm%5D%2C%5C+%7CS%7C%2C%7CT%7C+%5Cgeq+m%2F3%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S,T &#92;subset [m],&#92; |S|,|T| &#92;geq m/3}' title='{S,T &#92;subset [m],&#92; |S|,|T| &#92;geq m/3}' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%29+%5Cleq+1%2F10%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G) &#92;leq 1/10}' title='{&#92;lambda(G) &#92;leq 1/10}' class='latex' /> then there is an edge between <img src='http://s0.wp.com/latex.php?latex=%7BS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S}' title='{S}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7BT%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{T}' title='{T}' class='latex' />.</p></blockquote>
<p>So Lemma 2 says that, if <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%5E%7B%27%7D%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G^{&#039;})}' title='{&#92;lambda(G^{&#039;})}' class='latex' /> is small, then we just need to check whether there is a direct edge to <img src='http://s0.wp.com/latex.php?latex=%7BT%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{T}' title='{T}' class='latex' />. This can be done provided the degree of nodes in <img src='http://s0.wp.com/latex.php?latex=%7BS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S}' title='{S}' class='latex' /> are not high ie exponential in <img src='http://s0.wp.com/latex.php?latex=%7Bn%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{n}' title='{n}' class='latex' />(can happen if there are multiple edges). The naive method to do here is to make a graph in which edges consists of length <img src='http://s0.wp.com/latex.php?latex=%7B2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{2}' title='{2}' class='latex' /> paths in orginal graph, called <img src='http://s0.wp.com/latex.php?latex=%7BG%5E2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^2}' title='{G^2}' class='latex' />. Its easy to prove that this will make the second eigen value <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%5E2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda^2}' title='{&#92;lambda^2}' class='latex' />. Doing this <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' /> times will make <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda+%5Cleq+1%2F10%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda &#92;leq 1/10}' title='{&#92;lambda &#92;leq 1/10}' class='latex' /> but the degree becomes <img src='http://s0.wp.com/latex.php?latex=%7BD%5E%7B2%5E%7BO%28%5Clog+n%29%7D%7D+%3D+D%5E%7BO%28n%29%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D^{2^{O(&#92;log n)}} = D^{O(n)}}' title='{D^{2^{O(&#92;log n)}} = D^{O(n)}}' class='latex' />. The above method actually corresponds to making a graph whose edges represent long paths in orginal graph as mentioned in the begining. Next is a method for reducing <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G)}' title='{&#92;lambda(G)}' class='latex' /> without blowing up the degree. This corresponds to considering only a small subset of the exponential number of paths possible and it will be proved that this is good enough.</p>
<blockquote><p><strong>Definition 2 :</strong></p>
<ul>
<li> <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> is said to be an <img src='http://s0.wp.com/latex.php?latex=%7B%28m%2CD%2C%5Clambda%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(m,D,&#92;lambda)}' title='{(m,D,&#92;lambda)}' class='latex' />-graph iff its vertex set is <img src='http://s0.wp.com/latex.php?latex=%7B%5Bm%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{[m]}' title='{[m]}' class='latex' />, it is <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' />-regular, and has <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%29+%5Cleq+%5Clambda%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G) &#92;leq &#92;lambda}' title='{&#92;lambda(G) &#92;leq &#92;lambda}' class='latex' />.</li>
<li> If <img src='http://s0.wp.com/latex.php?latex=%7BX%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{X}' title='{X}' class='latex' /> is an <img src='http://s0.wp.com/latex.php?latex=%7B%28m%2CD%2C%5Clambda%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(m,D,&#92;lambda)}' title='{(m,D,&#92;lambda)}' class='latex' />-graph and <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> is an <img src='http://s0.wp.com/latex.php?latex=%7B%28D%2Cd%2C%5Cmu%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(D,d,&#92;mu)}' title='{(D,d,&#92;mu)}' class='latex' />-graph then <img src='http://s0.wp.com/latex.php?latex=%7BX%5CcircledS+G%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{X&#92;circledS G}' title='{X&#92;circledS G}' class='latex' /> is a <img src='http://s0.wp.com/latex.php?latex=%7B%28m%2CDd%2C%5Clambda%5E%7B%27%7D%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(m,Dd,&#92;lambda^{&#039;})}' title='{(m,Dd,&#92;lambda^{&#039;})}' class='latex' />-graph. For <img src='http://s0.wp.com/latex.php?latex=%7Bv+%5Cin+%5Bm%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{v &#92;in [m]}' title='{v &#92;in [m]}' class='latex' /> the <img src='http://s0.wp.com/latex.php?latex=%7B%28a%2Cb%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(a,b)}' title='{(a,b)}' class='latex' />th neighbour of <img src='http://s0.wp.com/latex.php?latex=%7Bv%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{v}' title='{v}' class='latex' /> denoted by <img src='http://s0.wp.com/latex.php?latex=%7Bv%5B%28a%2Cb%29%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{v[(a,b)]}' title='{v[(a,b)]}' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%7B%28v%5Ba%5D%29%5Ba%5Bb%5D%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(v[a])[a[b]]}' title='{(v[a])[a[b]]}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%7Bv%5Ba%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{v[a]}' title='{v[a]}' class='latex' /> is the <img src='http://s0.wp.com/latex.php?latex=%7Ba%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a}' title='{a}' class='latex' />th neigbour of <img src='http://s0.wp.com/latex.php?latex=%7Bv%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{v}' title='{v}' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%7BX%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{X}' title='{X}' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%7Ba%5Bb%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a[b]}' title='{a[b]}' class='latex' /> is the <img src='http://s0.wp.com/latex.php?latex=%7Bb%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{b}' title='{b}' class='latex' />th neighbour of <img src='http://s0.wp.com/latex.php?latex=%7Ba%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a}' title='{a}' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> (according to the induced ordering on the neighbours due to the ordering on the vertex set).</li>
</ul>
</blockquote>
<p>The <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operation is similar to graph squaring but the number of neighbours becomes <img src='http://s0.wp.com/latex.php?latex=%7BdD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{dD}' title='{dD}' class='latex' /> instead of <img src='http://s0.wp.com/latex.php?latex=%7BD%5E2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D^2}' title='{D^2}' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%7BG%5E2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^2}' title='{G^2}' class='latex' />. This is especially good if the <img src='http://s0.wp.com/latex.php?latex=%7BD+%3E%3E+d%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D &gt;&gt; d}' title='{D &gt;&gt; d}' class='latex' />. The next lemma states that the <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operation also decreases the eigen value.</p>
<blockquote>
<p style="text-align:left;"><strong>Lemma 3 :</strong></p>
<p style="text-align:center;"><strong></strong><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clambda%28X+%5CcircledS+G%29+%5Cleq+%281-%5Cmu%29%5Clambda%5E2%2B%5Cmu&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle &#92;lambda(X &#92;circledS G) &#92;leq (1-&#92;mu)&#92;lambda^2+&#92;mu' title='&#92;displaystyle &#92;lambda(X &#92;circledS G) &#92;leq (1-&#92;mu)&#92;lambda^2+&#92;mu' class='latex' /></p>
</blockquote>
<p>Instead of considering all <img src='http://s0.wp.com/latex.php?latex=%7BD%5E2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D^2}' title='{D^2}' class='latex' /> vertices at distance <img src='http://s0.wp.com/latex.php?latex=%7B2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{2}' title='{2}' class='latex' />, we are considering only some <img src='http://s0.wp.com/latex.php?latex=%7BDd%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{Dd}' title='{Dd}' class='latex' /> neigbours. Now we will apply the <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operation <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' /> times to bring down <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28G%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(G)}' title='{&#92;lambda(G)}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cleq+1%2F10%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;leq 1/10}' title='{&#92;leq 1/10}' class='latex' /> and the degree increases to <img src='http://s0.wp.com/latex.php?latex=%7BDd%5E%7BO%28%5Clog+n%29%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{Dd^{O(&#92;log n)}}' title='{Dd^{O(&#92;log n)}}' class='latex' />. But after each <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operation, the degree increases, and so we need a larger <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> for doing the next <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operation. Next lemma say there exists a sequence of <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' />&#8216;s with small <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu}' title='{&#92;mu}' class='latex' />&#8216;s.</p>
<blockquote><p><strong>Lemma 4 :</strong> There exists a sequence of <img src='http://s0.wp.com/latex.php?latex=%7B%28d%5Ei%2Cd%2C%5Cmu%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(d^i,d,&#92;mu)}' title='{(d^i,d,&#92;mu)}' class='latex' />-graphs <img src='http://s0.wp.com/latex.php?latex=%7B%5C%7B+G_i+%5C%7D_%7Bi%5Cin+%5Cmathbb%7BN%7D%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;{ G_i &#92;}_{i&#92;in &#92;mathbb{N}}}' title='{&#92;{ G_i &#92;}_{i&#92;in &#92;mathbb{N}}}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%5Cleq+%5Cfrac%7B1%7D%7B100%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu &#92;leq &#92;frac{1}{100}}' title='{&#92;mu &#92;leq &#92;frac{1}{100}}' class='latex' />.</p></blockquote>
<blockquote><p><strong>Corollary</strong> If <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda+%3D+1+-+%5Cgamma+%5Cgeq+1%2F10%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda = 1 - &#92;gamma &#92;geq 1/10}' title='{&#92;lambda = 1 - &#92;gamma &#92;geq 1/10}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%5Cleq+1%2F100%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu &#92;leq 1/100}' title='{&#92;mu &#92;leq 1/100}' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%7B%5Clambda%28X%5CcircledS+G%29+%5Cleq+1+-+%5Cfrac%7B12%7D%7B11%7D%5Cgamma%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;lambda(X&#92;circledS G) &#92;leq 1 - &#92;frac{12}{11}&#92;gamma}' title='{&#92;lambda(X&#92;circledS G) &#92;leq 1 - &#92;frac{12}{11}&#92;gamma}' class='latex' />. So after <img src='http://s0.wp.com/latex.php?latex=%7Bt%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{t}' title='{t}' class='latex' /> <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operations,</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clambda%28X%5CcircledS%5Et+%5C%7BG_i%5C%7D_%7Bi%3D1%7D%5Et%29+%3D+%5Clambda%28%28%28X%5CcircledS+G_1%29%5Ccdots+%29%5CcircledS+G_t%29+%5Cleq+1+-+%5Cleft%28%5Cfrac%7B12%7D%7B11%7D%5Cright%29%5Et%5Cgamma&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle &#92;lambda(X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^t) = &#92;lambda(((X&#92;circledS G_1)&#92;cdots )&#92;circledS G_t) &#92;leq 1 - &#92;left(&#92;frac{12}{11}&#92;right)^t&#92;gamma' title='&#92;displaystyle &#92;lambda(X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^t) = &#92;lambda(((X&#92;circledS G_1)&#92;cdots )&#92;circledS G_t) &#92;leq 1 - &#92;left(&#92;frac{12}{11}&#92;right)^t&#92;gamma' class='latex' /></p>
<p>If <img src='http://s0.wp.com/latex.php?latex=%7B%5Cgamma+%5Cgeq+1%2Fn%5Ec%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;gamma &#92;geq 1/n^c}' title='{&#92;gamma &#92;geq 1/n^c}' class='latex' />, for <img src='http://s0.wp.com/latex.php?latex=%7Bt%3DO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{t=O(&#92;log n)}' title='{t=O(&#92;log n)}' class='latex' />,</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clambda%28X%5CcircledS%5Et+%5C%7BG_i%5C%7D_%7Bi%3D1%7D%5Et%29+%5Cleq+%5Cfrac%7B1%7D%7B10%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle &#92;lambda(X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^t) &#92;leq &#92;frac{1}{10}' title='&#92;displaystyle &#92;lambda(X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^t) &#92;leq &#92;frac{1}{10}' class='latex' /></p></blockquote>
<p>In the above corollary what is effectively done is that we have constructed a graph <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%27%7D%3DX%5CcircledS%5Et+%5C%7BG_i%5C%7D_%7Bi%3D1%7D%5Et%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;&#039;}=X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^t}' title='{G^{&#039;&#039;}=X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^t}' class='latex' /> , in which edges represent <img src='http://s0.wp.com/latex.php?latex=%7Bpoly%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{poly(n)}' title='{poly(n)}' class='latex' /> long walks in <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;}}' title='{G^{&#039;}}' class='latex' />. Clearly if all <img src='http://s0.wp.com/latex.php?latex=%7Bpoly%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{poly(n)}' title='{poly(n)}' class='latex' /> length paths were considered(<img src='http://s0.wp.com/latex.php?latex=%7B4%5E%7Bpoly%28n%29%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{4^{poly(n)}}' title='{4^{poly(n)}}' class='latex' />) as edges(this corresponds to squaring the graph many times), one cannot even find all the neighbours of a node in log space. So we consider only a carefully choosen sparse subset(<img src='http://s0.wp.com/latex.php?latex=%7Bpoly%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{poly(n)}' title='{poly(n)}' class='latex' />) by means of the <img src='http://s0.wp.com/latex.php?latex=%7B%5CcircledS%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;circledS}' title='{&#92;circledS}' class='latex' /> operation. Here is an example of the above procedure done on the board(my mobile has a bad camera, but the image should be viewable at the full size)</p>
<p><a href="http://girishvarma.files.wordpress.com/2009/12/reign2.jpg"><img class="aligncenter size-medium wp-image-245" title="Reign2" src="http://girishvarma.files.wordpress.com/2009/12/reign2.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a><a href="http://girishvarma.files.wordpress.com/2009/12/reign1.jpg"><br />
</a></p>
<p>Now for this to be done by a log space machine, the <img src='http://s0.wp.com/latex.php?latex=%7B%28a_1%2Ca_2%2C%5Ccdots+a_t%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(a_1,a_2,&#92;cdots a_t)}' title='{(a_1,a_2,&#92;cdots a_t)}' class='latex' />th neighbour (<img src='http://s0.wp.com/latex.php?latex=%7Ba_1+%5Cin+%5BD%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a_1 &#92;in [D]}' title='{a_1 &#92;in [D]}' class='latex' />, and all other <img src='http://s0.wp.com/latex.php?latex=%7Ba_i+%5Cin+%5Bd%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a_i &#92;in [d]}' title='{a_i &#92;in [d]}' class='latex' />)of any vertex in <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%27%7D%3DX%5CcircledS%5Et+%5C%7BG_i%5C%7D_%7Bi%3D1%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;&#039;}=X&#92;circledS^t &#92;{G_i&#92;}_{i=1}}' title='{G^{&#039;&#039;}=X&#92;circledS^t &#92;{G_i&#92;}_{i=1}}' class='latex' /> should be computable in log space. Each <img src='http://s0.wp.com/latex.php?latex=%7B%28a_1%2Ca_2%2C%5Ccdots+a_t%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(a_1,a_2,&#92;cdots a_t)}' title='{(a_1,a_2,&#92;cdots a_t)}' class='latex' />th neighbour is obtained by doing a walk of length <img src='http://s0.wp.com/latex.php?latex=2%5E%7Bpoly%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='2^{poly(n)}' title='2^{poly(n)}' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=X_0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_0' title='X_0' class='latex' />. This walk is specified by a sequence of choices of neighbours <img src='http://s0.wp.com/latex.php?latex=b_1%2Cb_2%2C%5Ccdots+b_%7B2%5E%7Bpoly%28n%29%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='b_1,b_2,&#92;cdots b_{2^{poly(n)}}' title='b_1,b_2,&#92;cdots b_{2^{poly(n)}}' class='latex' />. The following figure illustrates how to compute <img src='http://s0.wp.com/latex.php?latex=b_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='b_i' title='b_i' class='latex' /> given <img src='http://s0.wp.com/latex.php?latex=%7B%28a_1%2Ca_2%2C%5Ccdots+a_t%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(a_1,a_2,&#92;cdots a_t)}' title='{(a_1,a_2,&#92;cdots a_t)}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i' title='i' class='latex' />.</p>
<p><a href="http://girishvarma.files.wordpress.com/2009/12/reign1.jpg"><img class="aligncenter size-medium wp-image-243" title="Reign1" src="http://girishvarma.files.wordpress.com/2009/12/reign1.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>The <img src='http://s0.wp.com/latex.php?latex=%7B%28a_1%2Ca_2%2C%5Ccdots+a_t%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(a_1,a_2,&#92;cdots a_t)}' title='{(a_1,a_2,&#92;cdots a_t)}' class='latex' /> neighbour (<img src='http://s0.wp.com/latex.php?latex=%7Ba_1+%5Cin+%5BD%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a_1 &#92;in [D]}' title='{a_1 &#92;in [D]}' class='latex' />, and all other <img src='http://s0.wp.com/latex.php?latex=%7Ba_i+%5Cin+%5Bd%5D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{a_i &#92;in [d]}' title='{a_i &#92;in [d]}' class='latex' />)of any vertex in <img src='http://s0.wp.com/latex.php?latex=G%5E%7B%27%27%7D%3DX%5CcircledS%5Et+%5C%7BG_i%5C%7D_%7Bi%3D1%7D%5E%7Bt%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='G^{&#039;&#039;}=X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^{t}' title='G^{&#039;&#039;}=X&#92;circledS^t &#92;{G_i&#92;}_{i=1}^{t}' class='latex' /> is computable in space <img src='http://s0.wp.com/latex.php?latex=%7BO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{O(&#92;log n)}' title='{O(&#92;log n)}' class='latex' />, for <img src='http://s0.wp.com/latex.php?latex=%7Bt%3DO%28%5Clog+n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{t=O(&#92;log n)}' title='{t=O(&#92;log n)}' class='latex' />.</p>
<blockquote><p><strong>Lemma 5 : </strong> Reachability question in <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%7D%28V%5E%7B%27%7D%2CE%5E%7B%27%7D%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;}(V^{&#039;},E^{&#039;})}' title='{G^{&#039;}(V^{&#039;},E^{&#039;})}' class='latex' />(<img src='http://s0.wp.com/latex.php?latex=%7B4%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{4}' title='{4}' class='latex' /> regular) between large connected subsets <img src='http://s0.wp.com/latex.php?latex=%7BS%2CT+%5Csubset+V%5E%7B%27%7D%2C+%7CS%7C%2C%7CT%7C+%5Cgeq+%5Cfrac%7B%7CV%5E%7B%27%7D%7C%7D%7B3%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S,T &#92;subset V^{&#039;}, |S|,|T| &#92;geq &#92;frac{|V^{&#039;}|}{3}}' title='{S,T &#92;subset V^{&#039;}, |S|,|T| &#92;geq &#92;frac{|V^{&#039;}|}{3}}' class='latex' /> can be reduced in log space to the question whether there is an edge between large subsets <img src='http://s0.wp.com/latex.php?latex=%7BS%5E%7B%27%27%7D%2CT%5E%7B%27%27%7D%2C+%7CS%5E%7B%27%27%7D%7C%2C%7CT%5E%7B%27%27%7D%7C+%5Cgeq+%5Cfrac%7B%7CV%5E%7B%27%27%7D%7C%7D%7B3%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{S^{&#039;&#039;},T^{&#039;&#039;}, |S^{&#039;&#039;}|,|T^{&#039;&#039;}| &#92;geq &#92;frac{|V^{&#039;&#039;}|}{3}}' title='{S^{&#039;&#039;},T^{&#039;&#039;}, |S^{&#039;&#039;}|,|T^{&#039;&#039;}| &#92;geq &#92;frac{|V^{&#039;&#039;}|}{3}}' class='latex' /> in some graph <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7B%27%27%7D%28V%5E%7B%27%27%7D%2CE%5E%7B%27%27%7D%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{&#039;&#039;}(V^{&#039;&#039;},E^{&#039;&#039;})}' title='{G^{&#039;&#039;}(V^{&#039;&#039;},E^{&#039;&#039;})}' class='latex' /> in which neigbours of any vertex can be computed in log space.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=235&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/12/09/undirected-reachability-in-log-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2009/12/reign2.jpg?w=300" medium="image">
			<media:title type="html">Reign2</media:title>
		</media:content>

		<media:content url="http://girishvarma.files.wordpress.com/2009/12/reign1.jpg?w=300" medium="image">
			<media:title type="html">Reign1</media:title>
		</media:content>
	</item>
		<item>
		<title>Simpler proof for Chernoff Bound using Bernstein&#8217;s Trick</title>
		<link>http://girishvarma.wordpress.com/2009/12/03/simpler-proof-for-chernoff-bound-using-bernsteins-trick/</link>
		<comments>http://girishvarma.wordpress.com/2009/12/03/simpler-proof-for-chernoff-bound-using-bernsteins-trick/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 19:10:26 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=228</guid>
		<description><![CDATA[Kudos to Jaikumar who pointed this out in his Information Theory Class, and Nutan who made me work this out in an assignment. Chernoff bound is by far the most used result in randomized algorithms. But there are many different versions of it, with very ugly proofs involving playing with inequalities relating to functions. Here [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=228&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>Kudos to <a href="http://www.tcs.tifr.res.in/~jaikumar/">Jaikumar</a> who pointed this out in his Information Theory Class, and Nutan who made me work this out in an assignment.</em></p>
<p>Chernoff bound is by far the most used result in randomized algorithms. But there are many different versions of it, with very ugly proofs involving playing with inequalities relating to functions. Here is a simple proof for the additive version of the same.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Coverline%7BY_i%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;overline{Y_i}' title='&#92;overline{Y_i}' class='latex' />&#8216;s are iid 0-1 random variables with expectation <img src='http://s0.wp.com/latex.php?latex=%5Cdelta&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;delta' title='&#92;delta' class='latex' />. Then</p>
<p><img src="http://www.codecogs.com/gif.latex?%5CPr%5Cleft%5B%5Csum_%7Bi%3D1%7D%5Et%20%5Coverline%7BY%7D_i%20%5Cgeq%20%5Cell%20%5Cright%5D%20%3D%20%5Csum_%7Bi%3D%5Cell%7D%5Et%20%7Bt%20%5Cchoose%20i%7D%5Cdelta%5Ei%20%281-%5Cdelta%29%5E%7Bt-i%7D%20%5Cleq%20%5Csum_%7Bi%3D%5Cell%7D%5Et%20%7Bt%20%5Cchoose%20i%7D%5Cdelta%5Ei%20%281-%5Cdelta%29%5E%7Bt-i%7D%20x%5E%7Bi-%5Cell%7D" alt="\Pr\left[\sum_{i=1}^t \overline{Y}_i \geq \ell \right] = \sum_{i=\ell}^t {t \choose i}\delta^i (1-\delta)^{t-i} \leq \sum_{i=\ell}^t {t \choose i}\delta^i (1-\delta)^{t-i} x^{i-\ell}" /> for all <img src="http://meyer.fm/cgi-bin/mathtex.cgi?x%20%5Cgeq%201" alt="x \geq 1" /></p>
<p><img src="http://www.codecogs.com/gif.latex?%5Cleq%20%5Csum_%7Bi%3D0%7D%5Et%20%7Bt%20%5Cchoose%20i%7D%5Cdelta%5Ei%20%281-%5Cdelta%29%5E%7Bt-i%7D%20x%5E%7Bi-%5Cell%7D%20%3D%20x%5E%7B-%5Cell%7D%281-%5Cdelta%2B%5Cdelta%20x%29%5Et%20%3D%20x%5E%7B-%5Cell%7D%281%2B%5Cdelta%20%28x-1%29%29%5Et%20" alt="\leq \sum_{i=0}^t {t \choose i}\delta^i (1-\delta)^{t-i} x^{i-\ell} = x^{-\ell}(1-\delta+\delta x)^t = x^{-\ell}(1+\delta (x-1))^t " /></p>
<p>This is the Bernstein&#8217;s trick. That is multiplying by <img src='http://s0.wp.com/latex.php?latex=x%5E%7Bi-%5Cell%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x^{i-&#92;ell}' title='x^{i-&#92;ell}' class='latex' /> and then doing the full summation starting from 0. For terms in the full summation from 0 to <img src='http://s0.wp.com/latex.php?latex=%5Cell-1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;ell-1' title='&#92;ell-1' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=i-%5Cell+%3C+0+&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i-&#92;ell &lt; 0 ' title='i-&#92;ell &lt; 0 ' class='latex' /> and we are multiplying by a small quantity. For terms <img src='http://s0.wp.com/latex.php?latex=%5Cell&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;ell' title='&#92;ell' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='t' title='t' class='latex' />, we are multiplying by a large quantiy. But if <img src='http://s0.wp.com/latex.php?latex=%5Cell+%3E%3E+t%5Cdelta&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;ell &gt;&gt; t&#92;delta' title='&#92;ell &gt;&gt; t&#92;delta' class='latex' />, what we hope is these terms are extremely small and even multiplying with <img src='http://s0.wp.com/latex.php?latex=x%5E%7Bi-%5Cell%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x^{i-&#92;ell}' title='x^{i-&#92;ell}' class='latex' /> will not increase them by much. And both these facts hopefully give a good bound. Now we choose an <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='x' title='x' class='latex' /> minimizing above.</p>
<p>Above is minimized for <img src="http://www.codecogs.com/gif.latex?x%3D%20%5Cfrac%7B%5Cell%20%281-%20%5Cdelta%29%7D%20%7B%28t-%5Cell%20%29%20%5Cdelta%20%7D" alt="x= \frac{\ell (1- \delta)} {(t-\ell ) \delta }" /> , for <img src="http://www.codecogs.com/gif.latex?%5Cell%20%3D%20t%2F2" alt="\ell = t/2" /> , this is <img src="http://www.codecogs.com/gif.latex?%5Cfrac%7B1-%5Cdelta%20%7D%7B%5Cdelta%20%7D%20%3E%201" alt="\frac{1-\delta }{\delta } &gt; 1" /> for <img src="http://www.codecogs.com/gif.latex?%5Cdelta%20%3C%201%2F2" alt="\delta &lt; 1/2" /> .</p>
<p>Then <img src="http://www.codecogs.com/gif.latex?x%5E%7B-%5Cell%20%7D%281%2B%5Cdelta%20%28x-1%29%29%5Et%20%3D%20%28%5Cfrac%7B1-%5Cdelta%20%7D%7B%5Cdelta%20%7D%29%5E%7B-t%2F2%7D%20%282-2%5Cdelta%20%29%5Et%20%3D%202%5Et%20%28%5Cdelta%20%281-%5Cdelta%20%29%29%5E%7Bt%2F2%7D" alt="x^{-\ell }(1+\delta (x-1))^t = (\frac{1-\delta }{\delta })^{-t/2} (2-2\delta )^t = 2^t (\delta (1-\delta ))^{t/2}" /><img src="http://www.codecogs.com/gif.latex?%3De%5E%7Bt%5Cleft%28%5Clog%202%20-%20%5Cfrac%7B%5Clog%20%281%2F%5Cdelta%20%28%201-%5Cdelta%29%29%7D%7B2%7D%5Cright%29%7D" alt="=e^{t\left(\log 2 - \frac{\log (1/\delta ( 1-\delta))}{2}\right)}" /></p>
<p>For <img src="http://www.codecogs.com/gif.latex?%5Cdelta%20%3C%201%2F2" alt="\delta &lt; 1/2" /> , <img src="http://www.codecogs.com/gif.latex?%5Clog%20%28%5Cfrac%7B1%7D%7B%5Cdelta%20%281-%5Cdelta%20%29%7D%29%20%3E%202%5Clog%202" alt="\log (\frac{1}{\delta (1-\delta )}) &gt; 2\log 2" /> .</p>
<p>So the coefficient of <img src="http://www.codecogs.com/gif.latex?t" alt="t" /> in the exponent in the formula above is <img src="http://www.codecogs.com/gif.latex?%5Cleft%28%5Clog%202%20-%20%5Cfrac%7B%5Clog%20%281%2F%5Cdelta%20%28%201-%5Cdelta%20%29%29%7D%7B2%7D%5Cright%29%20%3D%20-c%20%3C0" alt="\left(\log 2 - \frac{\log (1/\delta ( 1-\delta ))}{2}\right) = -c &lt;0" /> .</p>
<p>Hence <img src="http://www.codecogs.com/gif.latex?%5CPr%5Cleft%5B%5Csum_%7Bi%3D1%7D%5Et%20%5Coverline%7BY%7D_i%20%5Cgeq%20t%2F2%20%5Cright%5D%20%5Cleq%20e%5E%7B-ct%7D" alt="\Pr\left[\sum_{i=1}^t \overline{Y}_i \geq t/2 \right] \leq e^{-ct}" />.</p>
<h2>If you want to see the longer ugly proof, here it is:</h2>
<p>The usual proof for Chernoff bound(see <a href="http://en.wikipedia.org/wiki/Chernoff_bound#Theorem_for_additive_form_.28absolute_error.29">this</a>) gives</p>
<p><img src="http://meyer.fm/cgi-bin/mathtex.cgi?%20%5CPr%5Cleft[%5Cfrac%7B1%7D%7Bt%7D%5Csum%20Y_i%20%5Cge%20p%20+%20%5Cgamma%20%5Cright]%20%5Cle%20e%5E%7B-D%28p+%5Cgamma%7C%7C%20p%29%20t%7D" alt=" \Pr\left[\frac{1}{t}\sum Y_i \ge p + \gamma \right] \le e^{-D(p+\gamma|| p) t}" /> where <img src="http://meyer.fm/cgi-bin/mathtex.cgi?D%28p+%5Cgamma%7C%7C%20p%29" alt="D(p+\gamma|| p)" /> is the binary relative entropy, <img src="http://meyer.fm/cgi-bin/mathtex.cgi?p=E[Y_i]" alt="p=E[Y_i]" /> <img src="http://meyer.fm/cgi-bin/mathtex.cgi?%3C%201/2" alt="&lt; 1/2" />.</p>
<p>If i take <img src="http://meyer.fm/cgi-bin/mathtex.cgi?f%28x%29%20=%20D%28p+x%7C%7C%20p%29" alt="f(x) = D(p+x|| p)" />, then <img src="http://meyer.fm/cgi-bin/mathtex.cgi?f%280%29=0=f%5E%7B%27%7D%280%29=%5Clog%28%5Cfrac%7Bp+0%7D%7Bp%7D%29%20+%20%5Clog%28%5Cfrac%7B1-p-0%7D%7B1-p%7D%29" alt="f(0)=0=f^{'}(0)=\log(\frac{p+0}{p}) + \log(\frac{1-p-0}{1-p})" /> and <img src="http://meyer.fm/cgi-bin/mathtex.cgi?f%5E%7B%27%27%7D%28x%29=1/%28p+x%29%281-p-x%29%20%5Cgeq%204" alt="f^{''}(x)=1/(p+x)(1-p-x) \geq 4" />(sum of 2 numbers in the denominator are 1).</p>
<p>So Taylor&#8217;s Theorem says that  <img src="http://meyer.fm/cgi-bin/mathtex.cgi?%5Cexists%20%5Ceta%5C%20st%5C%20f%28x%29%20%5Cgeq%20f%280%29%20+%20f%5E%7B%27%7D%280%29x%20+%20f%5E%7B%27%27%7D%28%5Ceta%29%5Cfrac%7Bx%5E2%7D%7B2%21%7D" alt="\exists \eta\ st\ f(x) \geq f(0) + f^{'}(0)x + f^{''}(\eta)\frac{x^2}{2!}" /> for nice functions.</p>
<p>Therefore <img src="http://meyer.fm/cgi-bin/mathtex.cgi?f%28x%29%20%5Cgeq%202x%5E2" alt="f(x) \geq 2x^2" /> which gives</p>
<p><img src="http://meyer.fm/cgi-bin/mathtex.cgi?Pr%5Cleft[%5Cfrac%7B1%7D%7Bt%7D%20%5Csum%20Y_i%20%20%5Cge%20p+%20%5Cgamma%20%5Cright]%20%5Cle%20e%5E%7B-%5Cgamma%5E2%20t%7D" alt="Pr\left[\frac{1}{t} \sum Y_i  \ge p+ \gamma \right] \le e^{-\gamma^2 t}" /></p>
<p>Now plug complement <img src="http://meyer.fm/cgi-bin/mathtex.cgi?Y_i" alt="Y_i" /> in the original proof as the <img src="http://meyer.fm/cgi-bin/mathtex.cgi?Y_i" alt="Y_i" /> here. Then <img src="http://meyer.fm/cgi-bin/mathtex.cgi?%5Cgamma%20=%201/2%20-%20%5Cdelta" alt="\gamma = 1/2 - \delta" /> and <img src="http://meyer.fm/cgi-bin/mathtex.cgi?p=%20%5Cdelta" alt="p= \delta" />. This will give you the expression</p>
<p><img src="http://meyer.fm/cgi-bin/mathtex.cgi?%5CPr%5Cleft[%5Csum%20%5Coverline%7BY%7D_i%20%5Cgeq%20t/2%20%5Cright]%20%5Cleq%20e%5E%7B2t%281/2%20-%20%5Cdelta%29%5E2%7D" alt="\Pr\left[\sum \overline{Y}_i \geq t/2 \right] \leq e^{2t(1/2 - \delta)^2}" /></p>
<h2>References</h2>
<p>See this link if you are confused about the n different chernoff bounds. (http://www.cs.berkeley.edu/~jordan/courses/174-spring02/recitation/lec10.pdf)<br />
There is a similar bound for hyper-geometric distributions called Chavatal&#8217;s Bound. <a href="ansuz.sooke.bc.ca/professional/hypergeometric.pdf">Here</a> you can find a nice writeup on it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=228&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/12/03/simpler-proof-for-chernoff-bound-using-bernsteins-trick/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5CPr%5Cleft%5B%5Csum_%7Bi%3D1%7D%5Et%20%5Coverline%7BY%7D_i%20%5Cgeq%20%5Cell%20%5Cright%5D%20%3D%20%5Csum_%7Bi%3D%5Cell%7D%5Et%20%7Bt%20%5Cchoose%20i%7D%5Cdelta%5Ei%20%281-%5Cdelta%29%5E%7Bt-i%7D%20%5Cleq%20%5Csum_%7Bi%3D%5Cell%7D%5Et%20%7Bt%20%5Cchoose%20i%7D%5Cdelta%5Ei%20%281-%5Cdelta%29%5E%7Bt-i%7D%20x%5E%7Bi-%5Cell%7D" medium="image">
			<media:title type="html">\Pr\left[\sum_{i=1}^t \overline{Y}_i \geq \ell \right] = \sum_{i=\ell}^t {t \choose i}\delta^i (1-\delta)^{t-i} \leq \sum_{i=\ell}^t {t \choose i}\delta^i (1-\delta)^{t-i} x^{i-\ell}</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?x%20%5Cgeq%201" medium="image">
			<media:title type="html">x \geq 1</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Cleq%20%5Csum_%7Bi%3D0%7D%5Et%20%7Bt%20%5Cchoose%20i%7D%5Cdelta%5Ei%20%281-%5Cdelta%29%5E%7Bt-i%7D%20x%5E%7Bi-%5Cell%7D%20%3D%20x%5E%7B-%5Cell%7D%281-%5Cdelta%2B%5Cdelta%20x%29%5Et%20%3D%20x%5E%7B-%5Cell%7D%281%2B%5Cdelta%20%28x-1%29%29%5Et%20" medium="image">
			<media:title type="html">\leq \sum_{i=0}^t {t \choose i}\delta^i (1-\delta)^{t-i} x^{i-\ell} = x^{-\ell}(1-\delta+\delta x)^t = x^{-\ell}(1+\delta (x-1))^t </media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?x%3D%20%5Cfrac%7B%5Cell%20%281-%20%5Cdelta%29%7D%20%7B%28t-%5Cell%20%29%20%5Cdelta%20%7D" medium="image">
			<media:title type="html">x= \frac{\ell (1- \delta)} {(t-\ell ) \delta }</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Cell%20%3D%20t%2F2" medium="image">
			<media:title type="html">\ell = t/2</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Cfrac%7B1-%5Cdelta%20%7D%7B%5Cdelta%20%7D%20%3E%201" medium="image">
			<media:title type="html">\frac{1-\delta }{\delta } &#62; 1</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Cdelta%20%3C%201%2F2" medium="image">
			<media:title type="html">\delta &#60; 1/2</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?x%5E%7B-%5Cell%20%7D%281%2B%5Cdelta%20%28x-1%29%29%5Et%20%3D%20%28%5Cfrac%7B1-%5Cdelta%20%7D%7B%5Cdelta%20%7D%29%5E%7B-t%2F2%7D%20%282-2%5Cdelta%20%29%5Et%20%3D%202%5Et%20%28%5Cdelta%20%281-%5Cdelta%20%29%29%5E%7Bt%2F2%7D" medium="image">
			<media:title type="html">x^{-\ell }(1+\delta (x-1))^t = (\frac{1-\delta }{\delta })^{-t/2} (2-2\delta )^t = 2^t (\delta (1-\delta ))^{t/2}</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%3De%5E%7Bt%5Cleft%28%5Clog%202%20-%20%5Cfrac%7B%5Clog%20%281%2F%5Cdelta%20%28%201-%5Cdelta%29%29%7D%7B2%7D%5Cright%29%7D" medium="image">
			<media:title type="html">=e^{t\left(\log 2 - \frac{\log (1/\delta ( 1-\delta))}{2}\right)}</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Cdelta%20%3C%201%2F2" medium="image">
			<media:title type="html">\delta &#60; 1/2</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Clog%20%28%5Cfrac%7B1%7D%7B%5Cdelta%20%281-%5Cdelta%20%29%7D%29%20%3E%202%5Clog%202" medium="image">
			<media:title type="html">\log (\frac{1}{\delta (1-\delta )}) &#62; 2\log 2</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?t" medium="image">
			<media:title type="html">t</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5Cleft%28%5Clog%202%20-%20%5Cfrac%7B%5Clog%20%281%2F%5Cdelta%20%28%201-%5Cdelta%20%29%29%7D%7B2%7D%5Cright%29%20%3D%20-c%20%3C0" medium="image">
			<media:title type="html">\left(\log 2 - \frac{\log (1/\delta ( 1-\delta ))}{2}\right) = -c &#60;0</media:title>
		</media:content>

		<media:content url="http://www.codecogs.com/gif.latex?%5CPr%5Cleft%5B%5Csum_%7Bi%3D1%7D%5Et%20%5Coverline%7BY%7D_i%20%5Cgeq%20t%2F2%20%5Cright%5D%20%5Cleq%20e%5E%7B-ct%7D" medium="image">
			<media:title type="html">\Pr\left[\sum_{i=1}^t \overline{Y}_i \geq t/2 \right] \leq e^{-ct}</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?%20%5CPr%5Cleft[%5Cfrac%7B1%7D%7Bt%7D%5Csum%20Y_i%20%5Cge%20p%20+%20%5Cgamma%20%5Cright]%20%5Cle%20e%5E%7B-D%28p+%5Cgamma%7C%7C%20p%29%20t%7D" medium="image">
			<media:title type="html"> \Pr\left[\frac{1}{t}\sum Y_i \ge p + \gamma \right] \le e^{-D(p+\gamma&#124;&#124; p) t}</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?D%28p+%5Cgamma%7C%7C%20p%29" medium="image">
			<media:title type="html">D(p+\gamma&#124;&#124; p)</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?p=E[Y_i]" medium="image">
			<media:title type="html">p=E[Y_i]</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?%3C%201/2" medium="image">
			<media:title type="html">&#60; 1/2</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?f%28x%29%20=%20D%28p+x%7C%7C%20p%29" medium="image">
			<media:title type="html">f(x) = D(p+x&#124;&#124; p)</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?f%280%29=0=f%5E%7B%27%7D%280%29=%5Clog%28%5Cfrac%7Bp+0%7D%7Bp%7D%29%20+%20%5Clog%28%5Cfrac%7B1-p-0%7D%7B1-p%7D%29" medium="image">
			<media:title type="html">f(0)=0=f^{'}(0)=\log(\frac{p+0}{p}) + \log(\frac{1-p-0}{1-p})</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?f%5E%7B%27%27%7D%28x%29=1/%28p+x%29%281-p-x%29%20%5Cgeq%204" medium="image">
			<media:title type="html">f^{''}(x)=1/(p+x)(1-p-x) \geq 4</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?%5Cexists%20%5Ceta%5C%20st%5C%20f%28x%29%20%5Cgeq%20f%280%29%20+%20f%5E%7B%27%7D%280%29x%20+%20f%5E%7B%27%27%7D%28%5Ceta%29%5Cfrac%7Bx%5E2%7D%7B2%21%7D" medium="image">
			<media:title type="html">\exists \eta\ st\ f(x) \geq f(0) + f^{'}(0)x + f^{''}(\eta)\frac{x^2}{2!}</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?f%28x%29%20%5Cgeq%202x%5E2" medium="image">
			<media:title type="html">f(x) \geq 2x^2</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?Pr%5Cleft[%5Cfrac%7B1%7D%7Bt%7D%20%5Csum%20Y_i%20%20%5Cge%20p+%20%5Cgamma%20%5Cright]%20%5Cle%20e%5E%7B-%5Cgamma%5E2%20t%7D" medium="image">
			<media:title type="html">Pr\left[\frac{1}{t} \sum Y_i  \ge p+ \gamma \right] \le e^{-\gamma^2 t}</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?Y_i" medium="image">
			<media:title type="html">Y_i</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?Y_i" medium="image">
			<media:title type="html">Y_i</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?%5Cgamma%20=%201/2%20-%20%5Cdelta" medium="image">
			<media:title type="html">\gamma = 1/2 - \delta</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?p=%20%5Cdelta" medium="image">
			<media:title type="html">p= \delta</media:title>
		</media:content>

		<media:content url="http://meyer.fm/cgi-bin/mathtex.cgi?%5CPr%5Cleft[%5Csum%20%5Coverline%7BY%7D_i%20%5Cgeq%20t/2%20%5Cright]%20%5Cleq%20e%5E%7B2t%281/2%20-%20%5Cdelta%29%5E2%7D" medium="image">
			<media:title type="html">\Pr\left[\sum \overline{Y}_i \geq t/2 \right] \leq e^{2t(1/2 - \delta)^2}</media:title>
		</media:content>
	</item>
		<item>
		<title>My Wordle</title>
		<link>http://girishvarma.wordpress.com/2009/11/17/my-wordle/</link>
		<comments>http://girishvarma.wordpress.com/2009/11/17/my-wordle/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 06:11:09 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=226</guid>
		<description><![CDATA[Go to http://www.wordle.net/create if you want to create one or your blog. It just extracts the rss feeds and make this images.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=226&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table style="width:auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/KcH9zpw98XFwNzMaIR2NBg?authkey=Gv1sRgCIyO5fn1id6w8wE&amp;feat=embedwebsite"><img src="http://lh6.ggpht.com/_7ID-Cnc5x30/SwI96Qge0VI/AAAAAAAADuQ/ny5-_3-uuPo/s800/Screenshot.jpg" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Go to http://www.wordle.net/create if you want to create one or your blog. It just extracts the rss feeds and make this images.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=226&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/11/17/my-wordle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_7ID-Cnc5x30/SwI96Qge0VI/AAAAAAAADuQ/ny5-_3-uuPo/s800/Screenshot.jpg" medium="image" />
	</item>
		<item>
		<title>Protests are On : Guess for What?</title>
		<link>http://girishvarma.wordpress.com/2009/11/05/protests-are-on-guess-for-what/</link>
		<comments>http://girishvarma.wordpress.com/2009/11/05/protests-are-on-guess-for-what/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 19:33:22 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[opinions]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/2009/11/05/protests-are-on-guess-for-what/</guid>
		<description><![CDATA[TIFR research scholars are on protest mode, to be exact peaceful protest mode. The reason being the obvious one &#8220;we want a stipend hike&#8221;. The latest pay commision reccomendations are being implemented and has increased the salaries across the board for faculties and staff in educational institutes. Research scholars not being considered as employees but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=222&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>TIFR research scholars are on protest mode, to be exact peaceful protest mode. The reason being the obvious one &#8220;we want a stipend hike&#8221;. The latest pay commision reccomendations are being implemented and has increased the salaries across the board for faculties and staff in educational institutes. Research scholars not being considered as employees but rather students, have been ignored. The problem is atleast in TIFR, research scholars are supposed to be &#8220;highly talented and motivated&#8221;(to qoute the admission brochure) and some surely are. But how is TIFR going to attract these &#8220;highly talented and motivated&#8221; people if it doesn&#8217;t provide competitive stipends? Unforunately the people who are supposed to decide on these matters lives in a office far away putting tick and cross marks on files. He doesn&#8217;t understand the problem, for him the question is how to minimize the spending in this part so that spending in some other popular part is increased.<br />
The director understands the problem but is left comletely powerless in this matter. But he stil have to endure the frustration of the students. Even some faculty believes that in the cause. But if the frustration overflows the goodwill might be lost.</p>
<p>Being a beneficiary I offcourse support the protest. But instead of just demanding a stipend hike, a broader goal must be set. That is to remove the innefficency in the system. This would ensure more support to the cause(even from within the high ranks of the system) and will hopefully give a permanent solution. But some narrow minded people say why care about what happens after we leave the institute and all I want is my stipend to be hiked as soon as possible.</p>
<br /> Tagged: life, opinions, politics <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=222&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/11/05/protests-are-on-guess-for-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>
	</item>
		<item>
		<title>The Secretary Problem</title>
		<link>http://girishvarma.wordpress.com/2009/11/03/the-secretary-problem/</link>
		<comments>http://girishvarma.wordpress.com/2009/11/03/the-secretary-problem/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:07:34 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/?p=206</guid>
		<description><![CDATA[Suppose a secretary has to call candidates for a job interview. She can choose to call them in a random order. Assuming she does so, and the situation is take him or loose him(ie after having interviewed a person, she has to immediately tell him whether she will take him or not). An additional assumption is that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=206&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose a secretary has to call <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='n' title='n' class='latex' /> candidates for a job interview. She can choose to call them in a random order. Assuming she does so, and the situation is take him or loose him(ie after having interviewed a person, she has to immediately tell him whether she will take him or not). An additional assumption is that all candidates will have distinct interview scores. So the question is &#8220;What is her best strategy?&#8221;(ie the one that maximizes the probability that she gets the candidate with the best score).</p>
<p>One strategy is to interview half the people, find the best score and accept the next guy with a higher score. So if the best guy is in the second half and second best guy is in the first half which happens with probability <img src='http://s0.wp.com/latex.php?latex=1%2F4&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1/4' title='1/4' class='latex' />, she will be able to get the best candidate. One could generalize the above and decide to find the best score among the first <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='k' title='k' class='latex' /> candidates and choose the next guy who beats this score. With some asymptotic analysis, the probability of finding the best guy comes to <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cln%281%2F+%5Calpha%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;alpha&#92;ln(1/ &#92;alpha)' title='&#92;alpha&#92;ln(1/ &#92;alpha)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%3D+k%2Fn&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;alpha = k/n' title='&#92;alpha = k/n' class='latex' />.(see http://en.wikipedia.org/wiki/Secretary_problem#Deriving_the_optimal_policy). This is maximized when <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%3D+1%2Fe&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;alpha = 1/e' title='&#92;alpha = 1/e' class='latex' /> giving a success probability of <img src='http://s0.wp.com/latex.php?latex=1%2Fe&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1/e' title='1/e' class='latex' /> . It can be proved that this is the best that can be achieved.</p>
<p><span style="background-color:#ffffff;">The probabilists way of stating this is a sequence of random variables <img src='http://s0.wp.com/latex.php?latex=X_1+%5Ccdots+X_n&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_1 &#92;cdots X_n' title='X_1 &#92;cdots X_n' class='latex' /> of scores. Since all candidates have different scores, <img src='http://s0.wp.com/latex.php?latex=X_1+%5Ccdots+X_n&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_1 &#92;cdots X_n' title='X_1 &#92;cdots X_n' class='latex' /> is a random permutation of the scores(as we assumed that she calls candidates in a random order, and lets also assume that the scores are independent of what time they are taken). To make things slightly more complicated, let <img src='http://s0.wp.com/latex.php?latex=Y_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_i' title='Y_i' class='latex' /> be the indicator random variable for <img src='http://s0.wp.com/latex.php?latex=X_i+%3C+%5Cmax%28X_1%5Ccdots+X_%7Bi-1%7D%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_i &lt; &#92;max(X_1&#92;cdots X_{i-1})' title='X_i &lt; &#92;max(X_1&#92;cdots X_{i-1})' class='latex' />.  After having seen <img src='http://s0.wp.com/latex.php?latex=X_1+%5Ccdots+X_%7Bi-1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_1 &#92;cdots X_{i-1}' title='X_1 &#92;cdots X_{i-1}' class='latex' />(these form <img src='http://s0.wp.com/latex.php?latex=i-1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i-1' title='i-1' class='latex' /> distinct numbers with <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i' title='i' class='latex' /> gaps between them),  <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_i' title='X_i' class='latex' /> is equally likely to be in anyone of  the gaps. Therefore</span></p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5CPr%5BY_i+%3D+1%5D+%3D+%5CPr%5BX_i+%3C+%5Cmax%28X_1%5Ccdots+X_%7Bi-1%7D%29%5D++%3D+%5Cfrac%7B1%7D%7Bi%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;Pr[Y_i = 1] = &#92;Pr[X_i &lt; &#92;max(X_1&#92;cdots X_{i-1})]  = &#92;frac{1}{i}' title='&#92;Pr[Y_i = 1] = &#92;Pr[X_i &lt; &#92;max(X_1&#92;cdots X_{i-1})]  = &#92;frac{1}{i}' class='latex' /></p>
<blockquote>
<p style="text-align:left;"><strong>Claim : </strong><img src='http://s0.wp.com/latex.php?latex=Y_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_i' title='Y_i' class='latex' /> is independent of <img src='http://s0.wp.com/latex.php?latex=Y_1+%5Ccdots+Y_%7Bi-1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_1 &#92;cdots Y_{i-1}' title='Y_1 &#92;cdots Y_{i-1}' class='latex' /></p>
</blockquote>
<p><strong>Proof :</strong> Following the logic which gave the probability above, whether <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_i' title='X_i' class='latex' /> is the maximum of whats seen till now doesnt depend on the ordering of <img src='http://s0.wp.com/latex.php?latex=X_1+%5Ccdots+X_%7Bi-1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_1 &#92;cdots X_{i-1}' title='X_1 &#92;cdots X_{i-1}' class='latex' />.</p>
<p>We want to know what the best stratergy is.</p>
<p>Suppose we have already seen <img src='http://s0.wp.com/latex.php?latex=X_1+%5Ccdots+X_n&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_1 &#92;cdots X_n' title='X_1 &#92;cdots X_n' class='latex' />, we have no option but to choose the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='n' title='n' class='latex' />th candidate.</p>
<p style="padding-left:30px;">If <img src='http://s0.wp.com/latex.php?latex=Y_n+%3D+1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_n = 1' title='Y_n = 1' class='latex' />, with probability 1 we have the best guy, else its 0. For later purposes lets define <img src='http://s0.wp.com/latex.php?latex=V%28n%2C1%29%3D1%2CV%28n%2C0%29%3D0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(n,1)=1,V(n,0)=0' title='V(n,1)=1,V(n,0)=0' class='latex' /></p>
<p>Now again Whats the best strategy to follow once we have seen <img src='http://s0.wp.com/latex.php?latex=X_1+%5Ccdots+X_%7Bn-1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='X_1 &#92;cdots X_{n-1}' title='X_1 &#92;cdots X_{n-1}' class='latex' />.</p>
<p style="padding-left:30px;">If <img src='http://s0.wp.com/latex.php?latex=Y_n+%3D+1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_n = 1' title='Y_n = 1' class='latex' />,</p>
<ol>
<li><span style="background-color:#ffffff;">with probability <img src='http://s0.wp.com/latex.php?latex=n-1%2Fn&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='n-1/n' title='n-1/n' class='latex' /> we have the best guy</span></li>
<li><span style="background-color:#ffffff;">if we skip this guy with probability <img src='http://s0.wp.com/latex.php?latex=%5CPr%5BY_n%3D1%7CY_%7Bn-1%7D%3D1%5D%5Ctimes+1+%2B+%5CPr%5BY_n%3D0%7CY_%7Bn-1%7D%3D1%5D%5Ctimes+0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;Pr[Y_n=1|Y_{n-1}=1]&#92;times 1 + &#92;Pr[Y_n=0|Y_{n-1}=1]&#92;times 0' title='&#92;Pr[Y_n=1|Y_{n-1}=1]&#92;times 1 + &#92;Pr[Y_n=0|Y_{n-1}=1]&#92;times 0' class='latex' /> it will be found in the next step if the best strategy is followed from next step.</span></li>
</ol>
<p>So we can compute these 2  values and choose the option with higher probability.  Let <img src='http://s0.wp.com/latex.php?latex=V%28n-1%2C1%29+%3D+%5Cmax+&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(n-1,1) = &#92;max ' title='V(n-1,1) = &#92;max ' class='latex' /> above 2 values</p>
<p style="padding-left:30px;">If <img src='http://s0.wp.com/latex.php?latex=Y_n+%3D+0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_n = 0' title='Y_n = 0' class='latex' />,</p>
<ol>
<li>with probability <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='0' title='0' class='latex' /> we have the best guy</li>
<li>if we skip this guy with probability <img src='http://s0.wp.com/latex.php?latex=%5CPr%5BY_n%3D1%7CY_%7Bn-1%7D%3D1%5D%5Ctimes+1+%2B+%5CPr%5BY_n%3D1%7CY_%7Bn-1%7D%3D1%5D%5Ctimes+0&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;Pr[Y_n=1|Y_{n-1}=1]&#92;times 1 + &#92;Pr[Y_n=1|Y_{n-1}=1]&#92;times 0' title='&#92;Pr[Y_n=1|Y_{n-1}=1]&#92;times 1 + &#92;Pr[Y_n=1|Y_{n-1}=1]&#92;times 0' class='latex' /> it will be found in the next step if the best strategy is followed from next step.</li>
</ol>
<p>So the best thing is to skip. Let <img src='http://s0.wp.com/latex.php?latex=V%28n-1%2C1%29+%3D+&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(n-1,1) = ' title='V(n-1,1) = ' class='latex' /> second value. And we can continue this inductively. Suppose <img src='http://s0.wp.com/latex.php?latex=V%28i%2B1%2Cb%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(i+1,b)' title='V(i+1,b)' class='latex' /> be the probability of success if the best strategy is  followed from step <img src='http://s0.wp.com/latex.php?latex=i%2B1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i+1' title='i+1' class='latex' /> given <img src='http://s0.wp.com/latex.php?latex=Y_%7Bi%2B1%7D%3Db&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='Y_{i+1}=b' title='Y_{i+1}=b' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=V%28i%2Cb%29+%3D+%5Cmax+%5C%7B+i%2Fn+%2C+%5CPr%5BY_%7Bi%2B1%7D%3D1%7CY_%7Bi%7D%3Db%5D%5Ctimes+V%28i%2B1%2C1%29+%2B+%5CPr%5BY_n%3D0%7CY_%7Bn-1%7D%3D1%5D%5Ctimes+V%28i%2B1%2C0%29+%5C%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(i,b) = &#92;max &#92;{ i/n , &#92;Pr[Y_{i+1}=1|Y_{i}=b]&#92;times V(i+1,1) + &#92;Pr[Y_n=0|Y_{n-1}=1]&#92;times V(i+1,0) &#92;}' title='V(i,b) = &#92;max &#92;{ i/n , &#92;Pr[Y_{i+1}=1|Y_{i}=b]&#92;times V(i+1,1) + &#92;Pr[Y_n=0|Y_{n-1}=1]&#92;times V(i+1,0) &#92;}' class='latex' /></p>
<p>If <img src='http://s0.wp.com/latex.php?latex=b%3D1&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='b=1' title='b=1' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=V%28i%2C1%29%3D+%5Cmax+%5C%7B+i%2Fn+%2C+%5Cfrac%7B1%7D%7Bi%2B1%7D%5Ctimes+V%28i%2B1%2C1%29+%2B+%5Cfrac%7Bi%7D%7Bi%2B1%7D%5Ctimes+V%28i%2B1%2C0%29+%5C%7D+&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(i,1)= &#92;max &#92;{ i/n , &#92;frac{1}{i+1}&#92;times V(i+1,1) + &#92;frac{i}{i+1}&#92;times V(i+1,0) &#92;} ' title='V(i,1)= &#92;max &#92;{ i/n , &#92;frac{1}{i+1}&#92;times V(i+1,1) + &#92;frac{i}{i+1}&#92;times V(i+1,0) &#92;} ' class='latex' /> else <img src='http://s0.wp.com/latex.php?latex=V%28i%2C0%29%3Di%2Fn&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='V(i,0)=i/n' title='V(i,0)=i/n' class='latex' />  (ie if current is not the best among the candidates so far seen, he is definitely not best among all and so  we skip, hoping that best guy is yet to come).</p>
<p><span style="background-color:#ffffff;">As <img src='http://s0.wp.com/latex.php?latex=i%2Fn&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i/n' title='i/n' class='latex' /> is increasing in <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='i' title='i' class='latex' />, and it can be proved that <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7Bi%2B1%7D%5Ctimes+V%28i%2B1%2C1%29+%2B+%5Cfrac%7Bi%7D%7Bi%2B1%7D%5Ctimes+V%28i%2B1%2C0%29&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;frac{1}{i+1}&#92;times V(i+1,1) + &#92;frac{i}{i+1}&#92;times V(i+1,0)' title='&#92;frac{1}{i+1}&#92;times V(i+1,1) + &#92;frac{i}{i+1}&#92;times V(i+1,0)' class='latex' /> is decreasing(i think after some threshold) at some point they cross. So from this point onwards we will choose the first guy that has best score so far(ie max is obtained for option 1). But we had already proved that best among such strategies is obtained by setting the threshold point to <img src='http://s0.wp.com/latex.php?latex=1%2Fe&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1/e' title='1/e' class='latex' /> to obtain a probability of getting best guy as <img src='http://s0.wp.com/latex.php?latex=1%2Fe&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='1/e' title='1/e' class='latex' />.[this is slightly rough write up, i hope to improve it later]</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=206&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/11/03/the-secretary-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Facts About Matchings</title>
		<link>http://girishvarma.wordpress.com/2009/10/29/some-facts-about-matchings/</link>
		<comments>http://girishvarma.wordpress.com/2009/10/29/some-facts-about-matchings/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:22:53 +0000</pubDate>
		<dc:creator>Girish Varma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[combinatorics]]></category>
		<category><![CDATA[computer science]]></category>

		<guid isPermaLink="false">http://girishvarma.wordpress.com/2009/10/29/some-facts-about-matchings/</guid>
		<description><![CDATA[If a graph(n vertex) has a maximum matching of size m edges, any maximal matching has size atleast m/2.(hint consider the complement of the maximal matching in the vertex set) XOR(symmetric difference) of a n matching and a k matching is a set of even length cycles, even length alternating paths, odd length paths with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=205&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If a graph(n vertex) has a maximum matching of size m edges, any maximal matching has size atleast m/2.(hint consider the complement of the maximal matching in the vertex set)</p>
<p>XOR(symmetric difference) of a n matching and a k matching is a set of even length cycles, even length alternating paths, odd length paths with 1 edge more from n matching(say a of them) and odd length augmentable paths(say b of them) for the k matching, such that a-b=n-k and b&lt;=n-k. </p>
<br /> Tagged: combinatorics, computer science <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishvarma.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishvarma.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishvarma.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishvarma.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishvarma.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishvarma.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishvarma.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishvarma.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishvarma.wordpress.com&amp;blog=5611799&amp;post=205&amp;subd=girishvarma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishvarma.wordpress.com/2009/10/29/some-facts-about-matchings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e278ab86e2310f3ea0aa8c34aece5839?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Girish</media:title>
		</media:content>
	</item>
	</channel>
</rss>
