Describe constraints which encode that cell is observed

Assignment Help Basic Computer Science
Reference no: EM1388485

There is 3x3 grid. Each cell in grid may have a mine or not. For each cell, either it is observed or not. If cell is observed, an indicator for that cell is true iff that cell or one of its diagonally adjacent cells (northeast, northwest, southeast, southwest) has mine in it (note that the "or" here is a standard "disjunctive or", not an "exclusive or").

(a) Describe all binary variables required for propositional encoding of this Minesweeper problem. Provide your propositional variables interpretable names like m 1 2 for variable indicating whether mine is in cell (1, 2). As a function of n, how many variables are required to encode Minesweeper for grid of dimension n × n?

(b) Describe constraints which encode that cell (1, 2) is observed and indicates mine is not present, that cell (2, 1) is observed and indicates a mine is present, and that remaining cells are unobserved.

(c) Describe remaining constraints for this problem need to enforce consistency between all of variables. Note that corner, edge, and middle portions of grid should be treated separately when finding adjacency, e.g., a corner only has one diagonally adjacent cell whereas middle cell (2, 2) has four diagonally adjacent cells. Your constraint encoding must use ) and, and hence must not be in CNF.

(d) Give step-by-step CNF transformation of shortest axiom from (c) which involves the proposition m 1 1.

(e) Encode knowledge base constraints (b) and (c) in DIMACS CNF format explained below. In DIMACS comments, show mapping between variable names and DIMACS variable IDs (e.g., m 1 2 ! 5). Write listing of your DIMACS file. To avoid errors, it is strongly recommended that you write short program or script to generate DIMACS file automatically.

Reference no: EM1388485

Questions Cloud

Question about virology : It is January and the starting of a new semester. Just as you get settled in to your new routine, you begin to notice that illness is spreading across campus and other students in your classes are so sick they do not come to virology class.
Explain the difference between phenotype : Assume you are a clinician in a small hospital and are monitoring the progression of myclonic epilepsy in twin boys. One twin remains only mildly affected by the condition.
Probability of selecting marbles : A bowl with 10 marbles: 2 red marbles, 3 green marbles, and 5 blue marbles. We randomly select 4 marbles from the bowl, WITH REPLACEMENT, that is once a marble is selected, its color is noted and the marble is put back in the bowl (notice this doe..
Add the form which includes richtextbox control : Add the form which includes RichTextBox control and several predefined template letters. This part of program would be used to write letters to your customers.
Describe constraints which encode that cell is observed : Describe constraints which encode that cell (1, 2) is observed and indicates mine is not present, that cell (2, 1) is observed and indicates a mine is present, and that remaining cells are unobserved.
Create software to perform advanced geometric calculations : You are hired by the engineering company to create software which performs advanced geometric calculations. Your new boss asked you to create the application
A quality analyst wants to construct a sample mean chart : A quality analyst wants to construct a sample mean chart for controlling a packaging process. He knows from past experience that the process standard deviation is two ounces
Binding ribosomes and synthesizing leader peptides : Create a model that would permit the attenuation region to no longer be involved in binding ribosomes and synthesizing leader peptides after the attenuation decision is made.
Consumers to determine their ranked preferences : A market research company surveyed consumers to determine their ranked preferences of energy drinks among the brands Monster, Red Bull, and Rockstar.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Sketch hierarchy chart and draw logic for program

Sketch the hierarchy chart and draw the logic for program which comprises housekeeping, detail loop and end-of-job modules and which computes service charge customers.

  Write responsibility of professionals have to society

Write responsibility do computing professionals have to society at large and to other members of profession? Do they have any responsibilities or are their working lives only measured.

  Detection software automatically analyzes network traffic

What detection software automatically analyzes all network traffic. Assesses system vulnerabilities, recognizess any unauthorized access (intrusions).

  Identify and analyze the perceived and real benefits

Relative advantage is the degree to which a new technology is perceived to be superior to current technology. An company is more likely to adopt new technology when it perceives greater relative benefit compared to current technology.

  Explaining initial values of cache tags and cache lines

Assuming that the initial values of the cache tags and the cache lines are completely arbitrary, Also, show how the cache tags will change for each of the above steps. You should justify your answer.

  Impact of activities called ping sweeps and port scans

Your boss has just heard about some nefarious computer activities called ping sweeps and port scans. He wants to know more about them and what the impact of these activities might be on your company.

  Optimal substructure of matrix-chain multiplication

Matrices so as to maximize, rather than minimize, number of scalar multiplications. Does this problem show  optimal substructure?

  Significant questions software installed by cable personnel

Interesting post on the computer discussion site (Slashdot) raises some significant questions about software installed by cable personnel.

  Fork function

Create a C program that takes an integer argument from the command line and outputs sum of all digits of the integer. For example, the result of the invocation sum of digits 12345 should be fifteen.

  Describe object management group-s purpose-influence on uml

Investigate the Object Management Group (OMG). Discuss your findings. Describe what it is, its purpose, and its influence on UML and the object approach to systems development.

  Write an excel nested if statement use the value

Write an excel nested if statement that will Use the value in cell A1 to determine which 2 cell values in column c that it falls between and enter the lower amount.

  How much laser be tipped before light no longer continues

If a laser is to be pointed into the end of the fibre, but is "tipped" to one side by θ degrees, how much can the laser be "tipped" before the light no longer continues down the fibre?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd