domino tiles
by ben payne
11 Oct 2008
(Updated 01 Nov 2008)
domino tiles random matrix, filling the matrix like in the game "snake"
|
Watch this File
|
| File Information |
| Description |
Create a random matrix of a non-intercepting snake, like the game ("worm" or "snake"). Also described by filling a chessboard with dominos, except now the board can be rectangular, or any arbitrary shape (by changing the boarders).
Uses an infinite loop to enumerate possibilities. There are a finite number of solutions for a given matrix size. Computation time grows based on size of matrix.
Code is documented. |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 30 Oct 2008 |
based on user feed back I added an "H1" line and added some documentation. Also updated description and added tags.
|
| 01 Nov 2008 |
Added more documentation. pre-allocated two arrays for increased speed. |
|
Contact us at files@mathworks.com