How to Start a Software Company 2.0

by Richard Rodger

       
 
Sudoku, Part One

A while back I was stuck in bed for a week or two due to illness, and after I got bored with mobile games (well your reactions aren't the best on pain killers), I decided to have a go at a few sudoku puzzles.

Actually, my interest in sudoku was just a little bit mercantile. The Irish Independent newspaper runs a weekly "Super Sudoku" competition, with a prize of €150. Problem is, the sudoku variant that they use is not your normal 3x3 grid, with the numbers 1-9. Ah no, if ye are going to be giving away the money, ya have got ta make it a wee bit of a co-nun-drum. "Super Sudoku" is a 4x4 grid with the numbers 0-9 and the letters A-F. Now how anyone can solve that manually I do not know - I can't even solve the 3x3 ones! But I know Perl can…

So I resolved to write a little perl script to tackle this important scientific research project. Nothing like a few associative arrays to solve a puzzle… more tomorrow.

Sudoku, Part two

@ 12:55 PM GMT+00:00 [ comments [1] ]   email this   links to this

If you liked this entry, please consider bookmarking it &mdash Thanks!
Bookmark Sudoku, Part One at del.icio.us Digg Sudoku, Part One at Digg.com Bookmark Sudoku, Part One at reddit.com Bookmark Sudoku, Part One at YahooMyWeb Bookmark Sudoku, Part One at Spurl.net Bookmark Sudoku, Part One at Simpy.com Bookmark Polyphasic Mutants at NewsVine Blink this Sudoku, Part One at blinklist.com Bookmark Sudoku, Part One at Furl.net Fark Sudoku, Part One at Fark.com

 
 
Trackback URL: http://www.richardrodger.com/roller/trackback/richard/Weblog/sudoku_part_one
Comments:

Perl is a great choice, but associative arrays aren't the answer. Recursion my brother, that's where it's at, and Perl does a great job (and C, and PHP for that matter). I did the 9x9 at www.vandine.biz/sudoku.php, but the 16x16 should solve the same way. Good luck!

Posted by Mark Van Dine on November 02, 2005 at 05:27 PM GMT+00:00
Website: http://puzzles.vandine.biz #

Comments for this have been disabled. Please send me a mail if you want to comment and I will activate comments again.
 
YahooBloglines
NewsgatorMSN
Google Readerdel.icio.us FurlSubscribe with myFeedster
« November 2005 »
SunMonTueWedThuFriSat
  
5
12
13
19
20
21
24
26
27
   
       
Today

All | General | Java | Business | Fun | Perl | Rant | Ireland | Web
[This is a Roller site]
[Valid Atom 1.0] [Valid RSS]
Technology Blog Top Sites
Blogarama - The Blogs Directory

Blog Directory & Search engine

Blog Flux Directory
Irish Blogs
 View My Public Stats on MyBlogLog.com

Performancing
Enter your Email


Powered by FeedBlitz
Theme adapted from Sotto.
 
Ricebridge XML Manager
  • Convert XML to a table of data
  • Convert XML to CSV, and CSV to XML
  • High-speed, single-pass XPath
  • Memory-stable and fault-tolerant
  • Loads of documentation
  • Cut-and-paste code examples
  • Find a bug, get a gift cert
Ricebridge Java XML Manager Component


Ricebridge CSV Manager
  • Convert CSV to a table of data
  • Handle any type of delimited file
  • Memory-stable and fault-tolerant
  • Loads of documentation
  • Cut-and-paste code examples
  • Find a bug, get a gift cert
Ricebridge Java CSV Manager Component


Popular Posts

 Sign up for MyBlogLog.com
Alertra Website Monitoring Service
Get Chitika eMiniMalls
Solo Tees
BlogJet