Artificial Intelligence LECTURE 2 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.

Slides:



Advertisements
Similar presentations
Artificial Intelligence: Natural Language and Prolog
Advertisements

Human Computer Interface
Software Development Languages and Environments. Programming languages High level languages are problem orientated contain many English words are easier.
CSC411Artificial Intelligence 1 Chapter 3 Structures and Strategies For Space State Search Contents Graph Theory Strategies for Space State Search Using.
Logic Programming Automated Reasoning in practice.
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
CS 484 – Artificial Intelligence
Intelligent systems Lecture 6 Rules, Semantic nets.
Games and Simulations O-O Programming in Java The Walker School
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
A Brief History of Artificial Intelligence
Programming Languages Language Design Issues Why study programming languages Language development Software architectures Design goals Attributes of a good.
1 Lecture 34 Introduction to Knowledge Representation & Expert Systems Overview  Lecture Objective  Introduction to Knowledge Representation  Knowledge.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
Querying and Sorting IT Key Ideas, Dynamic Database Systems, 2002 Chapter 3.
Artificial Intelligence CS105. Group Presentation Project Week of November 7 to November 11 Group presentation Groups of 3/4 – Each group will get 12/16.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Formal Models of Computation Part II The Logic Model
Knowledge Representation Semantic Network dan Frame.
Create Database Tables
Artificial Intelligence Introduction (2). What is Artificial Intelligence ?  making computers that think?  the automation of activities we associate.
Introduction to Artificial Intelligence. What is AI?
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Evolution of Programming Languages Generations of PLs.
Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College, London © Simon Colton.
Artificial Intelligence Lecture 2:Knowledge Representation I Faculty of Mathematical Sciences 4 th 5 th IT Elmuntasir Abdallah Hag Eltom.
Artificial Intelligence LECTURE 3 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
1 Artificial Intelligence Introduction. 2 What is AI? Various definitions: Building intelligent entities. Getting computers to do tasks which require.
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
The Teacher Computing Computer Languages [Computing]
Overall course structure AI Artificial Intelligence ( A modern approach ) AI-2 Spring semester TDT4171 Methods in artificial intelligence AI-1 Fall semester.
CSSE501 Object-Oriented Development. Chapter 11: Static and Dynamic Behavior  In this chapter we will examine the differences between static and dynamic.
Lectures on Artificial Intelligence – CS435 Conceptual Graphs
Chapter 13 Artificial Intelligence and Expert Systems.
CT214 – Logical Foundations of Computing Lecture 8 Introduction to Prolog.
Dr. Engr. Sami ur Rahman Research Methods in Computer Science Lecture: Data Analysis (Introduction to SPSS)
The AI War LISP and Prolog Basic Concepts of Logic Programming
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Intelligent Control Methods Lecture 7: Knowledge representation Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Logical and Functional Programming
Introduction to Prolog. Outline What is Prolog? Prolog basics Prolog Demo Syntax: –Atoms and Variables –Complex Terms –Facts & Queries –Rules Examples.
Knowledge Representation
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
Logic Programming Dr. Yasser Nada Fall 2010/2011 Lecture 1 1 Logic Programming.
Knowledge Based Information System
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
Use SPSS for solving the problems Lecture#21. Opening SPSS The default window will have the data editor There are two sheets in the window: 1. Data view2.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Abdul Rahim Ahmad MITM 613 Intelligent System Chapter 10: Tools.
Programming Language Concepts (CIS 635) Elsa L Gunter 4303 GITC NJIT,
Logic Programming Logic programming Candidates should be familiar with the concept of logic programming for declaring logical relationships.
Artificial Intelligence Knowledge Representation.
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
1 Introduction to Artificial Intelligence l Topic 1. A Brief History to Artificial Intelligence n Why we focus on “weak AI”? n Who is Turing? l Topic 2.
Definition and Technologies Knowledge Representation.
Artificial Intelligence 4. Knowledge Representation
Computer Languages [Computing] Computing.
Knowledge Representation
CHAPTER 1 Introduction BIC 3337 EXPERT SYSTEM.
KNOWLEDGE REPRESENTATION
TA : Mubarakah Otbi, Duaa al Ofi , Huda al Hakami
Dr. Yasser Nada Fall 2010/2011 Lecture 1
Weak Slot-and-Filler Structures
Knowledge Representation
Semantic Nets and Frames
Group Boxes, Radio buttons and Checked List Boxes
Presentation transcript:

