|
|
|
|||
|
Sudoku
Bloggers: You might be interested in some of the blog entries on this Oracle PL/SQL Sudoku solver: Forum: Codetips: Need some help with building some Oracle PL/SQL solutions? Then these articles may be of use... 1. Dynamic SQL: A performance tuning guide. 2. Bulk Data Loading: The available approaches. 3. Report Writing: Using Oracle XML, XSL, and HTML. 4. Data Driven Processing: XML Metadata
|
Oracle PL/SQL Sudoku Solver - Algorithms Links to Sudoku; or algorithms 1, 2, 3, or 4, userguide or download If there is only a single remaining pencil mark in a cell, then it must be a certainty. Any other candidates with the same value in the same box, row or column can be eliminated.
In the above example, the number 7 in red is a single candidates in a cell. The blue numbers can then be rubbed out. This is the SQL statement used to identify the candidates that meet the criteria.
Each time new certainties are found, then any other candidates remaining in the cell can be rubbed out, and any candidates with the same value in the same box, row or column, but different cell can also be rubbed out. This eliminates the candidates in the same cell... UPDATE answers a This eliminates the candidates in the same box, row, or column (iterated three times for box, row, and column)... FOR i IN 1 .. 3 LOOP
To view the other algorithms select the required link... Oracle PL/SQL Sudoku Solver Oracle PL/SQL Sudoku Solver Oracle PL/SQL Sudoku Solve Oracle PL/SQL Sudoku Solver Oracle PL/SQL Oracle PL/SQL |
|
||
|
|
Send mail to webmaster@db-innovations.co.uk with questions or
comments about this web site. |
|||