Docsity

Notes on Artificial Intelligence Concepts | CAP 5635, Study notes of Computer Science

Partial preview of the text

Download Notes on Artificial Intelligence Concepts | CAP 5635 and more Study notes Computer Science in PDF only on Docsity!

  1. Garfield is a cat
  2. Garfield is a cartoon character
  3. All cats are animals
  4. All animals are beings
  5. All cats either love or hate dogs

Create Logic Statements for Each of the

Following English Sentences

  1. Everybody loves somebody
  2. Somebody only tries to hurt someone they do not love
  3. Odie is a dog
  4. Garfield tried to hurt Odie

Create Logic Statements for Each of the

Following English Sentences

Conversion to Clauses

  1. cat(garfield)
  2. cartoon-char(garfield)
  3. ∀ X. cat(X) => animal(X)
  4. ∀ X. animal(X) => being(X)
  5. ∀ X,Y. cat(X) ^ dog(Y) => [love(X,Y) v hate(X,Y)] ^~[love(X,Y) ^ hate(X,Y)]

Our Final Set of Clauses

  1. T => cat(garfield)
  2. T => cartoon-char(garfield)
  3. cat(X) => animal(X)
  4. animal(X) => being(X) 5a. cat(X) ^ dog(Y) ^ love(X,Y) ^ hate(X,Y) => F 5b. cat(X) ^ dog(Y) => love(X,Y) v hate(X,Y)
  5. being(X) ^ being(s(X)) => love(X,s(X))
  6. being(X) ^ being(Y) ^ tryhurt(X,Y) ^ love(X,Y) => F
  7. T => dog(odie)
  8. T => tryhurt(garfield,odie)

First we negate the statement: We add F: And convert to a Horn Clause:

Now we try to prove: ~ love(garfield,odie)

Now we have a problem. If we keep going with the facts thatwe have, we will not be able to resolve the rest of this expression! We are missing one fact:

Let’s add this fact and continue the process

cat(garfield) ^ animal(odie) => F^1

animal(odie) => F

T => Fprove is consistent with our model is false making the is F therefore, the statement that we were trying to original statement T:

“The sun is shining very bright today” “Teenagers often own sports cars” “ Unless you hear otherwise each friday” , we will have a quiz “During the develop (^) your pieces” opening of a chess game, it is best to “Sue it will be sunny” thinks it will rain on Saturday, but John thinks

Some knowledge is very hard to represent in logic:

A conviction of the truth of some statement An idea for which we ahve some supporting evidenceor some personal motivation to maintain

Unless you hear otherwise, assume ...

Other knowledge is based on a belief:

We often reason based on defaults:

Problems:

  • • Knowledge of system only increasesNew knowledge need not be verified to see if it is consistent
  • with oldNo need to remember logical steps involved in proving a fact since there is no danger of facts disappearing
  • • Incomplete informationChanging situations
  • Need to generate assumptions during problem solving Non-monotonic logic Pick the most probable choice is based on default reasoning:

Logics discussed so far are monotonic:

Cannot deal with:

Default Reasoning

  • What we as humans do when reasoning
  • Conclusions we draw can be defeated if newinformation arrives that contradicts old or undermines arguments used to draw conclusions ∀ X. mammal(X) => body-cover(X,hair) ∀ X. dog(X) => mammal(X)