Browse > Article
http://dx.doi.org/10.7236/JIIBC.2017.17.3.159

The Magic Square Algorithm  

Lee, Sang-Un (Dept. of Multimedia Eng., Gangneung-Wonju National University)
Publication Information
The Journal of the Institute of Internet, Broadcasting and Communication / v.17, no.3, 2017 , pp. 159-166 More about this Journal
Abstract
This paper proposes an algorithm for odd, doubly even, and singly even magic squares. In constructing an odd magic square, de la $Loub{\grave{e}}re^{\prime}s$ method is widely known and used, but it has an inherent defect of executing $O(n^2)$ steps. 2 types of cross algorithms have been proposed to the double even magic square, and more to the singly even magic square based on the odd magic square of ${\frac{n}{2}}{\times}{\frac{n}{2}}$, the most popular and simple of which is one proposed by Strachey. The algorithm proposed in this paper successfully constructs odd and doubly even magic squares by undergoing 3 steps and 4 steps respectively. It also directly constructs a singly even magic square without having its basis on the odd magic square.
Keywords
Magic square; Odd order; Doubly even order; Singly even order; Cross; Diagonal;
Citations & Related Records
연도 인용수 순위
  • Reference
1 Wikipedia, "Magic Square," http://en.wikipedia.org/wiki/Magic_square, Wikimedia Foundation Inc., 2015.
2 E. W. Weisstein, "Magic Square," http://mathworld.wolfram.com/MagicSquare.html, Wolfram Research. Inc., 2015.
3 P. Ballew, "Magic Squares Report," http://www.pballew.net/MagSqRpt.doc, 2015.
4 W. W. R. Ball, "Mathematical Recreations and Essays," London. Macmillan & Co Ltd, 1959.
5 de la Loubere, "A new historical relation of the Kingdom of Siam, Du Roykume de Siam, 1693.
6 M. Kraitchik, "Magic Squares," New York: Norton, pp. 142-192, 1942.
7 E. R. Berlekamp, J. H. Conway, and R. K. Guy, "Winning Ways for Your Mathematical Plays, Vol. 2: Games in Particular," Academic Press, London, 1982.
8 Y. K. Kim and J. C. Yoo, "An Algorithm for Constructing Magic Squares," Discrete Applied Mathematics, Vol. 156, No. 14, pp. 2804-2809, Jul. 2008. DOI: https://doi.org/10.1016/j.dam.2007.09.029   DOI
9 G. Jacob and A. Murugan, "On the Construction of Doubly Even Order Magic Squares," Cornell University Library, arXiv:1402.3273, pp. 1-5, Feb. 2014.
10 J. Chen, T. S. Chen, Y. M. Hsu, and K. Wu, "A Heuristic Magic Square Algorithm for Optimization of Pixel Pair Modification," Electrical Engineering and Control, Lecture Notes in Electrical Engineering, Vol. 98, pp. 765-772, 2011. DOI: https://doi.org/10.1007/978-3-642-21765-4_95   DOI