<?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/"
	>

<channel>
	<title>Evidence of Intent &#187; Coding</title>
	<atom:link href="http://www.thechiao.com/wordpress/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thechiao.com/wordpress</link>
	<description>Here writes Chiao</description>
	<lastBuildDate>Mon, 10 Oct 2011 10:58:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Bookie Math</title>
		<link>http://www.thechiao.com/wordpress/2007/07/31/bookie-math/</link>
		<comments>http://www.thechiao.com/wordpress/2007/07/31/bookie-math/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 02:43:20 +0000</pubDate>
		<dc:creator>Chiao</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://zeno.unixboxen.net/wordpress/2007/07/31/bookie-math/</guid>
		<description><![CDATA[In a best of 5 series, you want to bet $100 that team A will win, but your bookie will only take bets on individual games. (The bookie pays even money on all bets.) The question is, how do you figure out how much to bet on each round? In fact, figure out how to [...]]]></description>
			<content:encoded><![CDATA[<p>In a best of 5 series, you want to bet $100 that team A will win, but your bookie will only take bets on individual games. (The bookie pays even money on all bets.)</p>
<p>The question is, how do you figure out how much to bet on each round? In fact, figure out how to bet for every best-of-N game.</p>
<p>The original quiz is located here:<br />
<a href="http://perl.plover.com/%7Ealias/list.cgi?mss:12:200210:mflioldnngfgmfnlfljf" target="_blank"><span>http://perl.plover.com/~al</span><wbr></wbr><span class="word_break"></span><span>ias/list.cgi?mss:12:200210</span><wbr></wbr><span class="word_break"></span>:mflioldnngfgmfnlfljf</a></p>
<p>Solution, in Python: <a href="http://paste.lisp.org/display/45080" target="_blank"><span>http://paste.lisp.org/disp</span><wbr></wbr><span class="word_break"></span>lay/45080</a><br />
Solution, in Common Lisp: <a href="http://paste.lisp.org/display/45079" target="_blank"><span>http://paste.lisp.org/disp</span><wbr></wbr><span class="word_break"></span>lay/45079</a></p>
<p>Scores    Bet<br />
0   0   37.5<br />
1   0   37.5<br />
1   1   50.0<br />
2   0   25.0<br />
2   1   50.0<br />
2   2  100.</p>
<p>Saw it at</p>
<p><a href="http://common-lisp.net/pipermail/quiz/2007-July/000060.html" target="_blank"><span>http://common-lisp.net/pip</span><wbr></wbr><span class="word_break"></span><span>ermail/quiz/2007-July/0000</span><wbr></wbr><span class="word_break"></span>60.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thechiao.com/wordpress/2007/07/31/bookie-math/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

