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

  Explain findings after conducting search for .cde files

You work for mid-sized corporation known for its inventions which does a lot of copyright and patent work. Explain your findings after conducting Internet search for .cde files.

  Which industrialization essentially made us less independent

Many experts assert which industrialization has essentially made us less independent and more closely related to other people than ever before.

  Research details of ad of current web site or magazine

Pick a current web site or magazine ad for a complete, working computer system, including computer, monitor, keyboard, and software, together with extra devices such as a mouse or printer

  Create directories in home directory begin-mac-mac directory

Create following directories in your home directory cp_even, cp_mid,cp_iso,cp,thousand,cp_even. Examine files in the /usr/share/tcl8.3/encoding directory copy all files which begin with mac into mac directory.

  Determine characters in the encyclopedia

The text of the Encyclopedia Britannica is about 44 million words. For a sample of about 2000 words, the average word length was 6.1 characters per word. Approximately how many characters are there in the encyclopedia?

  Determine ones complement of sum eight-bit bytes

UDP and TCP use 1s complement for checksums. Assume you have the following 3 8-bit bytes: 01010101, 01110000, 01001100. Determine the 1s complement of sum of these 8-bit bytes?

  Create a driver class to instantiates-updates several object

Create a driver class called FlightTest whose main method instantiates and updates several Flight objects. Two classes are required for this project: Flight and FlightTest.

  What is the response time for jobs in observed system

We observe a closed system for 30 minutes, during which 1600 tasks are completed, from 12 terminals. Each terminal (source of tasks). What is the response time for jobs in the observed system?

  Create analysis and design project by part of local business

Recognize part of local business or organization which you can use for analysis and design project. You must explain the scope of project.

  Tools or techniques to use as a project manager

Identify at least three ideas, tools, or techniques that you have learned from this course and plan to use as a project manager. What will be most helpful to you?

  Computing conditional probability

Pprocessor failed sometime in the interval [4; 8] years. Given this information, what is the conditional probability that it failed before it was 5 years old?

  Computing new computer cost at the end of year

Assume that 5 years from now you would like to trade in the computer and purchase a new one. You expect at 5 % increase in price each year. What would the new computer cost at the end of year 5?

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