Professional Documents
Culture Documents
o Atomic sentences are the most basic sentences of first-order logic. These
sentences are formed from a predicate symbol followed by a parenthesis with a
sequence of terms.
o We can represent atomic sentences as Predicate (term1, term2, ......, term n).
Example: Ravi and Ajay are brothers: => Brothers (Ravi, Ajay).
Chinky is a cat: => cat (Chinky).
Complex Sentences:
Consider the statement: "x is an integer.", it consists of two parts, the first part x is
the subject of the statement and second part "is an integer," is known as a predicate.
Universal Quantifier:
Universal quantifier is a symbol of logical representation, which specifies that the
statement within its range is true for everything or every instance of a particular
thing.tgb6
25
05r
o For all x
o For each x
o For every x.
Example:
All man drink coffee.
Let a variable x which refers to a cat so all x can be represented in UOD as below:
∀x man(x) → drink (x, coffee).
It will be read as: There are all x where x is a man who drink coffee.
Existential Quantifier:
Existential quantifiers are the type of quantifiers, which express that the statement within
its scope is true for at least one instance of something.
If x is a variable, then existential quantifier will be ∃x or ∃(x). And it will be read as:
Example:
Some boys are intelligent.
It will be read as: There are some x where x is a boy who is intelligent.
Points to remember:
o The main connective for universal quantifier ∀ is implication →.
o The main connective for existential quantifier ∃ is and ∧.
Properties of Quantifiers:
o In universal quantifier, ∀x∀y is similar to ∀y∀x.
o In Existential quantifier, ∃x∃y is similar to ∃y∃x.
o ∃x∀y is not similar to ∀y∃x.
Free Variable: A variable is said to be a free variable in a formula if it occurs outside the
scope of the quantifier.
Even Planning is an important part of Artificial Intelligence which deals with the tasks
and domains of a particular problem. Planning is considered the logical side of acting.
Everything we humans do is with a definite goal in mind, and all our actions are oriented
towards achieving our goal. Similarly, Planning is also done for Artificial Intelligence.
That is why Planning is considered the logical side of acting. In other words, Planning is
about deciding the tasks to be performed by the artificial intelligence system and the
system's functioning under domain-independent conditions.
What is a Plan?
We require domain description, task specification, and goal description for any planning
system. A plan is considered a sequence of actions, and each action has its
preconditions that must be satisfied before it can act and some effects that can be
positive or negative.
So, we have Forward State Space Planning (FSSP) and Backward State Space
Planning (BSSP) at the basic level.
1. Forward State Space Planning (FSSP)
FSSP behaves in the same way as forwarding state-space search. It says that given an
initial state S in any domain, we perform some necessary actions and obtain a new state
S' (which also contains some new terms), called a progression. It continues until we
reach the target position. Action should be taken in this matter.
So for an efficient planning system, we need to combine the features of FSSP and BSSP,
which gives rise to target stack planning which will be discussed in the next article.
The start position and target position are shown in the following diagram.
o Choose the best rule to apply the next rule based on the best available guess.
o Apply the chosen rule to calculate the new problem condition.
o Find out when a solution has been found.
o Detect dead ends so they can be discarded and direct system effort in more useful
directions.
o Find out when a near-perfect solution is found.
1. Start by pushing the original target onto the stack. Repeat this until the pile is empty. If
the stack top is a mixed target, push its unsatisfied sub-targets onto the stack.
2. If the stack top is a single unsatisfied target, replace it with action and push the action
precondition to the stack to satisfy the condition.
iii. If the stack top is an action, pop it off the stack, execute it and replace the knowledge
base with the action's effect.
Conditional Probability
The probability of an event A based on the occurrence of another event B is
termed conditional Probability. It is denoted as P(A|B) and represents the
probability of A when event B has already happened.
Certainty Factor in AI
The Certainty Factor (CF) is a numeric value which tells us about how likely an
event or a statement is supposed to be true. It is somewhat similar to what we
define in probability, but the difference in it is that an agent, after finding the
probability of any event to occur cannot decide what to do. Based on the
probability and other knowledge that the agent has, this certainty factor is
decided through which the agent can decide whether to declare the statement
true or false.
The value of the Certainty factor lies between -1.0 to +1.0, where the negative
1.0 value suggests that the statement can never be true in any situation, and the
positive 1.0 value defines that the statement can never be false. The value of
the Certainty factor after analyzing any situation will either be a positive or a
negative value lying between this range. The value 0 suggests that the agent has
no information about the event or the situation.
A minimum Certainty factor is decided for every case through which the agent
decides whether the statement is true or false. This minimum Certainty factor is
also known as the threshold value. For example, if the minimum certainty
factor (threshold value) is 0.4, then if the value of CF is less than this value, then
the agent claims that particular statement false.