<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java Sudoku Solver in 6 lines</title>
	<atom:link href="http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/feed" rel="self" type="application/rss+xml" />
	<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines</link>
	<description>The things that matter: Computing, Cycling, Java, the Environment, etc, etc (list liable to change...!)</description>
	<lastBuildDate>Sat, 22 May 2010 16:18:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul King</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1890</link>
		<dc:creator>Paul King</dc:creator>
		<pubDate>Sat, 28 Oct 2006 20:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1890</guid>
		<description>3 line groovy version:
def r(a){def m=a=~&#039;0&#039;; if(m.find()){def i=m.start();((49..57)-(0..80).collect{
j-&gt;j/9==i/9&#124;&#124;j%9==i%9&#124;&#124;j/27==i/27&amp;&amp;j%9/3==i%9/3?a[j]:0}).collect{
r(a[0..i-1]+(char)it+a[i+1..-1])}}else print a}</description>
		<content:encoded><![CDATA[<p>3 line groovy version:<br />
def r(a){def m=a=~&#8217;0&#8242;; if(m.find()){def i=m.start();((49..57)-(0..80).collect{<br />
j-&gt;j/9==i/9||j%9==i%9||j/27==i/27&amp;&amp;j%9/3==i%9/3?a[j]:0}).collect{<br />
r(a[0..i-1]+(char)it+a[i+1..-1])}}else print a}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1223</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sun, 06 Aug 2006 16:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1223</guid>
		<description>Using Kofa&#039;s idea of a boolean array I got it down to under 5 lines.

public class S{static char[] A;static void R(){int i=0,j;for(;i</description>
		<content:encoded><![CDATA[<p>Using Kofa&#8217;s idea of a boolean array I got it down to under 5 lines.</p>
<p>public class S{static char[] A;static void R(){int i=0,j;for(;i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1193</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 01 Aug 2006 10:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1193</guid>
		<description>Wow, still not sure how it does it. Need to get my head around it&#039;s recursiveness (R() is called 1107(!) times for that example problem).</description>
		<content:encoded><![CDATA[<p>Wow, still not sure how it does it. Need to get my head around it&#8217;s recursiveness (R() is called 1107(!) times for that example problem).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiny but slow</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1156</link>
		<dc:creator>tiny but slow</dc:creator>
		<pubDate>Wed, 26 Jul 2006 15:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1156</guid>
		<description>import java.util.*;public class S{static char[]A;static void R(){int i=0,j;for(;i</description>
		<content:encoded><![CDATA[<p>import java.util.*;public class S{static char[]A;static void R(){int i=0,j;for(;i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kofa</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1146</link>
		<dc:creator>Kofa</dc:creator>
		<pubDate>Wed, 26 Jul 2006 10:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1146</guid>
		<description>You can get smaller and faster by replacing the hash with a boolean array (&#039;x&#039; is for eXcluded chars). You need to (ab)use the fact that booleans are false by default.
public class S{static char[] A;static void R(){int i,j;for(i=0;i</description>
		<content:encoded><![CDATA[<p>You can get smaller and faster by replacing the hash with a boolean array (&#8216;x&#8217; is for eXcluded chars). You need to (ab)use the fact that booleans are false by default.<br />
public class S{static char[] A;static void R(){int i,j;for(i=0;i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1127</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 24 Jul 2006 23:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1127</guid>
		<description>... you can save four more bytes by using &#039;Map h=new HashMap()&#039; :-)</description>
		<content:encoded><![CDATA[<p>&#8230; you can save four more bytes by using &#8216;Map h=new HashMap()&#8217; <img src='http://blogs.asman-it.com.au/dasman/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Rodger</title>
		<link>http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines/comment-page-1#comment-1117</link>
		<dc:creator>Richard Rodger</dc:creator>
		<pubDate>Mon, 24 Jul 2006 12:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.asman-it.com.au/dasman/index.php/20060724/java-sudoku-solver-in-6-lines#comment-1117</guid>
		<description>And to think I managed to write solver in only 100 or so line of Perl. And it wasn&#039;t even complete!

Bah.</description>
		<content:encoded><![CDATA[<p>And to think I managed to write solver in only 100 or so line of Perl. And it wasn&#8217;t even complete!</p>
<p>Bah.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
