{"id":943,"date":"2007-02-19T10:17:52","date_gmt":"2007-02-19T08:17:52","guid":{"rendered":"http:\/\/www.randform.org\/blog\/?p=943"},"modified":"2007-02-19T10:17:52","modified_gmt":"2007-02-19T08:17:52","slug":"mindsweeping-minesweeper","status":"publish","type":"post","link":"https:\/\/www.randform.org\/blog\/?p=943","title":{"rendered":"mindsweeping minesweeper"},"content":{"rendered":"<p><img id=\"image942\" src=\"http:\/\/www.randform.org\/blog\/wp-content\/2007\/02\/Xdemineur.png\" alt=\"Xdemineur.png\" \/><br \/>\nimage from <a href=\"http:\/\/en.wikipedia.org\/wiki\/Image:Xdemineur.png\">wikipedia<\/a><br \/>\nThis is a followup to the last <a href=\"http:\/\/www.randform.org\/blog\/?p=924\">quantum computer post<\/a>.<\/p>\n<p><!--more--><br \/>\n<\/br><br \/>\nThe computer game <a href=\"http:\/\/en.wikipedia.org\/wiki\/Minesweeper_%28computer_game%29\"\/> Minesweeper<\/a> (here also a <a href=\"http:\/\/www.janko.at\/Applets\/Minesweeper\/index.htm\"\/>Java applet<\/a>) plays an important role in <a href=\"http:\/\/en.wikipedia.org\/wiki\/Computational_complexity_theory\"\/>complexity theory<\/a>.<\/p>\n<p>In particular the question wether a given state during a game of Minesweeper has no intrinsic contradictions (between known bomb positions and indicated ones)  is probably not solvable within a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Polynomial_time\"\/>decent time<\/a> (via a computer algorithm): Minesweeper is a so-called <a href=\"http:\/\/en.wikipedia.org\/wiki\/NP_%28complexity%29\"\/>NP-complete<\/a> problem and NP-complete problems can probably not be solved in polynomial time.<\/p>\n<p>However if you could eliminate the word <strong>probably<\/strong> in my above sentence then you could earn 1 million dollar (and probably more than that). The above problem is called the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Complexity_classes_P_and_NP\"\/>NP versus P <\/a> problem and one of the seven millenium prize problems in math (here P stands for problems that can be solved in polynomial time and NP for problems for which one can verify a solution in polynomial time). Details on how to win are on this very nicely written <a href=\"http:\/\/www.claymath.org\/Popular_Lectures\/Minesweeper\/\"\/>Millenium prize site<\/a>.<\/p>\n<p>So in short: It is generally BELIEVED that NP is NOT P, <strong>but<\/strong> the proof hasn&#8217;t been done yet, i.e. the Minesweeper problem is still somewhat open.<\/p>\n<p>Why is this at all a thrilling problem? This is because 1) one wants computers to solve problems in a decent time (also if this seems not so probable)  and 2) because if one proves the above for one NP-complete problem than one proved it for all NP problems, which are quite a big class of problems. So a proof about the solvability of the Minesweeper problem gives a decision about the solvability of a lot of other problems. But sofar we have to live on without a proof, i.e. with an open problem.<\/p>\n<p>For those who yet don&#8217;t know this is how the game Minesweeper works:<br \/>\n(citation from the <a href=\"http:\/\/www.claymath.org\/Popular_Lectures\/Minesweeper\/\"\/>Millenium prize site<\/a>)<\/p>\n<blockquote><p>The computer starts the game by showing you a blank grid of squares. Some squares conceal mines; the rest are safe. Your task is to work out where the mines are without detonating any of them. You do this by choosing a square. If there&#8217;s a mine underneath it, the mine is detonated and the game ends \u2014 &#8211; with a loss for you, of course. If there is no mine, however, the computer writes a number in that square, telling you how many mines there are in the eight immediately adjacent squares (horizontally, vertically, and diagonally).<\/p>\n<p>If your first guess hits a mine, you&#8217;re unlucky: you get no information except that you&#8217;ve lost. If it doesn&#8217;t, though, then you get partial information about the location of nearby mines. You use this information to influence your next choice of square, and again either you detonate a mine and lose, or you gain information about the positions of nearby mines.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>image from wikipedia This is a followup to the last quantum computer post.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,2,6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/943"}],"collection":[{"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=943"}],"version-history":[{"count":0,"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/943\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.randform.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}