CS621: Artificial Intelligence

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12–Prolog examples: Himalayan club, member, rem_duplicate,
CSC411Artificial Intelligence 1 Chapter 3 Structures and Strategies For Space State Search Contents Graph Theory Strategies for Space State Search Using.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
Standard Logical Equivalences
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9,10,11- Logic; Deduction Theorem 23/1/09 to 30/1/09.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
CS344: Artificial Intelligence
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–5 and 6: Propositional Calculus.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 7– Predicate Calculus and Knowledge Representation.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–28, 29: Predicate Calculus;
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10a- knowledge representation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
Inference and Resolution for Problem Solving
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 21– Predicate Calculus and Knowledge Representation 7 th September,
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 13– Search.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 22, 23- Prolog.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
CS460/626 : Natural Language Processing/Speech, NLP and the Web (Lecture 37– Semantics; Universal Networking Language) Pushpak Bhattacharyya CSE Dept.,
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 17, 18: Predicate Calculus 15.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
CS : NLP, Speech and Web-Topics-in-AI Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 35: Semantic Relations; UNL; Towards Dependency Parsing.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 15, 16: Predicate Calculus 8.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–4: Fuzzy Control of Inverted.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9 Continuation of Logic and Semantic Web.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–3: Fuzzy Inferencing: Inverted.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
CS621: Artificial Intelligence Lecture 28: Propositional calculus; Puzzle Solving Pushpak Bhattacharyya Computer Science and Engineering Department IIT.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 14: AI, Logic, and Puzzle Solving.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 13– Search 17 th August, 2010.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture /08/05 Prof. Pushpak Bhattacharyya Fuzzy Logic Application.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 35–Himalayan Club example; introducing Prolog.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 26/Feb/2007.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–6: Propositional calculus, Semantic Tableau, formal System 2 nd August,
CS621: Artificial Intelligence
Knowledge Representation
CS344: Introduction to Artificial Intelligence (associated lab: CS386)
CS 621 Artificial Intelligence Lecture 1 – 28/07/05
CS 621 Artificial Intelligence Lecture 4 – 05/08/05
Back to “Serious” Topics…
CS621: Artificial Intelligence
Knowledge Representation
CS621 : Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
Prof. Pushpak Bhattacharyya, IIT Bombay
Artificial Intelligence
Presentation transcript:

CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 34– Predicate Calculus and Himalayan Club example (lectures 32 and 33 were on HMM+Viterbi combined AI and NLP)

Resolution - Refutation man(x) → mortal(x) Convert to clausal form ~man(shakespeare) mortal(x) Clauses in the knowledge base man(shakespeare) mortal(shakespeare)

Resolution – Refutation contd Negate the goal ~man(shakespeare) Get a pair of resolvents

Resolution Tree

Search in resolution Heuristics for Resolution Search Goal Supported Strategy Always start with the negated goal Set of support strategy Always one of the resolvents is the most recently produced resolute

Inferencing in Predicate Calculus Forward chaining Given P, , to infer Q P, match L.H.S of Assert Q from R.H.S Backward chaining Q, Match R.H.S of assert P Check if P exists Resolution – Refutation Negate goal Convert all pieces of knowledge into clausal form (disjunction of literals) See if contradiction indicated by null clause can be derived

P converted to Draw the resolution tree (actually an inverted tree). Every node is a clausal form and branches are intermediate inference steps.

Terminology Pair of clauses being resolved is called the Resolvents. The resulting clause is called the Resolute. Choosing the correct pair of resolvents is a matter of search.

Predicate Calculus Rules Introduction through an example (Zohar Manna, 1974): Problem: A, B and C belong to the Himalayan club. Every member in the club is either a mountain climber or a skier or both. A likes whatever B dislikes and dislikes whatever B likes. A likes rain and snow. No mountain climber likes rain. Every skier likes snow. Is there a member who is a mountain climber and not a skier? Given knowledge has: Facts Rules

Predicate Calculus: Example contd. Let mc denote mountain climber and sk denotes skier. Knowledge representation in the given problem is as follows: member(A) member(B) member(C) ∀x[member(x) → (mc(x) ∨ sk(x))] ∀x[mc(x) → ~like(x,rain)] ∀x[sk(x) → like(x, snow)] ∀x[like(B, x) → ~like(A, x)] ∀x[~like(B, x) → like(A, x)] like(A, rain) like(A, snow) Question: ∃x[member(x) ∧ mc(x) ∧ ~sk(x)] We have to infer the 11th expression from the given 10. Done through Resolution Refutation.

