Computer Science & Engineering Shiraz University Artificial Intelligence.

Slides:



Advertisements
Similar presentations
Approaches, Tools, and Applications Islam A. El-Shaarawy Shoubra Faculty of Eng.
Advertisements

Artificial Intelligence
Presentation on Artificial Intelligence
An Introduction to Artificial Intelligence Presented by : M. Eftekhari.
AI Defined Textbook definition:
An Introduction to Artificial Intelligence. Introduction Getting machines to “think”. Imitation game and the Turing test. Chinese room test. Key processes.
AI 授課教師:顏士淨 2013/09/12 1. Part I & Part II 2  Part I Artificial Intelligence 1 Introduction 2 Intelligent Agents Part II Problem Solving 3 Solving Problems.
WHAT IS ARTIFICIAL INTELLIGENCE?
1946: ENIAC heralds the dawn of Computing. I propose to consider the question: “Can machines think?” --Alan Turing, : Turing asks the question….
Artificial Intelligence
CSCE101 –Chapter 8 (continued) Tuesday, December 5, 2006.
PSU CS 370 – Artificial Intelligence Dr. Mohamed Tounsi Artificial Intelligence 1. Introduction Dr. M. Tounsi.
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
CSE 471/598,CBS598 Introduction to Artificial Intelligence Fall 2004
Introduction to Artificial Intelligence Prof. Kathleen McKeown 722 CEPSR, TAs: Kapil Thadani 724 CEPSR, Phong Pham TA Room.
Artificial Intelligence Overview John Paxton Montana State University February 22, 2005
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
Artificial Intelligence
Artificial Intelligence
Copyright R. Weber INFO 629 Concepts in Artificial Intelligence Fall 2004 Professor: Dr. Rosina Weber.
Chapter 1 Introduction. General Concepts The field of Artificial Intelligence attempts to understand, model, and simulate the behavior (to some extend)
FUZZY LOGIC Babu Appat. OVERVIEW What is Fuzzy Logic? Where did it begin? Fuzzy Logic vs. Neural Networks Fuzzy Logic in Control Systems Fuzzy Logic in.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Reference: "Artificial Intelligence, a Modern Approach, 3rd ed."
1 AI and Agents CS 171/271 (Chapters 1 and 2) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Artificial Intelligence Introduction (2). What is Artificial Intelligence ?  making computers that think?  the automation of activities we associate.
Artificial Intelligence: Its Roots and Scope
AI Overview Reference: "Artificial Intelligence, a Modern Approach, 3 rd ed."
Lecture 1 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Artificial Intelligence: An Introduction Definition of AI Foundations of AI History of AI Advanced Techniques.
What is Intelligence? Let’s try to define intelligence Definition (Merriam Webster): –Capacity for learning, reasoning, understanding and similar forms.
Artificial Intelligence Introductory Lecture Jennifer J. Burg Department of Mathematics and Computer Science.
Artificial Intelligence
Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved. Decision Support Systems Chapter 10.
1 Artificial Intelligence Introduction. 2 What is AI? Various definitions: Building intelligent entities. Getting computers to do tasks which require.
Artificial Intelligence By Michelle Witcofsky And Evan Flanagan.
How Solvable Is Intelligence? A brief introduction to AI Dr. Richard Fox Department of Computer Science Northern Kentucky University.
1 CS 2710, ISSP 2610 Foundations of Artificial Intelligence introduction.
I Robot.
Artificial Intelligence: Introduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
1 CS 385 Fall 2006 Chapter 1 AI: Early History and Applications.
1 The main topics in AI Artificial intelligence can be considered under a number of headings: –Search (includes Game Playing). –Representing Knowledge.
Artificial Intelligence and Knowledge Based Systems Fall 2009 Frank Hadlock.
KNOWLEDGE BASED SYSTEMS
Cognitive Psychology. Overview What is Cognitive Psychology? Study of HOW the mind works, not WHY we do what we do Focuses on the day-to-day functions.
What is Artificial Intelligence?
Artificial Intelligence: Research and Collaborative Possibilities a presentation by: Dr. Ernest L. McDuffie, Assistant Professor Department of Computer.
Intelligent Control Methods Lecture 2: Artificial Intelligence Slovak University of Technology Faculty of Material Science and Technology in Trnava.
1 Artificial Intelligence & Prolog Programming CSL 302.
Artificial Intelligence Hossaini Winter Outline book : Artificial intelligence a modern Approach by Stuart Russell, Peter Norvig. A Practical Guide.
Dinner for Two. Fuzzify Inputs Apply Fuzzy Operator.
Artificial Intelligence Yunita Sari Kamis, 23 Feb 2012.
AI Overview Reference: "Artificial Intelligence, a Modern Approach, 3 rd ed."
Artificial Intelligence
Chapter 7. Propositional and Predicate Logic
CHAPTER 1 Introduction BIC 3337 EXPERT SYSTEM.
Artificial Intelligence
Artificial Intelligence (CS 370D)
Artificial Intelligence
Artificial Intelligence
AI Defined Textbook definition:
Course Instructor: knza ch
Artificial Intelligence introduction(2)
Artificial Intelligence Lecture 2: Foundation of Artificial Intelligence By: Nur Uddin, Ph.D.
AI and Agents CS 171/271 (Chapters 1 and 2)
Introduction to Artificial Intelligence Instructor: Dr. Eduardo Urbina
CSC 427: ARTIFICIAL INTELLIGENCE
Artificial Intelligence
AI Application Session 12
Presentation transcript:

Computer Science & Engineering Shiraz University Artificial Intelligence

Game of 8 How can we solve Game Of 8 with minimum number of movements? The answer can be a sequence of movements.

Program input can be a 3 by 3 Matrix Input = [[3, 7, 2], [1, 4, 0], [8, 5, 6]] ظ Game of 8 Output can be a list representing movements of the empty place Output = [‘up’, ‘right’, ‘down’, …, ‘left’, ‘up’] >>> def find_answer(input, target): “returns a sequence of movements” Goal = [[7, 8, 0], [4, 5, 6], [1, 2, 3]]

What is AI ? Making computers to act Intelligently What is Intelligence ? (Russell and Norvig 1995)‏ – Thinking like humans – Acting like humans – Thinking rationally – Acting rationally

What are factors of Intelligence ? Understanding Reasoning Problem Solving Learning Common Sense Generalizing Inference Analogy Recall Intuition Emotion Self-awareness

The Turing Test Proposed by Alan Turing in 1950 to provide a definition of intelligent behaviour. – The computer is interrogated by a human via a teletype – it passes the test if the interrogator cannot identify the answerer was computer or human

The Turing Test Requirements Natural language processing – Communicating with human; understanding sentences Knowledge representation – Storing facts and information Automated reasoning – Concluding new facts using from existing facts Machine learning – Using experiences – Acting rationally in new situations – Recognizing patterns

The Total Turing Test adding to the agent a video interface and an acting arm it necessitates: 1- Machine Vision 2- Robotics

Some examples of AI related topics Playing Chess with human Solving a Geometric Problem Selecting fastest way to destination Vision Traffic Controlling Automatic Conversation Pattern recognition Robot Controlling Deriving Proof of Mathematical theorems Symbolic Calculation Weather forecasting Disease diagnosis Symbolic erentiation and integration from mathematical expressions

Foundations of AI Philosophy (Dualism vs. Materialism)‏ Mathematics (Computation, Logic, Probability)‏ Linguistics (Understanding and Analysis of Languages)‏ Computer Science (provides and tools : programmability, speed, storage, actions)‏ Psychology (The brain processes, study of human Behaviors)‏ Cognitive Sciences Neurology/Biology Engineering...

Some Examples

Game of 8 How can we solve Game Of 8 with minimum number of movements? The answer can be a sequence of movements.

DCFAEZGB 32km 30km 55km 17km 26km 40km 31km 18km 20km 33km 35km We want to go from city 'A' to 'Z' through shortest possible path The answer can be sequence of city names

Problem Solving using Search Searching: Testing all possible states to find an appropriate solution. In many cases Search problems have a close relation with Trees

Game Playing We can design game playing programs using search methods So, we should visit all possible states which can occur in a game. But like many search problems, there are methods to reduce the search states (eliminates some states having no effect on search solutions)

X X X X X... X O XOX O X O X O X O X O X O O X X X O X O X X X O O

Some other examples

Find maximum of the functions : f(x) = x e^(1-x^2) - e^x log x f(x, y) = x^(log y – y) + y^(x^2 – 1)‏ f(x1, x2, x3,..., x100) =...

If age of Ali is 3 times greater than age of his brother plus 1, and age of his brother is ¼ of age of Ali then find age of Ali and his brother. Can ordinary search methods be used to solve the above problem? Reasonable steps to solve the problem: Getting and storing the text Analyzing text and extracting necessary information. Converting the information to suitable mathematical form Solving the equations and finding unknown variables

In ABC we know AB = AC A B C Are angles B and C equal? Print steps of the proof How to pose this problem for computer? Computer would search for a sequence of inference proves the fact Using a geometric model can ease the process.

Write a program to simplify simple expressions >>> def simplify(expr): : >>> simplify(“(a + b) (a – b)”)‏ “a^2 – b^2” >>> simplify(“(a-b) (a+b) (a^2 + b^2) + a^4 + b^4”)‏ “2 a^4” >>> simplify(“(a + b)^2 – (a - b)^2”)‏ “4 a b”

Write a program to differentiate simple mathematical expressions: >>> def diff(expr, resp): : >>> diff(‘2 x^2 – x + 4’, ‘x’)‏ “4 x - 1” >>> diff(‘(x - a)^2’, ‘x’)‏ “2 x – 2 a” >>> diff(‘y sin (y^2)’, ‘y’)‏ “sin (y^2) + 2 y^2 cos(y^2) ”

Write a program to calculate integration: >>> def integrate(expr, resp): : >>> integrate(‘6 x + 4’, ‘x’)‏ “3 x^2 + 4 x + C” >>> integrate(‘x + sin x’, ‘x’)‏ “0.5 x^2 - cos x + C” >>> integrate(‘y sin (y^2)’, ‘y’)‏ “- 0.5 cos (y^2) + C” >>> integrate(‘x sin x’, ‘x’)‏ “- x cos x + sin x + C”

Stages to solve such problems Assume we are going to simplify “(x-y) (x+y)” 1- Transform the expression in the form dealing with which is more convinient: For example in this case we can convert it to: [[‘x’, ‘y’, ‘-’], [‘x’, ‘y’, ‘+’], ‘*’] 2- Simplify according to some rules and algorithms [[‘x’, 2, ‘^’], [‘y’, 2, ‘^’], ‘-’] 3- Convert simplified expression to strings “x^2 – y^2”

Write a program who could solve simple differential equations >>> def solve(equation, indep_var, dep_var): : >>> solve(”y = y’ “, ‘x’, ‘y’)‏ “A e^x” >>> solve(‘ y’’ – y’ = 2 sin x’, ‘x’, ‘y’)‏ “A e^x + B + cos x – sin x”

to ?is like to Analogy 12345

Examples of Logic Suppose we have the following facts All habitants of “Bal Island” are exactly truthful or lier A, B, C are habitants of Bal island A says: “All of us are lier” B says: “At least one of us is lier” Each of A, B, C are lier or truthful ? (-> algorithmic puzzles, Mohammad Ghodsi, Fatemi Publication)‏

Examples of Logic We can solve this problem using search In this case we should try 8 (=2 3 ) cases For example (A is lier, B is truthful, C is lier)‏ But if we had 100 persons we should search states (2 100 = )‏ This is practically impossible

Problem Solving Using Logic We can solve some of problems using logical conclusions (reasoning)‏ By logical reasoning we can obtain new facts from existing facts Reasonings can be done according to logical roles in mathematics

Suppose we have following facts Kamran is a student All students are humans All students like learning Know we can conclude following facts Kamran is a human Kamran like learning A human likes learning OR is not a student An Example of Logical Reasoning Suppose we have following facts Kamran is a student All students are humans All students like learning Know we can conclude following facts Kamran is a human Kamran like learning A human likes learning OR is not a student

Knowledge Representation Before working with the data we should be able to represent and store them in computer. There are many ways for representing information in computers, example: Ali is tall -> tall(Ali)‏ Ali is bigger than Reza -> bigger(Ali, Reza)‏ Ali is brother of Reza->Ali = brotherOf(Reza)‏ Ali is tall and Reza is not fat ->tall(Ali) AND (NOT fat(Reza))‏ If Ali is a human then he can speak ->human(Ali) => canSpeak(Ali)‏ All humans are Male or Female -> for all x : human(x) => Male(x) OR Female(x)‏

Fuzzy Logic Assume following predicates : My bag is at home. My book is in my bag. My brother is taller than me They are exactly True or False. So we can have some conclusions : IF (My bag is at home) AND (My book is in may bag) THEN (My book is at home)‏

Fuzzy Logic We want to perform conclusions on the knowledge obtained from the real world But some or most of facts in the real word are not decisive (are not exactly true or false)‏ Look the facts below: Ali is tall. The weather is hot. My book is large. It is about 2 meters high.

Fuzzy Logic Fuzzy Logic suggests a solution In fuzzy logic facts are not exactly true or false they instead have degree of truth If we denote true by '1' and false by '0' then truth of a fact can be a number between '0' and '1'. For example truth of “Ali is tall” can be '0.9' We can define 'AND', 'OR', 'NOT' and '=>' in fuzzy logic such as ordinary logic.

Fuzzy Logic Fuzzy Logic was created by “Dr. Lotfi Zhdeh” in 1960 for the purpose of modeling uncertainty inherent in Natural Language Representing vague and often contradictory knowledge. Fuzzy logic is primarily used as the underlying logic of fuzzy expert systems

Fuzzy Logic Example of Fuzzy Logic applications : Pattern Recognition Control (Fuzzy Controllers)‏ Weather forecasting Economics Politics

other fields of AI Evolutionary Computation (Genetic Algorithms,...)‏ Artificial Neural Networks Robotics Expert Systems Image Processing and Machine Vision Data Mining...