38
Cao Hoang Tru CSE Faculty - HCMUT 1 13 February, 2009 Introduction What is AI? The foundations of AI A brief history of AI The state of the art Introductory problems

chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

  • Upload
    others

  • View
    23

  • Download
    0

Embed Size (px)

Citation preview

Page 1: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

1

13 February, 2009

Introduction

• What is AI?• The foundations of AI• A brief history of AI• The state of the art• Introductory problems

Page 2: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

2

13 February, 2009

What is AI?

Page 3: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

3

13 February, 2009

What is AI?• Intelligence: “ability to learn, understand and think”

(Oxford dictionary)

Page 4: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

4

13 February, 2009

What is AI?

Acting rationallyActing humanly

Thinking rationallyThinking humanly

Page 5: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

5

13 February, 2009

Acting Humanly: The Turing Test• Alan Mathison Turing (1912-1954)

Page 6: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

6

13 February, 2009

Turing Award• A.M. Turing Award

ACM's most prestigious technical award is accompanied by a prize of $250,000. It is given to an individual selected for contributions of a technical nature made to the computing community. The contributions should be of lasting and major technical importance to the computer field. Financial support ofthe Turing Award is provided by the Intel Corporation and Google Inc.

Page 7: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

7

13 February, 2009

Turing Award1977197719771977 Backus, John1976197619761976 Rabin, Michael O.1976 Scott, Dana S1975197519751975 Newell, Allen1975 Simon, Herbert A.1974197419741974 Knuth, Donald E.1973197319731973 Bachman, Charles W.1972197219721972 Dijkstra, E. W.1971197119711971 McCarthy, John1970197019701970 Wilkinson, J. H.1969196919691969 Minsky, Marvin1968196819681968 Hamming, Richard1967196719671967 Wilkes, Maurice V.1966196619661966 Perlis, A. J.

2000200020002000 Yao, Andrew Chi-Chih1999199919991999 Brooks, Frederick P.1998199819981998 Gray, Jim

1997199719971997 Engelbart, Douglas1996199619961996 Pnueli, Amir1995199519951995 Blum, Manuel1994199419941994 Feigenbaum, Edward199 Reddy, Raj1993199319931993 Hartmanis, Juris1993 Stearns, Richard E1992199219921992 Lampson, Butler W.1991199119911991 Milner, A J

1990199019901990 Corbato, Fernando J.1989198919891989 Kahan, William

1988198819881988 Sutherland, Ivan1987198719871987 Cocke, John1986198619861986 Hopcroft, John E1986 Tarjan, Robert E

1985198519851985 Karp, Richard M1984198419841984 Wirth, Niklaus E1983198319831983 Ritchie, Dennis M.1983 Thompson, Kenneth Lane1982198219821982 Cook, Stephen A1981198119811981 Codd, Edgar F.1980198019801980 Hoare, C. Antony R.1979197919791979 Iverson, Kenneth E.1978197819781978 Floyd, Robert W

2007200720072007 Clarke, Edmund M2007 Emerson, E Allen2007 Sifakis, Joseph2006200620062006 Allen, Frances E2005200520052005 Naur, Peter2004200420042004 Cerf, Vinton2004 Kahn, Robert E2003200320032003 Kay, Alan2002200220022002 Adleman, Leonard M.2002 Rivest, Ronald L.2002 Shamir, Adi2001200120012001 Dahl, Ole-Johan2001 Nygaard, Kristen

Page 8: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

8

13 February, 2009

Acting Humanly: The Turing Test

• “Computing Machinery and Intelligence” (1950)

Page 9: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

9

13 February, 2009

Acting Humanly: The Turing Test

Human Interrogator

Human

AI System

Imitation Game

Page 10: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

10

13 February, 2009

Acting Humanly: The Turing Test• Predicted that by 2000, a machine might have a 30%

chance of fooling a lay person for 5 minutes.• Anticipated all major arguments against AI in

following 50 years.• Suggested major components of AI: knowledge,

reasoning, language, understanding, learning.

Page 11: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

11

13 February, 2009

Thinking Humanly: Cognitive Modelling• Not content to have a program correctly solving a

problem. More concerned with comparing its reasoning steps to traces of human solving the same problem.

• Requires testable theories of the workings of the human mind: cognitive science.

Page 12: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

12

13 February, 2009

Thinking Rationally: Laws of Thought• Aristotle was one of the first to attempt to codify “right

thinking”, i.e., irrefutable reasoning processes. • Formal logic provides a precise notation and rules for

representing and reasoning with all kinds of things in the world.

• Obstacles:− Representation of informal knowledge.− Computational complexity and resources.

Page 13: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

13

13 February, 2009

Acting Rationally• Acting so as to achieve one’s goals, given one’s

beliefs. • Does not necessarily involve thinking.• Advantages:

− More general than the “laws of thought” approach.− More amenable to scientific development than human-

based approaches.

Page 14: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

14

13 February, 2009

The Foundations of AI• Philosophy (423 BC − present):

− Logic, methods of reasoning.− Mind as a physical system.− Foundations of learning, language, and rationality.

• Mathematics (c.800 − present):− Formal representation and proof.− Algorithms, computation, decidability, tractability.− Probability.

Page 15: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

15

13 February, 2009

The Foundations of AI• Psychology (1879 − present):

− Adaptation.− Phenomena of perception and motor control.− Experimental techniques.

• Linguistics (1957 − present):− Knowledge representation.− Grammar.

Page 16: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

16

13 February, 2009

A Brief History of AI• The gestation of AI (1943 − 1956):