Club example: Inferencing member(A) member(B) member(C) Can be written as

Negate–

Now standardize the variables apart which results in the following member(A) member(B) member(C)

10 7 12 5 4 13 14 2 11 15 16 13 2 17

Assignment Prove the inferencing in the Himalayan club example with different starting points, producing different resolution trees. Think of a Prolog implementation of the problem Prolog Reference (Prolog by Chockshin & Melish)

From predicate calculus Problem-2 From predicate calculus

A “department” environment Dr. X is the HoD of CSE Y and Z work in CSE Dr. P is the HoD of ME Q and R work in ME Y is married to Q By Institute policy staffs of the same department cannot marry All married staff of CSE are insured by LIC HoD is the boss of all staff in the department

Diagrammatic representation CSE ME Dr. P Dr. X Z Y R Q married

Questions on “department” Who works in CSE? Is there a married person in ME? Is there somebody insured by LIC?

Text Knowledge Representation

A Semantic Graph bought student June computer new past tense agent in: modifier a: indefinite the: definite student past tense agent bought object time computer new June modifier The student bought a new computer in June.

Representation of Knowledge UNL representation Representation of Knowledge Ram is reading the newspaper

UNL: a United Nations project Dave, Parikh and Bhattacharyya, Journal of Machine Translation, 2002 Started in 1996 10 year program 15 research groups across continents First goal: generators Next goal: analysers (needs solving various ambiguity problems) Current active language groups UNL_French (GETA-CLIPS, IMAG) UNL_Hindi (IIT Bombay with additional work on UNL_English) UNL_Italian (Univ. of Pisa) UNL_Portugese (Univ of Sao Paolo, Brazil) UNL_Russian (Institute of Linguistics, Moscow) UNL_Spanish (UPM, Madrid)

Knowledge Representation UNL Graph - relations read agt obj Ram newspaper

Knowledge Representation UNL Graph - UWs read(icl>interpret) obj agt Ram(iof>person) newspaper(icl>print_media)

Knowledge Representation UNL graph - attributes @entry @present @progress read(icl>interpret) obj agt @def newspaper(icl>print_media) Ram(iof>person) Ram is reading the newspaper

The boy who works here went to school Another Example The boy who works here went to school plt agt @ entry @ past school(icl>institution) go(icl>move) boy(icl>person) work(icl>do) here @ entry plc :01

What do these examples show? Logic systematizes the reasoning process Helps identify what is mechanical/routine/automatable Brings to light the steps that only human intelligence can perform These are especially of foundational and structural nature (e.g., deciding what propositions to start with) Algorithmizing reasoning is not trivial

About the SA/GA assignments

Key points 1. SA and GA are randomized search algorithms;      (a) why does one do randomized search?      (b) To QUICKLY find a solution even if the the solution is not FULLY accurate 2. For example, TSP is NP hard; so any algorithm that purports to give the correct tour ALWAYS is going to take exponential amount of time. 3. But it may be alright to get the solution certain percentage of time. Then one can use SA/GA. 4. For sorting , consider getting the sorted sequences for any set of of numbers of any sequence length, say 200,000 numbers.

Key points cntd 5. It may be OK to get an ALMOST sorted sequence QUICKLY; so see if SA and GA can be used 6. SO what is coming out strongly is TIME vs. ACCURACY TRADE-OFF 7. ***THE ABOVE HAS TO COME OUT IN YOUR ASSIGNMENT 8. What about 8 puzzle? Optimal path is not needed.

Key points cntd 9. But you HAVE TO demonstrate randomness. That means Ther are times when the goal state will not be reached; 10. The above will be the case when randomness is INTRODUCED in the system by making the tempearure HIGH. 11. Thus a key point of the assignment is the EFFECT OF HIGH TEMPERATURE on the system. 12. Another point about the next state: make sure you pick it up RANDOMLY and not deterministically. 13. Think about the connection between BFS and random search. The former will guarantee finding the goal state, the latter not. But there may be gain in time complexity.