{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

19-PredCalcResolution

19-PredCalcResolution - Discussion#19 Resolution with...

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

View Full Document Right Arrow Icon
Discussion #19 Chapter 11, Section 3 1/17 Discussion #19 Resolution with Predicate Calculus
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
Discussion #19 Chapter 11, Section 3 2/17 Topics Horn Clauses Dropping Quantifiers Unification Resolution
Image of page 2
Discussion #19 Chapter 11, Section 3 3/17 Horn Clause For resolution, the premises are in CNF. CNF: (… …) (… …) (… …) Each (… …) is a clause. A horn clause is a disjunction of literals that contains at most one positive (non-negative) literal. Horn clause: P ¬ Q ¬ R Horn clause: P Horn clause: ¬ P Not a horn clause: P Q ¬ R too many positive literals Note that, in general, a horn clause is an implication with a conjunction of all positive literals on the lhs and one positive (non- negated) literal on the rhs. Horn clause: P ¬ Q ¬ R ¬ Q ¬ R P ¬ (Q R) P (Q R) P Degenerate cases: Horn clause: P F P ¬ T P T P Horn clause: ¬ P ¬ P F P F Horn clause: ¬ P 1 ¬ P 2 ¬ P n ¬ (P 1 P 2 P n ) F P 1 P 2 P n F Not a horn clause: P Q ¬ R ¬ R P Q R (P Q)
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
Discussion #19 Chapter 11, Section 3 4/17 Horn Clauses Appear in 3 Forms 1. One positive literal and one or more negative literals. e.g. P ¬ Q ¬ R (Q R) P These are the Datalog rules. 2. One positive literal and no negative literals. i.e. P T P “We see P by itself as being true.” These are the Datalog facts. 3. No positive literal. ¬ P P F or ¬ P 1 ¬ P 2 ¬ P n P 1 P 2 P n F “When the consequent is false, we wonder what’s going on.” These are the Datalog queries either one query or several.
Image of page 4
Discussion #19 Chapter 11, Section 3 5/17 Horn Clauses with Variables and Quantifiers For horn clauses in Datalog, we put all clauses in Prenex Normal Form.
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
Image of page 6
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