Showing posts with label logic. Show all posts
Showing posts with label logic. Show all posts

2012-12-29

Minesweeper is NP-Complete!

tldr: Win a million dollars by finding a polynomial-time algorithm to solve Minesweeper, or by proving it can't be done. From the Clay Mathematics Institute: http://www.claymath.org/Popular_Lectures/Minesweeper/

I realize that the paper, "Minesweeper is NP-complete" by Richard Kaye, was first published in 2000, but the idea is new to me! I just found out about it yesterday when doing background research for a new app idea.

So, basically, Richard Kaye knew Minesweeper was hard, but wasn't quite sure how hard. He arranged mines on the board so that they would simulate logic circuits (AND, OR, NOT...). He then correlated the logic circuits to a previously-known NP-complete problem, SAT.

I found a version of Minesweeper online that allows players to write Java code in order to solve the game, but unfortunately, it doesn't appear to be working.

The reason I'm probably interested in this is because when I learned how to play this game many, many years ago (before I was programming), I started to write an algorithm for it. I thought, an algorithm is the perfect way to teach somebody how to do something -- it is all very logical. I shouldn't have to explain more.

References:
[1] http://web.mat.bham.ac.uk/R.W.Kaye/minesw/minesw.htm
[2] "Minesweeper is NP-complete", Mathematical Intelligencer, vol 22, number 2, pp9-15, 2000.

~ Simply Advanced ~

ps - I'm very likely going to create apps that revolve around Minesweeper now. Actually, I was already considering it. That's how I found out about the NP-completeness.



2012-06-18

Third Choice Idea

I have just thought up with what I have now decided to call, a 'third-choice idea.' I think you understand what that means just from itself.

Usually people try to determine between two choices, this or that, right or wrong, yes or no. But, there is at least a third option, maybe. And this is a great time to mention fuzzy logic also, I'm glad I took that class at USF. And Isaac Asimov's The Relativity of Wrong while I am thinking of it.

I believe there is always another way to look at things happening around. Don't be satisfied with your current limited viewpoint.

Hmm, I guess compromise would be a synonym of third-choice. But, think of the word "compromise" as having a positive connotation.. at least you are getting part of something you wanted.

"Alternative" would be a better synonym, the way I'm thinking of a third choice ideas.. Perhaps even the word "innovative" would be my best choice for describing a third choice idea.

Now, when I start talking about third-choice ideas in my blog posts I'll have something to refer back to.

~ Simply Advanced ~

ps - I'm hoping my writing ability increases at least linearly, Ω(n) ;], with the number of posts I write.