− 1943: McCulloch & Pitts: Boolean circuit model of brain.− 1950: Turing’s “Computing Machinery and Intelligence”.− 1956: McCarthy’s name “Artificial Intelligence” adopted.

• Early enthusiasm, great expectations (1952 − 1969):− Early successful AI programs: Samuel’s checkers,

Newell & Simon’s Logic Theorist, Gelernter’s Geometry Theorem Prover.

− Robinson’s complete algorithm for logical reasoning.

Page 17: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

17

13 February, 2009

A Brief History of AI• A dose of reality (1966 − 1974):

− AI discovered computational complexity.− Neural network research almost disappeared after

Minsky & Papert’s book in 1969.

• Knowledge-based systems (1969 − 1979):− 1969: DENDRAL by Buchanan et al..− 1976: MYCIN by Shortliffle.− 1979: PROSPECTOR by Duda et al..

Page 18: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

18

13 February, 2009

A Brief History of AI• AI becomes an industry (1980 − 1988):

− Expert systems industry booms.− 1981: Japan’s 10-year Fifth Generation project.

• The return of NNs and novel AI (1986 − present):− Mid 80’s: Back-propagation learning algorithm reinvented.− Expert systems industry busts.− 1988: Resurgence of probability.− 1988: Novel AI (ALife, GAs, Soft Computing, …).− 1995: Agents everywhere.− 2003: Human-level AI back on the agenda.

Page 19: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

19

13 February, 2009

The State of the Art• Computer beats human in a chess game.• Computer-human conversation using speech

recognition.• Expert system controls a spacecraft.• Robot can walk on stairs and hold a cup of water.• Language translation for webpages.• Home appliances use fuzzy logic.• ......

Page 20: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

20

13 February, 2009

Introductory Problem: Tic-Tac-Toe

oXX

Page 21: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

21

13 February, 2009

Introductory Problem: Tic-Tac-ToeProgram 1:1. View the vector as a ternary number. Convert it to a

decimal number.2. Use the computed number as an index into

Move-Table and access the vector stored there.3. Set the new board to that vector.

Page 22: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

22

13 February, 2009

Introductory Problem: Tic-Tac-ToeComments:1. A lot of space to store the Move-Table.2. A lot of work to specify all the entries in the

Move-Table.3. Difficult to extend.

Page 23: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

23

13 February, 2009

Introductory Problem: Tic-Tac-Toe

987654321

Page 24: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

24

13 February, 2009

Introductory Problem: Tic-Tac-ToeProgram 2:Turn = 1 Go(1)Turn = 2 If Board[5] is blank, Go(5), else Go(1)Turn = 3 If Board[9] is blank, Go(9), else Go(3)Turn = 4 If Posswin(X) ≠ 0, then Go(Posswin(X)).......

Page 25: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

25

13 February, 2009

Introductory Problem: Tic-Tac-ToeComments:1. Not efficient in time, as it has to check several

conditions before making each move.2. Easier to understand the program’s strategy.3. Hard to generalize.

Page 26: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

26

13 February, 2009

Introductory Problem: Tic-Tac-Toe

oXX

How to check for a possible win?

Page 27: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

27

13 February, 2009

Introductory Problem: Tic-Tac-Toe

276951438

15 − (8 + 5)

Page 28: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

28

13 February, 2009

Introductory Problem: Tic-Tac-ToeComments:1. Checking for a possible win is quicker.2. Human finds the row-scan approach easier, while

computer finds the number-counting approach moreefficient.

Page 29: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

29

13 February, 2009

Introductory Problem: Tic-Tac-ToeProgram 3:1. If a position is a win, give it the highest rating.

2. Otherwise, consider all the moves the opponent could make next. Assume the opponent will make the move that is worst for us. Assign the rating of that move to the current position.

3. The best position is then the one with the highest rating.

Page 30: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

30

13 February, 2009

Introductory Problem: Tic-Tac-ToeComments:1. Require much more time to consider all possible

moves.

2. Could be extended to handle more complicated games.

Page 31: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

31

13 February, 2009

Introductory Problem: Question Answering“Mary went shopping for a new coat. She found a red one she really liked. When she got it home, she discovered that it went perfectly with her favourite dress”.

Q1: What did Mary go shopping for?Q2: What did Mary find that she liked?Q3: Did Mary buy anything?

Page 32: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

32

13 February, 2009

Introductory Problem: Question AnsweringProgram 1:1. Match predefined templates to questions to generate

text patterns. 2. Match text patterns to input texts to get answers.“What did X Y” “What did Mary go shopping for?”

“Mary go shopping for Z”Z = a new coat

Page 33: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

33

13 February, 2009

Introductory Problem: Question AnsweringProgram 2:Structured representation of sentences:Event2: Thing1:instance: Finding instance: Coattense: Past colour: Redagent: Maryobject: Thing 1

Page 34: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

34

13 February, 2009

Introductory Problem: Question AnsweringProgram 3:Background world knowledge:

C finds M

C leaves L C buys M

C leaves L

C takes M

Page 35: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

35

13 February, 2009

What is AI?Not about what human beings can do!

About how to instruct a computer to do what human beings can do!

Page 36: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

36

13 February, 2009

AI = Algorithms + Intelligence

Page 37: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

37

13 February, 2009

The Thinker

Auguste Rodin (1840-1917)

AI = Algorithms + Intelligence

Page 38: chapter1 - University of Technologytru/AI/chapter1.pdf · Title: Microsoft PowerPoint - chapter1.ppt Author: Tru Created Date: 2/13/2009 3:29:45 PM

Cao Hoang Tru

CSE Faculty - HCMUT

38

13 February, 2009

HomeworkReading “Introduction” in Chapter 1 – AIMA Russel

& Norvig.