Abstract
Magic square is an old and interesting mathematical problem, which has the same value of all the sums of the elements in each row, column and diagonal. An unfinished magic square denotes that it gives us some clues and we need to fill the empty cells. In order to solve the unfinished magic squares more efficiently, we propose a solution based on sparse optimization. Using the properties of magic square, we establish a model of constraint programming. Then we transform the constraints into sparse linear constraints, meanwhile use l 0 norm minimization as the objective function to ensure the sparsity of the solution. Moreover, we use l 1 norm to approximate l 0 norm on the basis of RIP and KGG condition. This paper uses the primal-dual interior point method of linear programming, the branch and bound algorithm of binary programming and dual simplex method of integer linear programming to solve the magic square problems. The experimental results show that dual simplex method of integer linear programming can reach almost 100 % success rate. In addition, we propose a kind of special magic square problem and we apply this idea to construct and solve this problem, and obtain the good results.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Gu, Z.: Magic Algorithm and Program Design. Beijing science and technology literature press, Beijing (1993)
Wu, H.: Magic Square and Prime Numbers: Entertainment Mathematical Two Classical Propositions. Beijing Science Press, Beijing (2008)
Kitajima, A., Kikuchi, M.: Numerous but rare: an exploration of magic squares. PLoS ONE 10, 49–55 (2015)
Lv, Z.: A rapid condition combinatorial algorithm. J. Zhejiang Norm. Univ. (Nat.Sci.) 29, 52–55 (2006)
Lv, Z.: Research On Intelligent Computation Of Magic Square Problem. National University of Defense Technology Engineering Master Thesis (2005)
Loly, P., Cameron, I., Trump, W., Schindel, D.: Magic square spectra. Linear Algebra Appl. 430, 2659–2680 (2009)
Nordgren, R.P.: On properties of special magic square matrices. Linear Algebra Appl. 437, 2009–2025 (2012)
Chen, G., Chen, H., Chen, K., Li, W.: Regular sparse anti-magic squares with small odd densities. Discrete Math. 339, 138–156 (2016)
Babu, P., Pelckmans, K., Stoica, P., Li, J.: Linear systems, sparse solutions, and sudoku. Sig. Process. Lett. IEEE 17, 40–42 (2010)
Saab, R., Yilmaz, Ö.: Sparse recovery by non-convex optimization-instance optimality. Appl. Comput. Harmonic Anal. 29, 30–48 (2008)
Needell, D., Tropp, J.A.: CoSaMP: Iterative signal recovery from incomplete and inaccurate samples. Appl. Comput. Harmonic Anal. 26, 301–321 (2008)
Ganguli, S., Sompolinsky, H.: Statistical mechanics of compressed sensing. Phys. Rev. Lett. 104, 188701 (2010)
Kwon, O.M., Park, J.H.: Delay-dependent stability for uncertain cellular neural networks with discrete and distribute time-varying delays. J. Franklin Inst. 345, 766–778 (2008)
Edlund, K., Sokoler, L.E., Jrgensen, J.B.: A primal-dual interior-point linear programming algorithm for MPC. In: Proceedings of Joint 48th IEEE Conference on Decision and Control and 28th Chinese Control Conference, pp. 351–356 (2009)
Acknowledgments
This research was supported in part by the Chinese National Natural Science Foundation under Grant nos. 61402395, 61472343 and 61379066, Natural Science Foundation of Jiangsu Province under contracts BK20151314,BK20140492 and BK20130452, Natural Science Foundation of Education Department of Jiangsu Province under contract 13KJB520026, and the New Century Talent Project of Yangzhou University.
Author information
Authors and Affiliations
Corresponding authors
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing AG
About this paper
Cite this paper
Liang, Y., Xu, X., Liao, Z., He, P. (2016). An Efficient Sparse Optimization Method for Unfinished Magic Squares. In: Yin, H., et al. Intelligent Data Engineering and Automated Learning – IDEAL 2016. IDEAL 2016. Lecture Notes in Computer Science(), vol 9937. Springer, Cham. https://doi.org/10.1007/978-3-319-46257-8_4
Download citation
DOI: https://doi.org/10.1007/978-3-319-46257-8_4
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-46256-1
Online ISBN: 978-3-319-46257-8
eBook Packages: Computer ScienceComputer Science (R0)