Describe how the method represents knowledge

Assignment Help Computer Engineering
Reference no: EM131182137

1. (Propositional Inferences)

For each of the following inferences, prove whether they hold or do not hold in propositional logic using the truth table method.

(a) |= ¬p ∨ p

(b) p |= q → p

(c) (p ∧ q) ∧ r |= p ∧ (q ∧ r)

(d) p ↔ q |= (q ↔ r) → (p ↔ r) (e) p ↔ q |= (p ∧ q) ∨ (¬p ∧ ¬q)

For each of the following inferences, prove whether they hold or do not hold in propositional logic using resolution.

(f) ¬(p ∨ q) |- ¬p

(g) p ∀ p ∨ q

(h) p ↔ q |- ¬(p ↔ ¬q)

(i) ∀ (¬p ∧ ¬q) → (p ↔ q)

(j) p → q, ¬r → ¬q € p → r

2. (Logic Puzzle)

Flatmates, from Logic Problems, Issue 10, page 35.

The following logic puzzle was presented in lectures and solved using Prolog. Here we will determine a solution and argue using interpretations as explained in lectures.

Six people live in a three-storey block of studio flats laid out as in the plan.

Flat 5

Flat 6

Flat 3

Flat 4

Flat 1

Flat 2

- Ivor and the photographer live on the same floor.
- Edwina lives immediately above the medical student.
- Patrick, who is studying law, lives immediately above Ivor, and opposite the air hostess.
- Flat4 is the home of the store detective.
- Doris lives in Flat2.
- Rodney and Rosemary are 2 of the residents in the block of flats.
- One of the residents is a clerk.

(a) Represent these facts as sentences in first-order logic.

(b) From the clues given, work out the name and situation of the resident of each flat. Using your formalisation in part (2a), is it possible to determine the name and situation of the resident of each flat? Show semantically how you determined your answer.

(c) If your answer to part (2b) was ‘no', indicate what further sentences you would need to add to your formalisation so that name and situation of the resident of each flat.

3.

Determining whether a set of clauses is satisfiable or not is a fundamental problem in knowledge representation and reasoning (and in artificial intelligence and computer science where it was the problem considered in describing the notion of NP-complete problems). In order to better understand the computational nature of the satisfiability problem, researchers have investigated various instances of the problem. One well studied instance is 3-SAT which focusses on the satisfiability of sets of clauses

(i.e., disjunctions of literals) which have exactly three literals. For example, {p ∨ q ∨ r, p ∨ ¬s ∨ t}.

3- SAT is known to be NP-complete.

It is also known that 3-SAT exhibits an easy-hard-easy computational pattern. Determining the satisifi- ability of sets of clauses that are small in relation to the total number of distinct propositional variables in the set is usually easy because there are fewer constraints in assigning truth values to the propo- sitional variables. Determining the satisifiability of sets of clauses that are large in relation to the total number of distinct propositional variables in the set is usually easy because there are too many constraints to assign truth values to the propositional variables and the set is unsatisfiable. Somewhere in between these two extremes the satisfiability problem becomes hard.

Your task in this question is to determine empirically at what point the satisfiability problem becomes difficult. More specifically, you are to determine, approximately, a constant value C for number of propositional variables n at which C.n clauses constitutes a hard satisifiability problem.

To help you in this task, the satisfiablity solver minisat is available on the CSE machines from:
~morri/bin/minisat
You can run this program as follows:
~morri/bin/minisat file.cnf
where file.cnf is a file containing clauses in CNF in DIMACS format. DIMACS format consists of three types of lines:

- lines beginning with the letter c are comments;

- one line with the format p cnf variables clauses where variables is the number of propositional variables and clauses is the number of clauses;

- lines specifying clauses where a positive literal is specified by a number (identifying the literal) and a negative literal is specified by the corresponding negative number; each line is terminated by the number 0.

For example, the set of clauses {p ∨ q ∨ r, p ∨ ¬s ∨ t} would be represented DIMACS format as:
c example CNF file with 5 propositional variables and 2 clauses p cnf 5 2
1 2 3 0
1 -4 5 0

While you can write your own satisfiability solver and are welcome to do so, your task is to write a program to randomly generate test files containing clauses and to use these test files to empirically determine the value C explained above.

You are then to write a report explaining your empirical results and how you determined the value C. The use of tables and graphs to support your results is desirable.

For this question you must submit your report as part of the PDF file containing your answers to this assignment along with any source code files used in answering this question.

4. (Resolution)

