{"id":1250,"date":"2014-01-18T01:04:09","date_gmt":"2014-01-18T01:04:09","guid":{"rendered":"http:\/\/graham-kendall.com\/blog\/?p=1250"},"modified":"2020-09-22T01:58:22","modified_gmt":"2020-09-22T01:58:22","slug":"knights-tours","status":"publish","type":"post","link":"https:\/\/graham-kendall.com\/blog\/knights-tours\/","title":{"rendered":"Knight&#8217;s Tour"},"content":{"rendered":"<figure id=\"attachment_1254\" aria-describedby=\"caption-attachment-1254\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/01\/Knights-Tour.jpg\"><img decoding=\"async\" class=\"size-medium wp-image-1254\" alt=\"Knight's Tour\" src=\"https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/01\/Knights-Tour-300x163.jpg\" width=\"300\" height=\"163\" srcset=\"https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/01\/Knights-Tour-300x163.jpg 300w, https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/01\/Knights-Tour-500x271.jpg 500w, https:\/\/graham-kendall.com\/blog\/wp-content\/uploads\/2014\/01\/Knights-Tour.jpg 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1254\" class=\"wp-caption-text\">Knight&#8217;s Tour (screen shot from Numberphile video)<\/figcaption><\/figure>\n<p>If you are interested in Chess, you may have come across Knight&#8217;s Tour problem before.<\/p>\n<p>Your task is to take a knight and place it anywhere on the chess board. Then, by performing legal Knight&#8217;s moves. can you visit each square on the chess board? Moreoever, you are only allowed to visit each square once (so 64 moves)?<\/p>\n<p>If you end up at the final square, and it would be possible to move to your starting square with a legal Knight&#8217;s move, this is know as a <em>close tour<\/em>. Mathematicians would also recognise this as a <a title=\"Link to Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Hamiltonian_path\" target=\"_blank\" rel=\"noopener noreferrer\">Hamiltonian Path<\/a>.<\/p>\n<p>If you end up on a square where it is not possible to get to your starting position (via a legal Knight&#8217;s move) this is know as an open tour.<\/p>\n<p>When you first see this problem, you tend to think that it would be impossible to find any tour, whether open or closed.<\/p>\n<p>You might be surprised to learn that there are 26,534,728,821,064 closed tours. Yes, that&#8217;s right, 26 TRILLION of these tours. So if you tried it and could not find one, then shame on you :-).<\/p>\n<p>How many open tours do you think there are? At the time of writing, nobody knows!<\/p>\n<p>The video below does the job of exaplaining Knight&#8217;s Tours much better than I can, and it also includes some extra information about semi-magical squares.<\/p>\n<p>I have a particular interest in this video and I had some discussions with Brady Haran (the producer of this series) as I have published a couple of papers on this topic (see <a href=\"http:\/\/bit.ly\/LsnV8E\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a> and <a href=\"http:\/\/bit.ly\/1jbm8jG\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>) , where we used <em>ants<\/em> to find Knight&#8217;s tours.<\/p>\n<p><iframe title=\"Knight&#039;s Tour - Numberphile\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/ab_dY3dZFHM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are interested in Chess, you may have come across Knight&#8217;s Tour problem before. Your task is to take a knight and place it anywhere on the chess board. Then, by performing legal Knight&#8217;s moves. can you visit each square on the chess board? Moreoever, you are only allowed to visit each square once [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1254,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,48],"tags":[],"class_list":["post-1250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-archive","category-games"],"_links":{"self":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/1250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/comments?post=1250"}],"version-history":[{"count":5,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/1250\/revisions"}],"predecessor-version":[{"id":1620,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/1250\/revisions\/1620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/media\/1254"}],"wp:attachment":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/media?parent=1250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/categories?post=1250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/tags?post=1250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}