Computers and Technology

Minesweeper is a game played on a rectangular n by m grid. A number k is given representing the number of mines that are hidden in the grid, with each grid location having either zero or one mine; however, the locations of the mines are unknown. Some locations of the grid are labeled with numbers between 0 and 8, representing the number of adjacent locations with mines (diagonally adjacent is counted as adjacent, and there can be no mine on the labeled grid location). A Minesweeper position is thus a specification of n, m,k and the numeric labels for labeled grid locations. Given such a position, solution to the game is a selection of k grid locations proposed for the mines such that each numeric label "i" is adjacent to exactly "i" selected mine locations. When playing this game, a player wants to identify safe grid locations, that is, grid locations where no solution places a mine.

Required:
a. Define a decision problem in NP that is being solved by a player trying to identify whether a particular grid location is safe or not safe. (Hint: it will matter whether "yes" or "no" means safe.)
b. Argue that your decision problem is in the class NP.
c. Suppose you wanted to show your problem NP-hard. What reduction could you find to show this?

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:50, rainbowprincess200
Using the artofstat website, run a permutation test to see if there is a difference in the mean amount of time spent on emails per day between in state and out of state students. (make sure to generate 10,000 permutations.) in state students: 2 3 3 6 2 1 1 5 3 2.5 out of state students: 1 2 2 1 2 1 4 3 9 1 10 1 3 what is the p-value?
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
image
Computers and Technology, 23.06.2019 03:30, bellsbella34
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, caseypearson377
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
Do you know the correct answer?
Minesweeper is a game played on a rectangular n by m grid. A number k is given representing the numb...

Questions in other subjects:

Konu
History, 14.07.2019 18:40