Skip to main content

An Efficient Sparse Optimization Method for Unfinished Magic Squares

  • Conference paper
  • First Online:
Intelligent Data Engineering and Automated Learning – IDEAL 2016 (IDEAL 2016)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 9937))

  • 1852 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Gu, Z.: Magic Algorithm and Program Design. Beijing science and technology literature press, Beijing (1993)

    Google Scholar 

  2. Wu, H.: Magic Square and Prime Numbers: Entertainment Mathematical Two Classical Propositions. Beijing Science Press, Beijing (2008)

    Google Scholar 

  3. Kitajima, A., Kikuchi, M.: Numerous but rare: an exploration of magic squares. PLoS ONE 10, 49–55 (2015)

    Google Scholar 

  4. Lv, Z.: A rapid condition combinatorial algorithm. J. Zhejiang Norm. Univ. (Nat.Sci.) 29, 52–55 (2006)

    Google Scholar 

  5. Lv, Z.: Research On Intelligent Computation Of Magic Square Problem. National University of Defense Technology Engineering Master Thesis (2005)

    Google Scholar 

  6. Loly, P., Cameron, I., Trump, W., Schindel, D.: Magic square spectra. Linear Algebra Appl. 430, 2659–2680 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  7. Nordgren, R.P.: On properties of special magic square matrices. Linear Algebra Appl. 437, 2009–2025 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  8. Chen, G., Chen, H., Chen, K., Li, W.: Regular sparse anti-magic squares with small odd densities. Discrete Math. 339, 138–156 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  9. Babu, P., Pelckmans, K., Stoica, P., Li, J.: Linear systems, sparse solutions, and sudoku. Sig. Process. Lett. IEEE 17, 40–42 (2010)

    Article  Google Scholar 

  10. Saab, R., Yilmaz, Ö.: Sparse recovery by non-convex optimization-instance optimality. Appl. Comput. Harmonic Anal. 29, 30–48 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  11. Needell, D., Tropp, J.A.: CoSaMP: Iterative signal recovery from incomplete and inaccurate samples. Appl. Comput. Harmonic Anal. 26, 301–321 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  12. Ganguli, S., Sompolinsky, H.: Statistical mechanics of compressed sensing. Phys. Rev. Lett. 104, 188701 (2010)

    Article  Google Scholar 

  13. 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)

    Article  MathSciNet  MATH  Google Scholar 

  14. 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)

    Google Scholar 

Download references

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

Authors

Corresponding authors

Correspondence to Xiaohua Xu or Ping He .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics