ai introduction

19
Artificial Intelligence Introduction: Prolog Presented by 1-Eng. Mahmoud Mostafa 2-Eng. Nourhan Essmat Fall 2015

Upload: mahmoudmhosny2717

Post on 29-Jan-2016

217 views

Category:

Documents


1 download

DESCRIPTION

Artificial Intelligence

TRANSCRIPT

Page 1: AI Introduction

Artificial IntelligenceIntroduction: Prolog

Presented by

1-Eng. Mahmoud Mostafa 2-Eng. Nourhan Essmat

Fall 2015

Page 2: AI Introduction

Before we start let us look for the following questions:

◦ Could something (Other than a creation of God) think?

◦ Is it possible to artificially produce machine, which has the components, which mirror the human body? If the answer to this question is yes how and why?

◦ Is it possible for a digital computer to think? If the answer to this question is yes, what make it

think?

Introduction

Page 3: AI Introduction

Programmed decisions in which the problem is:◦ Have a definite procedure.◦ Repetitive and routine.

Non-programmed decisions in which the problem is:◦ Novel and unstructured.◦ No cut-and dried method for handling the

problem.

Simon’s Types of decision

Page 4: AI Introduction

Usually computer outperform in the first. What about the 2nd?

Simon’s Types of decision

Page 5: AI Introduction

Here, we come to Simon’s problem solving phases.

◦ Searching environment for conditions calling for a solution (Intelligence)

◦ Inventing, Developing, and analyzing possible courses of action (Design)

◦ Selecting a course of action from those available (Choice)

◦ Assessing past choices (Review)

Simon’s Problem solving phases

Page 6: AI Introduction

Artificial Intelligence is the study of how to make computers do things at the

moments people do better.

Artificial Intelligence

Page 7: AI Introduction

Artificial Intelligence is Computer software that allows a computer (or

Robot) to perform tasks we could consider intelligent if done by a person

Another definition for AI is that

Page 8: AI Introduction

These tasks are in the following form:

◦ Giving expert advice.

◦ Understanding natural language, speaking intelligently.

◦ Recognizing complex patterns such as handwriting.

AI Tasks

Page 9: AI Introduction

There are many techniques in solving AI problems but in general there are three techniques:

◦ Search◦ Knowledge◦ Abstraction

AI techniques

Page 10: AI Introduction

Data: It is the fundamentals facts, figures, measurement, and observations without context or organization.

Information: It is processed data, Data that have been organized.

Knowledge: understanding derived from Information

Wisdom: It is the ability to use knowledge for purpose.

Knowledge

Page 11: AI Introduction

Declarative knowledge. ◦ Ex: Facts like personal data in database.

Procedural Knowledge. ◦ EX: steps for solving an algebraic equation.

Heuristic Knowledge. ◦ Ex: it is knowledge used to make a good

judgment.

Type of knowledge

Page 12: AI Introduction

Symbolic(formal language, equations)

Non-Symbolic (as images in early years)

Knowledge Representation and Organization

Page 13: AI Introduction

The most popular representation for knowledge is by symbolic logic.

where we translate given English facts to symbol representation as the example:

◦ If it is hot and humid it will rain◦ If it is humid then ,it is hot.◦ It is humid now.

Let P,Q,R represents “it is hot”,”it is humid” and ,”it will rain” then:

◦ P ^ Q R◦ P Q◦ Q

symbolic logic

Page 14: AI Introduction

Thus we have translated English sentences into formula .

any of these simple facts is called a proposition which is a declarative sentence that is either TRUE or FALSE.

Consider the relations

So suze is pretty.

Proposition

Page 15: AI Introduction

Programming with logic

Prolog Programming

Page 16: AI Introduction

Hello World

Page 17: AI Introduction

Family Tree

Page 18: AI Introduction

Family Tree

Page 19: AI Introduction

Q1. For the Previous Family tree get Sister, Grandmother, Grandfather and Uncle.

Assignment