Artificial Intelligence LECTURE 2 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1

Contents  AI programming languages  The fight between strong and weak AI  Knowledge representation ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 2

AI programming languages  PROLOG  LISP ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 3

PROLOG  PROgramming in LOGic is a language that enables programmers to build a database of FACTS and RULES.  queries are made, the system answers to those queries based on the knowledge (rules and facts) stored in the database Example: you store the following facts in database fruit(mango). fruit(apple). fruit(orange). juicyFruit(orange).

- Then ask question from the system as ?- fruit(mango). The prolog system will answer true

How to use PROLOG System Step#01: Open the prolog window by double clicking on the prolog icon (or right click on the prolog icon and then click Ok).

. The following window appeares

.. Step#02: Then click on the File => New

. Write the file name with the extension “.pl”, for example “firstprogram.pl” is a valid prolog file name. A new window (as shown in below figure) will appear, the program is written in this new window.

. Then go to File=>Save to save the program, then go to the first window and go to file=>consult and chose the program to load the program, (e.g. firstpro.pl).

. Now the program is loaded and you can pose queries in command window.

Operators used in RULES of prolog ENGLISH PROLOG And, or ; Only if :- Not not

Example of RULE Sibling(x,y) :- parent(z,x), parent(z,y). Only if z is parent of x and y then x and y are siblings

LISP The LISt Programming language resembles C++ and Pascal. When you enter (+ 1 1) The lisp replies => 2 (/ 25 5) => 5 "Hello, world!“ => "Hello, world!“ (setf x 5) ; Setf gives a value to a variable. It has a side => 5 ; effect and ALSO returns a value (setf y (reverse '(+ a b))) ; Reverse reverses a list. => (B A +)

The Chinese Room- an argument to supporters of strong AI Searle’s Chinese Room experiment was based on this idea and is described as follows: An English-speaking human is placed inside a room. This human does not speak any language other than English and in particular has no ability to read,speak,or understand Chinese. In other words,running a computer program that behaves in an intelligent way does not necessarily produce understanding, consciousness, or real intelligence.

Knowledge Representation  Semantic Nets  Inheritance  Frames  Object-oriented Programming  Search Spaces  Semantic Trees  Combinatorial Explosion  Problem Reduction  Goal Trees

Semantic Nets The semantic net is a commonly used representation in Artificial Intelligence. A semantic net is a graph consisting of nodes that are connected by edges. The nodes represent objects, and the links between nodes represent relationships between those objects. The links are usually labeled to indicate the nature of the relationship.

Semantic net example

Semantic nets have limitations, such as the inability to represent negations: “Fido is not a cat.” The specific objects are generally referred to as instances of a particular class. Fido is an instance of the class dog. Bob is an instance of the class Builder.

In-efficiency A simple representation for searching for a word in a dictionary would be to have the nodes arranged in a chain with one connection from the first node to the second, and then from the second to the third, and so on.

Inheritance C++/ Java support this As has been shown, although inheritance is a useful way to express generalities about a class of objects, in some cases we need to express exceptions to those generalities (such as, “Male animals do not give birth” or “Female dogs below the age of six months do not give birth”). In such cases, we say that the default value has been overridden in the subclass.

Frames Frame-based representation is a development of semantic nets and allows us to express the idea of inheritance.

Example

The main advantage of using frame-based systems for expert systems over the rule-based approach is that all the information about a particular object is stored in one place. In a rule-based system, information about Fido might be stored in a number of otherwise unrelated rules, and so if Fido changes, or a deduction needs to be made about Fido, time may be wasted examining irrelevant rules and facts in the system, whereas with the frame system, the Fido frame could be quickly examined.

Example 2

Object-Oriented Programming C++ JAVA C#

Search Space In simple terms, a search space is a representation of the set of possible choices in a given problem, one or more of which are the solution to the problem.

Search Spaces For example, attempting to find a particular word in a dictionary with 100 pages, a search space will consist of each of the 100 pages. The page that is being searched for is called a goal, and it can be identified by seeing whether the word we are looking for is on the page or not.

example