View Single Post
  #31 (permalink)  
Old 10-16-09, 13:19
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
Cool Code for SUPER HARD Sudoku, only

Please, take a look on this Input:

Code:
Source (line, sudoku_str) as 
(
select 1, '860020000'
  from sysibm.sysdummy1
union all
select 2, '000700059'
  from sysibm.sysdummy1
union all
select 3, '000000000'
  from sysibm.sysdummy1
union all 
select 4, '000060800'
  from sysibm.sysdummy1
union all
select 5, '040000000'
  from sysibm.sysdummy1
union all
select 6, '005300007'
  from sysibm.sysdummy1
union all
select 7, '000000000'
  from sysibm.sysdummy1
union all
select 8, '020000600'
  from sysibm.sysdummy1
union all
select 9, '007509000'
  from sysibm.sysdummy1
)
This is SUPER HARD Sudoku.

Only 17 start numbers, two empty horisontal lines, etc.

For this kind of Sudoku, only, if you'll find them somewhere (very seldom in real) you have to execute code from attachment
(SUDOKU_Solver_v7_Super_Hard.txt).

I didn't make any changes to the logics, but for design.
My goal was performance, I did not thik about how it look, in this case.

Result will look not so nice like with the regular level sudokus.

For any other levels you don't need to execute this code, but code which I gave to you before
(Absolute_SUDOKU_Solver_v5_Weight.txt).

Lenny Khiger, ADSPA&VP
Attached Files
File Type: txt SUDOKU_Solver_v7_Super_Hard.txt (27.8 KB, 125 views)
File Type: txt Absolute_SUDOKU_Solver_v5_Weight.txt (29.4 KB, 101 views)
Reply With Quote