How the method represents knowledge and include an example

Assignment Help Computer Engineering
Reference no: EM131184008

Assignment

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. (Satisfiability)

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).

In answering this question some sources you might consult include:

• Ronald Brachman and Hector Levesque, Knowledge Representation and Reasoning, Morgan Kauf- mann, 2004.
• Stuart Russell and Peter Norvig, Artificial Intelligence: A Modern Approach, Third Edition, Prentice Hall, 2010.
• The Principles of Knowledge Representation and Reasoning conference series (www.kr.org).
• The Association for the Advancement of Artificial Intelligence conference series (www.ijcai.org).
• The International Joint Conference on Artificial Intelligence series (www.aaai.org).

Reference no: EM131184008

Questions Cloud

Is demand projected to rise in the future : Using data available at the bureau's Web site, www.bls.gov, try to look up information on an occupation that interests you. How does it pay, compared to other jobs? Is demand projected to rise in the future?
Should dataclear go global : Please explain what the source of the central issue(s) or problem(s) is. Why is the situation the way it is? Please explain what the implications and/or ramifications of the situation are;
Marketing strategies of carrefour in malaysias retailing : Write the two or three suitable alternative marketing strategies of Carrefour in Malaysia's Retailing Industry and solutions and recommendations.
Difference between inequality of incomes and capabilities : What is the difference between inequality of incomes and inequality of "capabilities"? How are the two related? Which one do you think deserves more attention from policymakers?
How the method represents knowledge and include an example : Briefly describe how the method represents knowledge and include an example. Briefly describe the inference procedure(s) adopted by the method for reasoning; and,
Psychological factor is relevant to the perpetuation : Why do you suppose this is? Do you think this psychological factor is relevant to the perpetuation of inequality in society?
What level of taxation on the rich do you think is fair : Do you generally believe that raising taxes on the rich is an appropriate approach for reducing economic inequality? What level of taxation on the rich do you think is fair? (Note that we will also consider this topic in the next chapter.)
What are identified opportunities for improvement : Apply IOMs six aims for improvement to an experience you or someone you know has had.- How do you assess the experience, and what are identified opportunities for improvement?
Does the essay make a strong first impression : If there is one thing that you could learn from this person's draft and apply to your own future work, what would it be? Why did you pick that element? Does the support work for the essay or against it? Why?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a function that converts an input of some integer

Write a function that converts an input of some integer number of nickels into outputs of integer numbers of dollars, quarters, and nickels. Do not write a main function. Your function does not do cin or cout.

  Compare x.509 pki and pgp pki in different aspects

Compare X.509 PKI and PGP PKI in different aspects, e.g. Certs format, user identification, key management, scalability, usage, applications, business models, etc.

  Two different recent operating system security patches and

write a report of around 3500 words that coversthe type of organisations and communities that contribute to resources

  Write the function insertion_sort

Write the function insertion_sort(a) that takes an array of numbers and returns an array of the same values in nondecreasing order, without modifying a.

  Testing program using numbers of command line arguments

Test your program thoroughly utilizing different numbers of command line arguments.

  Questionexplain the technical recommendation for addressing

questionexplain the technical recommendation for addressing security requirements in the overall technical design of

  Designing the class diagram

Instructors are allocated to one (or more) departments. One instructor also serves a department chair. Design a detailed class diagram in order to represent the above information.

  Explain two specific products from different vendors

At this point, you have been introduced to various security tools. You are to take one of the five identified categories of tools and identify two specific products from different vendors.

  Describes a function named insidecircle

Describes a function named insideCircle

  Malware paper - how effective it is at evading detection

Malware Paper, Note three kinds of malware that are active threats today. Note the following for each type: How common it is, A brief explanation of how it works and How effective it is at evading detection

  Write another program that deserializes objects from file

Write a class named TestScores . The class constructor should accept an array of test scores as its argument. The class should have a method that returns the average of the test scores.

  How to validate a text field on a form

Write down a JavaScript function - included in a XHTML document - to validate a text field on a form which is to contain an integer, eg 2, 4567, 87612 etc ... without using any built functions like IsNaN an so fourth.

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