{"id":3043,"date":"2021-10-18T22:00:00","date_gmt":"2021-10-18T22:00:00","guid":{"rendered":"https:\/\/modernsciences.org\/staging\/4414\/?p=3043"},"modified":"2021-10-05T03:12:19","modified_gmt":"2021-10-05T03:12:19","slug":"mathematician-solves-150-year-old-n-queens-chess-problem","status":"publish","type":"post","link":"https:\/\/modernsciences.org\/staging\/4414\/mathematician-solves-150-year-old-n-queens-chess-problem\/","title":{"rendered":"Mathematician Solves 150-Year-Old \u201cn-queens\u201d Chess Problem"},"content":{"rendered":"\n<p>The game of chess has been around for at least 1,500 years, and has morphed in our current understanding from a war simulation to seemingly becoming a mathematics and logic puzzle to academics today.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/laXz0DGTb0B2TH7VYg65GqHuWjDU4MdHciJWNTdcK25Fgm3g3MKKMlOgL5ru9oiVDhOLjU3PAccu-8Fd7s9g6o8AAKKyvQxNl5XdzgGRdbKK2CFG4jlYh1I5lc4oD9fFoj3DsPTJ=s0\" ><figcaption> This 1283 artwork showcases Moorish women playing a game of chess. The game has been around for at least 1,500 years. (Wikimedia Commons, 1283) <\/figcaption><\/figure><\/div>\n\n\n\n<p>With that context in mind, let&#8217;s take a step back from formal chess rules, and imagine a normal chessboard. For a refresher, the queen is the most powerful chess piece, and is capable of moving in a straight or diagonal line all the way across the board, like so:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/9j8kbaBXi03EGA1YZmwEaWu7601miNssmVAFoCLuP6v9uS7KnzOMgxdE8wVXIFpMKp0ZCpei8hzjTCOq5-lyqjgw9GdPHEMH7LVOkP-b8jGFORMrGms1v3KjzQv8PXtcfKGfUZQm=s0\" ><figcaption> This GIF animation showcases just how a queen moves across a chessboard, hence its reputation as the most powerful chess piece. (Cebrian\/Wikimedia Commons, 2014) <\/figcaption><\/figure><\/div>\n\n\n\n<p>Also, a queen can capture any piece that\u2019s unfortunate enough to sit along its possible paths of movement. Now, with those in mind, imagine a scenario where you have eight (8) individual queens on a normal chessboard. How would you place them in such a way that no queens attack another? And how many arrangements of eight queens could you make out that allows this stalemate?<\/p>\n\n\n\n<p>As it turns out, this very problem is pretty old, as it stretches back some 150 years. The thought experiment above is the simplest version of a conundrum known as the <em>n-queens<\/em> problem. There, instead of just eight queens sitting on a normal chessboard with eight rows and eight columns, the problem imagines some arbitrary number of queens\u2014or <em>n <\/em>queens\u2014on an n\u00d7n chessboard.<\/p>\n\n\n\n<p>The original eight-queens problem was first devised in a German magazine back in 1848, followed by the introduction of the formal n-queens problem some 21 years later. Now, a mathematician by the name of Michael Simkin, a postdoctoral fellow from Harvard University\u2019s Center of Mathematical Sciences and Applications, has this problem figured out; their solution can be found in preprint over on arXiv.<\/p>\n\n\n\n<p>In his study of the n-queens problem, Simkin proved that there are approximately (0.143n)<sup>n<\/sup> configurations for some n number of queens on an n\u00d7n chessboard. In the case of a hundred non-attacking queens on a 100\u00d7100 chessboard, there would be around 3.42\u00d710<sup>115<\/sup> different configurations. For a million queens on a chessboard a million rows wide and a million columns tall, there would be around 1.09\u00d710<sup>5155336<\/sup> configurations\u2014that\u2019s a one followed by at least five million zeros.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh5.googleusercontent.com\/a_Q1cfgFsO_v9DLsknOs1ZzYVXoJCx-91qhvofXQ4JnbGlXzGLww3t5izMEt_aiVmECTVJnOwKjT5xGTM0XoicjjABGAw_HxkaFBdPlnpWYtIKcm47cJZS7uwpeSIqu_8yyU7USm=s0\" ><figcaption> Normal chessboards, much like this human-sized one inside the Welsh village of Portmeirion, are eight columns wide by eight columns tall. The chessboards necessitated by the n-queens problem, on the other hand, can go as wide and as tall as there are queens on it. (Broster\/Wikimedia Commons, 2020) <\/figcaption><\/figure><\/div>\n\n\n\n<p>Figuring out the solution necessitated several hours of painstaking calculations, as the calculations needed to compute for the number of possible arrangements were staggering in amount. In cases like these, mathematicians often seek out patterns instead of raw numbers, as a way of \u201csimplifying\u201d the situation. Thing is, the n-queens problem didn\u2019t seem to have a pattern to its solution, meaning Simkin struggled to search for answers to his problem.<\/p>\n\n\n\n<p>Even after collaborations with fellow mathematicians, like Swiss Federal Institute of Technology Zurich mathematician Zur Luria, they could only figure out the \u201c<em>lower bound<\/em>\u201d of the solution, <a href=\"https:\/\/arxiv.org\/abs\/2105.11431\" target=\"_blank\" rel=\"noreferrer noopener\">which was also put out on preprint on arXiv earlier this year<\/a>. In that case, they had to start with a \u201c<em>toroidal<\/em>\u201d chessboard that wraps around itself, so a piece that moves to the extreme right just goes around to the left instead.<\/p>\n\n\n\n<p>Simkin eventually landed on a realization after pondering on the fact that queens on an n\u00d7n chessboard are more likely to occupy some squares more than others, given the clause that queens should not be able to attack each other.\\<\/p>\n\n\n\n<p>Eventually, he ended up with a formula which he thought gave the minimum number of configurations; he then used what mathematicians call the <em>entropy method<\/em> to narrow down the maximum number of configurations. It was there where he discovered that the two values almost perfectly matched\u2014meaning he actually managed to compute a nearly exact expression for the number of n-queens configurations. And thus, the (0.143n)<sup>n<\/sup> solution was born.<\/p>\n\n\n\n<p>Simkin hopes that the methods he devised to figure out the n-queens solution may help illuminate the path for other mathematicians working on problems with a similar structure. Of course, as the solution Simkin found was only \u201calmost perfectly\u201d matching, other mathematicians will most likely attempt the problem as well, if only to further close the gap between the maximum and minimum values.<\/p>\n\n\n\n<p>In the words of Simkin: \u201cThe interesting things are the methods. [&#8230;] We\u2019re constantly looking to make our tools stronger. I hope that I\u2019ve succeeded in doing that here.\u201d<\/p>\n\n\n\n<p>Finally, if you\u2019re still curious, there are 92 different configurations for eight queens in a normal chessboard where no queens can attack another.<\/p>\n\n\n\n<h2 id=\"references\" class=\"wp-block-heading\">References<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Luria, Z., &amp; Simkin, M. (2021). A lower bound for the $n$-queens problem. <em>ArXiv:2105.11431 [Math]<\/em>. <a href=\"http:\/\/arxiv.org\/abs\/2105.11431\" target=\"_blank\" rel=\"noopener\">http:\/\/arxiv.org\/abs\/2105.11431<\/a><\/li><li>Simkin, M. (2021). The number of $n$-queens configurations. <em>ArXiv:2107.13460 [Math]<\/em>. <a href=\"http:\/\/arxiv.org\/abs\/2107.13460\" target=\"_blank\" rel=\"noopener\">http:\/\/arxiv.org\/abs\/2107.13460<\/a><\/li><li>Sloman, L. (2021, September 21). <em>Mathematician answers chess problem about attacking queens<\/em>. Quanta Magazine. <a href=\"https:\/\/www.quantamagazine.org\/mathematician-answers-chess-problem-about-attacking-queens-20210921\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.quantamagazine.org\/mathematician-answers-chess-problem-about-attacking-queens-20210921\/<\/a><\/li><li>Sloman, L. (2021b, October 3). A mathematician answers a 150-year-old chess problem. <em>Wired<\/em>. <a href=\"https:\/\/www.quantamagazine.org\/mathematician-answers-chess-problem-about-attacking-queens-20210921\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.quantamagazine.org\/mathematician-answers-chess-problem-about-attacking-queens-20210921\/<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"The game of chess has been around for at least 1,500 years, and has morphed in our current&hellip;\n","protected":false},"author":4,"featured_media":3044,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[17],"tags":[305],"class_list":{"0":"post-3043","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-math-and-the-sciences","8":"tag-chess","9":"cs-entry","10":"cs-video-wrap"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/posts\/3043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/comments?post=3043"}],"version-history":[{"count":1,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/posts\/3043\/revisions"}],"predecessor-version":[{"id":3045,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/posts\/3043\/revisions\/3045"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/media\/3044"}],"wp:attachment":[{"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/media?parent=3043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/categories?post=3043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modernsciences.org\/staging\/4414\/wp-json\/wp\/v2\/tags?post=3043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}