<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logic on Josiah Wood</title><link>https://josiahwood.com/tags/logic/</link><description>Recent content in Logic on Josiah Wood</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 May 2016 16:47:53 +0000</lastBuildDate><atom:link href="https://josiahwood.com/tags/logic/index.xml" rel="self" type="application/rss+xml"/><item><title>Twelve Men on an Island Logic Puzzle</title><link>https://josiahwood.com/twelve-men-on-an-island-logic-puzzle/</link><pubDate>Fri, 20 May 2016 16:47:53 +0000</pubDate><guid>https://josiahwood.com/twelve-men-on-an-island-logic-puzzle/</guid><description>&lt;p&gt;One of my favorite shows right now is Brooklyn Nine-Nine. During season 2 episode 18, titled &amp;ldquo;Captain Peralta&amp;rdquo;, Captain Holt presents this riddle to the team:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;There are twelve men on an island. Eleven weigh exactly the same amount, but one of them is slightly lighter or heavier. You must figure out which. The island has no scales, but there is a seesaw. You can only use it three times.&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;This isn&amp;rsquo;t exactly a programming post, but it does demonstrate the same kind of problem solving that is often found in devising efficient algorithms.&lt;/p&gt;</description></item></channel></rss>