How backtracking search can be used to solve this problem

Assignment Help Computer Engineering
Reference no: EM131308414

Assignment

1. Consider a scheduling problem, where there are five activities to be scheduled in four time slots. Suppose we represent the activities by the variables A, B, C, D, and E, where the domain of each variable is {1, 2, 3, 4}. The constraints for the scheduling problem are: A > D, D > E, B ≥ A, B ≠ C, C ≠ A, C ≠ D, C ≠ D + 1, and C > E.

(a) Show how arc consistency (AC-3) can be used as a preprocessing first step. To do this you must:

(i) Draw the constraint graph (HINT: all of the constraints are binary and bidirectional);

(ii) Show an initial queue with the constraints in the order given above (the A - D constraint at the front of the queue) and then show how the queue changes throughout the algorithm; and

(iii) Show a table that illustrates how the algorithm progresses-the table consists of rows containing the constraint being considered, the elements in the domains of the two variables connected by the constraint after the arc is made consistent, and the arcs that are added to the queue by this step. Marks will be given for each of these elements of your answer.

(b) With the constraint graph preprocessed by AC-3 in part (a), show how backtracking search can be used to solve this problem. To do this, you must draw the search tree generated to find all answers. Indicate (in a summary) the valid schedule(s) that are found. Use the following variable ordering: A, D, E, C, and B.

2. You are given a Knowledge Base consisting of the following definite clauses:

B ∧ C ⇒ A

D ⇒ B

E ⇒ B

C

H ⇒ D

E

G ∧ B ⇒ F

C ∧ K ⇒ G

A ∧ B ⇒ J

Give a top-down derivation for A.

3. Convert the following FOL sentences into clauses. Show all intermediate conversion steps. Include steps that are required to incorporate the clauses into an empty Knowledge Base.

(a) ∃x∀yL(x, y)

(b) ∀x∃yL(y, x)

(c) ∀z{Q(z) ⇒ {-∀x∃y[P(y) ⇒ P(g(z, x))]}}

4. Give a most general unifier for the following pairs of expressions (if one doesn't exist, state the reason why):

(a) P(x, B, y, D) and P(A, w, C, z)

(b) Q(x, B,  y, D) and Q(A, w, C, x)

(c) P(f(x), g(g(B))) and P(z, g(y))

(d) G(f(x), r(x), T) and G(x, r(q), q)

(e) B(v(x, a), z) and B(p, p)

5. You are given the following Knowledge Base (already converted to clause form):

¬B(x) ν C(x), ¬C(K) ν D(L), -C(M) ν E(N), D(w) ν ¬E(y).

Using resolution, prove ∃x¬B(x). Provide a diagram as shown in the book/slides. Be certain to show any unifiers that are required in the resolution proof.

Reference no: EM131308414

Questions Cloud

Statements is correct in relation to independent projects : Which one of the following statements is correct in relation to independent projects?
How situation would be handled and what steps to begin with : Discuss how the situation would be handled and what steps to begin with. Examine how data would be retrieved and/or destroyed. Address what steps would be taken to determine the culprit.
Basic social obligation of a business organization : What are the basic social obligation of a business organization? Does this conflict wth the profit objectives of the business? What is social audit?
Examine the significant ways in which business operations : Describe one (1) scenario in which the selected transaction management or concurrency control method is needed. Examine the significant ways in which business operations would have to change if concurrency management methods were not available.
How backtracking search can be used to solve this problem : With the constraint graph preprocessed by AC-3 in part (a), show how backtracking search can be used to solve this problem. To do this, you must draw the search tree generated to find all answers. Indicate (in a summary) the valid schedule(s) that..
Discussion-integration of technology : Technology has changed the way we conduct business on a daily basis. A number of organizations have opted for integrating systems and sharing information with their counterparts.
What are the source and destination port numbers : What are the source and destination port numbers when an SNMP message carries one of the following PDUs?
How does this differ from a network diagram : Why does keeping good records help in managing your network?What type of information is shown on a wiring diagram? How does this differ from a network diagram?
Strategy consulting companys products or services : Where does the strategy-consulting firm concentrate its efforts within the processes of strategy assessment, formulation, decision making, implementation, and evaluation?

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is cascading style sheets (css)

Cascading Style Sheets (CSS), a multi-featured specification for HTML, offers designers an expedient, powerful process to control formatting and layout of Web pages.

  What are the problems related with generalizing the results

question 1 what are the problems associated with generalizing the results from controlled tests on information systems

  Pros and cons of these three approaches

It is possible to design and edit web pages in a number of ways. For example, we could edit HTML tags by hand, use a visual editor such as Dreamweaver or use an HTML generator to edit a layout and then create the HTML from it.

  Assume the javascript variables greeting

Write down a line of code to replace line 3 above which will create a greeting 'Hello Earthling!' with a space in between 'Hello' and 'Earthling' and an exclamation mark at the end.

  Explain what is an xml element

How can I make my existing HTML files work with XML?explain What is an XML element.

  Information system prototyping builds an experimental

1.determine the correlation between a problem-solving ability and programming proficiency and how you would use

  Write a program that computes the average of five exam score

Write a program that computes the average of five exam scores. Declare and perform a compile-time initialization with five values. Use a constant to define the number of scores. Print all scores and the average value formatted with no digits to th..

  Perform technology analysis to identify ways to help student

Suppose that your university is having a dramatic increase in enrollment. Perform a technology analysis to identify new ways to help students complete their studies and graduate.

  Find out the average amount of money

Find out the average amount of money that it has taken to do maintenance on each different model of jumbo jet (defined to be any airplane model whose capacity is at least 150).

  Compute the overall return on investment of the project

compute the overall return on investment of the project and then present a breakeven analysis , perform the BEA at what point does breakeven occur.

  Determine the size of such an application

Complete a function point worksheet to determine the size of such an application. You will need to make some assumptions about the application's interfaces and the various factors that affect its complexity.

  Find out how many of each kind of bill to dispense

Write down a program for an automatic teller machine that dispenses money. The user should enter the amount desired (a multiple of ten dollars) and the machine dispenses this amount using the least number of bills. The bills dispensed are 50s, 20s..

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