Skip to main content

Faster Convergence to N-Queens Problem Using Reinforcement Learning

  • Conference paper
  • First Online:
Modeling, Machine Learning and Astronomy (MMLA 2019)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1290))

Included in the following conference series:

Abstract

Algorithmic complexity has been a constraint to solving problems efficiently. Wide use of an algorithm is dependent on its space and time complexity for large inputs. Exploiting an inherent pattern to solve a problem could be easy compared to an algorithm-based approach. Such patterns are quite necessary at cracking games with a vast number of possibilities as an algorithm-based approach would be computationally expensive and time-consuming. The N-Queens problem is one such problem with many possible configurations and realizing a solution to this is hard as the value of N increases. Reinforcement Learning has proven to be good at building an agent that can learn these hidden patterns over time to converge to a solution faster. This study shows how reinforcement learning can outperform traditional algorithms in solving the N-Queens problem.

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

Similar content being viewed by others

References

  1. Bell, J., Stevens, B.: A survey of known results and research areas for n-queens. Discrete Math. 309(1), 1–31 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  2. Draa, A., Meshoul, S., Talbi, H., Batouche, M.: A quantum-inspired differential evolution algorithm for solving the n-queens problem. Neural Networks 1(2) (2011)

    Google Scholar 

  3. Hu, X., Eberhart, R.C., Shi, Y.: Swarm intelligence for permutation optimization: a case study of n-queens problem. In: Proceedings of the 2003 IEEE Swarm Intelligence Symposium. SIS 2003 (Cat. No. 03EX706), pp. 243–246. IEEE (2003)

    Google Scholar 

  4. Kumar, V.: Algorithms for constraint-satisfaction problems: a survey. AI Mag. 13(1), 32 (1992)

    Google Scholar 

  5. Lim, S., Son, K., Park, S., Lee, S.: The improvement of convergence rate in n-queen problem using reinforcement learning. J. Korean Inst. Intell. Syst. 15(1), 1–5 (2005)

    Article  Google Scholar 

  6. Mnih, V., et al.: Human-level control through deep reinforcement learning. Nature 518(7540), 529 (2015)

    Article  Google Scholar 

  7. Papavassiliou, V.A., Russell, S.: Convergence of reinforcement learning with general function approximators. In: IJCAI, pp. 748–757 (1999)

    Google Scholar 

  8. Potapov, A., Ali, M.: Convergence of reinforcement learning algorithms and acceleration of learning. Phys. Rev.E 67(2), 026706 (2003)

    Article  Google Scholar 

  9. Rivin, I., Zabih, R.: A dynamic programming solution to the n-queens problem. Inf. Process. Lett. 41(5), 253–256 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  10. Watkins, C.J.C.H., Dayan, P.: Q-learning. Mach. Learn. 8(3), 279–292 (1992). https://doi.org/10.1007/BF00992698

    Article  MATH  Google Scholar 

  11. Zhang, C., Ma, J.: Counting solutions for the n-queens and latin-square problems by monte carlo simulations. Phys. Rev. E 79(1), 016703 (2009)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Patnala Prudhvi Raj .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Prudhvi Raj, P., Shah, P., Suresh, P. (2020). Faster Convergence to N-Queens Problem Using Reinforcement Learning. In: Saha, S., Nagaraj, N., Tripathi, S. (eds) Modeling, Machine Learning and Astronomy. MMLA 2019. Communications in Computer and Information Science, vol 1290. Springer, Singapore. https://doi.org/10.1007/978-981-33-6463-9_6

Download citation

  • DOI: https://doi.org/10.1007/978-981-33-6463-9_6

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-33-6462-2

  • Online ISBN: 978-981-33-6463-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics