1 / 4

Problem Solving: Sudoku

Problem Solving: Sudoku. Rules of the Game Sudoku is played with a 9 by 9 "board" consisting of nine 3 by 3 sub-boards. The symbols 1 - 9 (any 9 unique symbols could be used, e.g., A - I) are placed on the board with the following constraints. Each symbol may appear only once in each row.

eunice
Download Presentation

Problem Solving: Sudoku

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Problem Solving: Sudoku • Rules of the Game Sudoku is played with a 9 by 9 "board" consisting of nine 3 by 3 sub-boards. The symbols 1 - 9 (any 9 unique symbols could be used, e.g., A - I) are placed on the board with the following constraints. • Each symbol may appear only once in each row. • Each symbol may appear only once in each column. • Each symbol may appear only once in each sub-board. In a typical game, you are given a partially filled board and are required to fill out the rest of the squares consistent with the rules.

  2. Problem Solving: Sudoku • Many sites on web. For example: • www.dkmsoftware.com/sudoku

  3. Problem Solving: Sudoku • What Could a Computer Program Do? • Basic validity checking. Make sure the rules are not broken. • Book-keeping that helps a human play the game. • Suggest moves that are forced • Suggest moves that are fairly obvious • Higher Level strategies. What are they? • Search when no strategies are known • try a series of moves • backtrack if they do not pan out • (this is often done using recursion)

  4. Sudoku Lab • What Could a Computer Program Do? • Write a program that checks a 9x9 array of Strings to see if all of the rules are being followed. • Could use sets or more basic techniques

More Related