domino tiles

Version 1.2.0.0 (4.39 KB) by ben payne
domino tiles random matrix, filling the matrix like in the game "snake"
1.1K Downloads
Updated 1 Nov 2008

View License

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.

Cite As

ben payne (2024). domino tiles (https://www.mathworks.com/matlabcentral/fileexchange/21720-domino-tiles), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Graph and Network Algorithms in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Added more documentation. pre-allocated two arrays for increased speed.

1.1.0.0

based on user feed back I added an "H1" line and added some documentation. Also updated description and added tags.

1.0.0.0