{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CNF_Horn 1 - – e.g p – A special clause The empty...

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

View Full Document Right Arrow Icon
Conjunctive Normal Form & Horn Clauses York University CSE 3401 Vida Movahedi York University- CSE 3401- V. Movahedi 1 02-CNF & Horn
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
Overview Definition of literals, clauses, and CNF Conversion to CNF- Propositional logic Representation of clauses in logic programming Horn clauses and Programs Facts Rules Queries (goals) Conversion to CNF- Predicate logic [ref.: Clocksin- Chap. 10 and Nilsson- Chap. 2] York University- CSE 3401 2 02-CNF & Horn
Image of page 2
Conjunctive Normal Form A literal is either an atomic formula (called a positive literal) or a negated atomic formula (called a negated literal) e.g. p, ¬q A clause is A literal, or Disjunction of two or more literals, or
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
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: – e.g. p, – A special clause: The empty clause, shown as □ , :- or {} • A formula is said to be in Conjunctive Normal Form (CNF) if it is the conjunction of some number of clauses York University- CSE 3401 3 r q p 02-CNF & Horn CNF (example) York University- CSE 3401 4 ) ( ) ( ) ( t r r s q q p ˄ ˅ p q ˅ q ¬s r ˅ ¬r t 02-CNF & Horn CNF- Facts • For every formula of propositional logic, there exists a formula A in CNF such that A is a tautology • A polynomial algorithm exists for converting to A • For practical purposes, we use CNFs in Logic Programming York University- CSE 3401 5 02-CNF & Horn...
View Full 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