Sudoku: ASP.NET/MATLAB 1.1
File ID: 85743
Sudoku: ASP.NET/MATLAB 1.1 Description
Description: SOLVE_SUDOKU.M -- This file contains the code for solving the Sudoku board, and should be deployed as a .NET assembly. It accepts as input a 9-by-9 array, where 0 represents a blank square, and the digits 1-9 represent any initial values in the grid. The function returns the solved board, if a solution exists, and a flag indicating whether the code was successful at finding a solution. To solve the puzzle, the code uses an algorithm that makes recursive calls to the solver function after choosing one of the possible candidates for a square. If a square does not have any possible candidates, the algorithm backs up to a previous square, and tries another possible candidate there before proceeding.
SUDOKU.ASPX -- The front-end web page is an ASP.NET file that creates a 9-by-9 grid of text boxes, allowing users to enter the values for a Sudoku puzzle. After a user clicks the submit button, this code posts the data in the grid to solver.aspx.
SOLVER.ASPX -- This ASP.NET code accepts the input data from sudoku.aspx, packages it in a .NET array, and calls a method of the Sudoku object to solve the puzzle. After receiving the output in the form of a two-dimensional array, the ASP.NET code formats the array to display the solution on the screen.
For more information on solving Sudoku puzzles, check out the following reference:
Delahaye, Jean-Paul. "The Science Behind Sudoku." Scientific American June 2006: 81-83.
Note: Certain boards take longer to solve than others. It may be helpful to set the timeout for the ASP.NET page appropriately for boards that take an excessive amount of time to complete.
Related: Square, Sudoku, Array, aspnet, Puzzle, solve, Solution, Function, values, Algorithm, Boards, candidates, solving, calls, Board, Input, accepts, Display, matlab
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
This site is provided for listing all the ASP.NET related resources. Our mission is to provide all the latest resources to help, share and promote ASP.NET Technology. We cover All ASP.NET related Scripts, Controls, Components, Hosting , Tutorials and etc.
Lanapsoft BotDetect - ASP.NET CAPTCHA is a website security component designed to protect your registration, comment, poll, guestbook, content submission, and other online forms from automated spam submissions. It generates CAPTCHA images with...
The ASP.NET Barcode Server Control is a new drag-and-drop component that easily adds dynamic barcoding capability to Microsoft .NET Web Applications. It is a server-side component that creates JPEG images, therefore all processing takes place on...
FlyTreeView for ASP.NET 2.0 (9Rays.Net TreeView for ASP.NET 2.0) is an advanced AJAX-based ASP.NET 2.0 treeview control. FlyTreeView for ASP.NET 2.0 features ASP.NET AJAX compatibility, cross-browser support, on-the-fly nodes population, unlimited...
Cute Editor for ASP.NET is the most powerful WYSIWYG (What You See Is What You Get) browser-based Online HTML Editor for ASP.NET.
It enables ASP.NET Web developers to replace the Textarea in your existing content management system with...
How often your web-site visitors want to get some information which just lies in a database and can be taken from there by one simple SQL statement?
Tired to add new pages on your web-site?
EasyQuery.NET WebForms edition let your users...
WebInput.NET is a powerful ASP.NET component that has formatting, masking and validating capability similar to what you have in Microsoft AccessÂ®.
Developers can now provide excellent and rich input in their web application for entering...
ASP.net Web Server Control for adding visual color selection to your web site or web application in just a few lines of code or a simple drag & drop with VisualStudio.net. allows you to have users easily select a color from a beautiful graphic...
Asp.net web server component for adding visual zoom & popup effects to your projects. Add images, text or HTML text Popups to your products, icons, pictures,... Simply by dragging the control from the visual studio toolbar to your web form....
(New Version 6.0!) Cute Editor for ASP.NET is by far the fastest, easiest, most powerful WYSIWYG (What You See Is What You Get)browser-based HTML Editor for ASP.NET. It enables ASP.NET Web developers to replace your standard Textarea to a rich...
|User Review for Sudoku: ASP.NET/MATLAB