{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chapter8 - Knowledge Representation using First-Order Logic...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
C H A P T E R 8 H A S S A N K H O S R A V I S P R I N G 2 0 1 1 Knowledge Representation using First-Order Logic
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Outline What is First-Order Logic (FOL)? Syntax and semantics Using FOL Wumpus world in FOL Knowledge engineering in FOL Required Reading: All of Chapter 8
Image of page 2
Pros and cons of propositional logic Propositional logic is declarative -programming languages lack general mechanism for deriving facing from other facts Update to data structure is domain specific Knowledge and inference are separate Propositional logic allows partial/disjunctive/negated information unlike most programming languages and databases Propositional logic is compositional : meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of P 1,2 Meaning in propositional logic is context-independent unlike natural language, where meaning depends on context Look, here comes superman. Propositional logic has limited expressive power unlike natural language E.g., cannot say "pits cause breezes in adjacent squares“ except by writing one sentence for each square
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Wumpus World and propositional logic Find Pits in Wumpus world B x,y (P x,y+1 P x,y-1 P x+1,y P x-1,y ) (Breeze next to Pit) 16 rules Find Wumpus S x,y (W x,y+1 W x,y-1 W x+1,y W x-1,y ) (stench next to Wumpus) 16 rules At least one Wumpus in world W 1,1 W 1,2 W 4,4 (at least 1 Wumpus) 1 rule At most one Wumpus W 1,1 W 1,2 (155 RULES) Keep track of location L x,y FacingRight Forward L x+1,y
Image of page 4
First-Order Logic Propositional logic assumes the world contains facts , First-order logic (like natural language) assumes the world contains Objects : people, houses, numbers, colors, baseball games, wars, … Relations : red, round, prime, brother of, bigger than, part of, comes between, … Functions : father of, best friend, one more than, plus, …
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Logics in General Ontological Commitment: What exists in the world TRUTH PL : facts hold or do not hold.
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern