Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9353734

Have any Question?


Related Questions in Computer Engineering

Suppose you take out a loan for 5000 at 6 ordinary interest

Suppose you take out a loan for $5,000, at 6% ordinary interest. If the amount of interest is $91.67, what is the time period? (Round to next higher day)

Need help with a java program that takes two arrays a and b

Need help with a Java program that takes two arrays a and b of length 5 storing int values, and returns the dot product of a and b. That is, it returns an array c of length n such that c[i]=a[i]*b[i].

Discuss how the scope of computer security grew from

Discuss how the scope of computer security grew from physical security to include : Securing the data Limiting random and unauthorized access to that data. Involvement of personnel from multiple levels of the organizatio ...

Lnguage isnbspcgenerate a sparse vector class with

Language is  C++ Generate a sparse vector class with * operator, such as  Vector Vector::operator * (Vector& param) A multiplication (*) operators returns element-wise multiplication of two vectors in another vector. Giv ...

A supermarket awards coupons depending on how much a

A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth eight percent of that amount. The following table shows the percent used to ca ...

In system analysisdiscuss and give suggestions or comments

In system analysis Discuss and give suggestions or comments for the following questions: 1. Discuss about the project plan (activities and scheduling) 2. What are the new tools and strategies used in project plan or mana ...

We have a scheme program belowdefine lst i think you like

We have a Scheme program below: (define lst '(I (think you) like me)) (set! lst (cdr lst)) (set-car! lst '(thinks you)) (set! lst (cons 'he (cons 'also lst))) (a) For each execution step of the above program, draw the me ...

Show proof of correctness and state and solve the

Show Proof of correctness and state, and solve the Recurrence using the Master Theorem. Let G = G(V, E) be an arbitrary, connected, undirected graph with vertex set V and edge set E. Assume that every edge in E represent ...

Question suppose a computer using direct mapped cache has

Question : Suppose a computer using direct mapped cache has 2 20 words of main memory and a cache of 32 blocks, where each cache block contains 16 words. a. How many blocks of main memory are there? b. What is the format ...

Question creating an interface please respond to the

Question: "Creating an Interface" Please respond to the following: • Imagine you are managing a design project that will create an interface for automobile mechanics. The interface would be used by the mechanics to look ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As