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