It is possible to consider several variants to the resolution proof procedure, some of which were men- tioned in lectures. We shall consider one variant here.

- A unit resolution is one in which a resolvent is obtained using at least one parent which is a unit clause (i.e., a single literal) or a unit factor1 of a parent clause.

- A unit deduction is one in which every resolution is a unit resolution.

- A unit refutation is a unit deduction of the empty clause.

(a) While completeness is an important consideration for automated deduction, so is efficiency. At times we may be willing to forego completeness for the sake of efficiency. Show that unit resolution is incomplete. [Hint: exhibit a set of clauses and explain your answer.]

(b) Given a set of Horn clauses, show that there is a unit refutation from S if and only if S is unsatisfiable.

5. (Knowledge Representation and Reasoning)

Select a method for knowledge representation and reasoning that we have not covered in lectures and write 1-2 pages addressing the following:

(a) briefly describe how the method represents knowledge and include an example;

(b) briefly describe the inference procedure(s) adopted by the method for reasoning; and,

(c) identify some importance issues in using the method (try and assess both advantages and short- comings).

Reference no: EM131182137

Questions Cloud

What would you put on the map that you drew for them : Is it possible for a single, readable map to answer every possible question? Does your goal for the map affect what you put on it?
Compute the dividends over the next five years : Suppose that a firm’s recent earnings per share and dividend per share are $2.50 and $1.30, respectively. Both are expected to grow at 8 percent. However, the firm’s current P/E ratio of 22 seems high for this growth rate. The P/E ratio is expected t..
Executing and closing and initiating and planning readings : Develop and complete the required items for case studies using the templates that will be supplied during the course.
Measures of variation seem to indicate that the variation : Given that this medication should be manufactured in a consistent way so that dosage amounts can be controlled, do the measures of variation seem to indicate that the variation is at an acceptable level? 672.2 679.2 669.8 672.6 672.2 662.2 662.7 6..
Describe how the method represents knowledge : Briefly describe how the method represents knowledge and include an example - briefly describe the inference procedure(s) adopted by the method for reasoning; and,
Find the break-even points in units-sales break-even point : The Kenergy Company is planning to manufacture and sell electronic alarm clocks.  Raw materials for each clock will be $3 and direct labor per clock will amount  of $6.  Fixed administrative overhead costs will amount to $24,000.  The clocks are expe..
Estimate of the true population proportion : Calculate the sample size that one would obtain using a 95% confidence level, estimated population standard deviation or estimate of the true population proportion, and a 5% margin of error. The testing population is 100. Sample size needed is 20...
Applicants for enrollment in the freshman class : A West Coast university has found that about 90% of its accepted applicants for enrollment in the freshman class will actually enroll. In 2007, 1360 applicants were accepted to the university. Within what limits would you expect to find the size o..
Do you believe critical thinking requires skepticism : Do you believe critical thinking requires skepticism, why or why not? For our purposes, critical thinking means being able to build and understand a reasoned argument, to apply skepticism to what we hear, and especially to recognize an incorrect or f..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Which would substitute a string for a replacement

How would I write down a shell script, change-lines, which will substitute a string for a replacement string for each occurance of the string in files specified? The original file will be saved, with the similar filename with the.

  Write down the largest and the smallest numbers to screen

Write down a Java program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen.

  Examine work-related project which used systems analysis

Create the 4-6-page paper (350 words per page) which examines work-related project which used systems analysis for selected business system at department or division level.

  Describe how left explanation is useful while formatting

Describe how left explanation is useful while formatting

  Questionpart 1-study and analyze the principles of

questionpart 1-study and analyze the principles of inheritance. take this term and describe it. examples have to be

  The aim of this project is to exercise and test your

the aim of this project is to exercise and test your ability to read and understand descriptions of data formats and to

  What is a data type in c

What is the difference between a constant and the variable in a program? Why would you use one or the other.

  What is online analytical processing system

What is online analytical processing system

  Design a combinational circuit that converts a binary number

Design a combinational circuit that converts a binary number of four bits to a decimal number in BCD. Note that the BCD number is the same as the binary number as long as the input is less than or equal to 9.

  How many register windows must be saved to memory

How many register windows must be saved to memory.

  Diffe-hellman algorithm

Alice and Bob use the Diffe-Hellman to agree on a secret key. They select the prime p = 11, and a primitive root mod 11 g = 2.

  Dma is executed by a dma controller that doesnt capture

write a 200- to 300-word short-answer response to the followingthe idea behind it is to free up the cpu so it can do

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