Solution To Assignment 2 on Reasoning

advertisement
This is an assignment on Reasoning which covers various ways of Representation, Inference
rules, Propositional Logic, predicate logic (first order logic), logical reasoning, forward chaining,
backward chaining; AI languages and tools - Lisp, Prolog, CLIPS
ASSIGNMENT NO. : 02
Topic: Reasoning
Date of Submission: 29th Oct, 2015.
1. What are the syntactic elements of First Order Logic?
Ans: The basic syntactic elements of first-order logic are the symbols that stand for objects,
relations, and functions. The symbols,come in three kinds:
a) constant symbols, which stand for objects;
b) predicate symbols, which stand for relations;
c) and function symbols, which stand for functions.
We adopt the convention that these symbols will begin with uppercase letters.
Example:
Constant symbols : Richard and John;
predicate symbols : Brother, OnHead, Person, King, and Crown;
function symbol : Left Leg.
2. Explain Existential quantifiers with an example.
Ans: Universal quantification makes statements about every object.
It is possible to make a statement about some object in the universe without naming
it,by using an existential quantifier.
Example
“King John has a crown on his head”
x Crown(x) ^ OnHead(x,John)
x is pronounced “There exists an x such that ..” or “ For some x ..”
3. What is backward chaining?
Ans: In backward chaining, we start from a conclusion, which is the hypothesis we wish
to prove, and we aim to show how that conclusion can be reached from the rules and
facts in the database.
4. What is Validity of a sentence?
Ans: A sentence is valid or necessarily true if and only if it is true under all possible
interpretation in all possible world.
5. Explain Satisfy-ability of a sentence?
Ans: A sentence is satisfy-able if and only if there is some interpretation in some world for
which it is true.
Download