These programs make magic squares and rectangles using "Constraint-Based Local Search".
(For non-square rectangles, input the order as two numbers.)
There are 3 similar programs: CompleteSquare, CompleteSquareSteps, and MagicSquares.
Given an input square with some cell values between 1 and NxN specified,
(and other cell values 0), CompleteSquare attempts to complete a magic square by
placing the remaining values. The square type can be input as semimagic, magic,
For successful solutions, CompleteSquareSteps shows the steps of the search.
The number exchanges at each step and the intermediate squares are written to files.
MagicSquares does not require an input file.
MagicSquares (only) also supports concentric and pandiagonal. (Pandiagonal succeeds only for small orders.)
- constraint-based local search
- tabu search
- randomly generated starting rectangles
- user-supplied starting rectangles
- user-supplied rectangle templates
Be the first to post a review of mssolutions!