A I (Artificial Intelligence)

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

C-LISP. LISP 2 Lisp was invented by John McCarthy in 1958 while he was at the Massachusetts Institute of Technology (MIT).John McCarthyMassachusetts Institute.
Functional Programming. Pure Functional Programming Computation is largely performed by applying functions to values. The value of an expression depends.
1 Programming Languages and Paradigms Lisp Programming.
CS 355 – PROGRAMMING LANGUAGES Dr. X. Apply-to-all A functional form that takes a single function as a parameter and yields a list of values obtained.
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?
Lisp – Introduction יעל נצר מערכות נבונות סמסטר ב' תשס"ו.
Introduction to Artificial Intelligence Ruth Bergman Fall 2004.
Introduction to Artificial Intelligence Lisp Ruth Bergman Fall 2002.
TES3111 Oct 2001 Data Structures S-Expression - Symbolic expression. It can be an Atom, a List or a collection of S- Expression enclosed by (…) Atom -
Common Lisp Derek Debruin Mark Larue Vinh Doan. Problem Domains There was a need in the early 1960s to define a programming language whose computational.
1 Pertemuan 1 WHAT IS ARTIFICIAL INTELLIGENCE ? Matakuliah: T0264/Inteligensia Semu Tahun: 2005 Versi: 1/0.
COMP 205 – Week 11 Dr. Chunbo Chu. Intro Lisp stands for “LISt Process” Invented by John McCarthy (1958) Simple data structure (atoms and lists) Heavy.
Genetic Programming.
1 Artificial Intelligence An Introductory Course.
CS 462: Introduction to Artificial Intelligence This course advocates the physical-symbol system hypothesis formulated by Newell and Simon in It.
19/13/2015CS360 AI & Robotics CS360: AI & Robotics TTh 9:25 am - 10:40 am Shereen Khoja
Introduction (Chapter 1) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Artificial Intelligence: An Introduction Definition of AI Foundations of AI History of AI Advanced Techniques.
Artificial Intelligence
Seminar on Artificial Intelligence.
ISBN Chapter 15 Functional Programming Languages.
1 Artificial Intelligence GholamReza GhassemSani Fall 1383.
1 CS 2710, ISSP 2610 Foundations of Artificial Intelligence introduction.
Definitions of AI There are as many definitions as there are practitioners. How would you define it? What is important for a system to be intelligent?
Milos Hauskrecht (PDF) Hieu D. Vu (PPT) LISP PROGARMMING LANGUAGE.
University of Kurdistan Artificial Intelligence Methods (AIM) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
Introduction to Artificial Intelligence CS 438 Spring 2008.
Lisp "List Processing". Lisp history John McCarthy developed the basics behind Lisp during the 1956 Dartmouth Summer Research Project on Artificial Intelligence.
Artificial Intelligence: Research and Collaborative Possibilities a presentation by: Dr. Ernest L. McDuffie, Assistant Professor Department of Computer.
1 Introduction to Artificial Intelligence CSE 415 Winter 2006.
1 Artificial Intelligence & Prolog Programming CSL 302.
COMPUTER SYSTEM FUNDAMENTAL Genetic Computer School INTRODUCTION TO ARTIFICIAL INTELLIGENCE LESSON 11.
LISP LISt Processing. History & Overview b b One of the oldest high level programming languages. b b First developed in 1958 by John McCarthy. b b Later.
Artificial Intelligence
Introduction to Artificial Intelligence Heshaam Faili University of Tehran.
1 Outline Review Introduction to LISP Symbols and Numbers Lists Writing LISP Functions LISPWorks.
Artificial Intelligence and Lisp Lecture 6 LiU Course TDDC65 Autumn Semester,
Functional Programming
Knowledge Representation Techniques
Functional Programming Languages
Artificial Intelligence for Engineers
Artificial intelligence (AI)
Artificial Intelligence
Artificial Intelligence
LISP LISt Processing.
LISP A brief overview.
Introduction to Artificial Intelligence
Artificial Intelligence for Engineers
Introduction Artificial Intelligent.
Artificial Intelligence introduction(2)
TA : Mubarakah Otbi, Duaa al Ofi , Huda al Hakami
Introduction to Artificial Intelligence
LISP A brief overview.
What would be our focus ? Geometry deals with Declarative or “What is” knowledge. Computer Science deals with Imperative or “How to” knowledge 2/23/2019.
John McCarthy Pioneer in AI Also Lisp Formalize common-sense reasoning
Principles of Computing – UFCFA3-30-1
LISP LISt Processing.
Abstraction and Repetition
Introduction to Artificial Intelligence
LISP LISt Processing.
Modern Programming Languages Lecture 18 Fakhar Lodhi
Introduction to Artificial Intelligence Instructor: Dr. Eduardo Urbina
Artificial Intelligence
Introduction to Artificial Intelligence
CS 462: Introduction to Artificial Intelligence
LISP primitives on sequences
AI Application Session 12
Presentation transcript:

A I (Artificial Intelligence) Professor I. J. Chung 2018-07-02

AI (Artificial Intelligence) Study of mental thinking & facilities with appropriate computational models Solve the real world problems (see below). Fundamental assumption of AI : What the brain of human beings may be thought of at some level as a kind of computations. Another definition of AI One of major fields of computer science that makes it possible to perceive, think, reason and act. (cognitive science, psychology) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Emphasis an computation, reasoning, action, etc. Task domain of AI – mundane tasks Perception : vision, speech Natural language processing : understanding, generation, translations, semantic modeling Common sense reasoning Robot control 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Formal tasks Automated reasoning with formal logic Game : chess, go, tic-tac-toe, etc. Mathematics geometry, logic, calculus, proving properties of programs 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Expert tasks Engineering : design, fault findings, manufacturing, planning Scientific analysis : Medical diagnosis & analysis Financial analysis & planning 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Machine learning symbol-based : ID3 (decision tree), inductive bias, COBWEB, explanation-based learning Connectionist : artificial neural networks Social based : genetic algorithm (Darwinism with competition) Emergent : agent 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Eg. Analogy problems A B C 1 2 3 4 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) AI language LISP ( functional declarative language ) Prolog ( logic declarative language ) LISP Flexible language for symbolic manipulation rather than numeric computations Functional programming language based on λ - expression (McCarthy, of MIT 1965) Interpreted language as opposed to compiled language Widely used in ES/KBS, reasoning & learning, NLP, etc. cf: Prolog (logic programming lang.) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Basic Lisp Primitives Atom : fundamental objects in LISP without parenthesis E.g. OK 3 1.6 I List : collection of atom enclosed by parenthesis (nesting is allowed) (I AM A BOY) (I (LOVE) YOU) (1.5) Operator : arguments with lists (prefix notation) (+ 4 2) (* 6 3) (/ (+ 4 2) (* 6 3)) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Basic Lisp Primitives (cont.) Procedure : basic program unit in LISP Primitive : procedure supplied by LISP itself Program : collection of procedures to solve a particular job expression integer symbol number list atom real 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) CAR & CDR (CAR ’(I AM A BOY)) I (CAR ’((I) AM A BOY)) (I) (CAR ’((A B) C)) (A B) (CDR ’(I AM A BOY)) (AM A BOY) (CDR ’((I) AM A BOY)) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) CAR & CDR (cont.) (CDR ’((A B) C)) (C) (CDR ’(I)) ( ) (CADR ’(A B C)) ≡ (CAR (CDR ‘(A B C))) (SETQ L ’(A B)) ; assignment statement in LISP with L side- effects (A B) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) APPEND : strings together the elements of all lists supplied as arguments (SETQ L ’(A B)) (A B) (APPEND L L) (A B A B) (APPEND L L L) (A B A B A B) (APPEND ’(A) ’( ) ’(B) ’( )) (APPEND ’((A) (B)) ’((C) (D))) ((A) (B) (C) (D)) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) LIST : makes a list out of a its arguments. Each argument becomes an elements of the new list (SETQ L ’(A B)) (LIST L L) ((A B) (A B)) (LIST L L L) ((A B) (A B) (A B)) (LIST ’L L) (L (A B)) (LIST ’((A) (B)) ’((C) (D))) (((A) (B)) ((C) (D))) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) CONS : takes a list and insert a new first element. CONS is a mnemonic for list constructor. (CONS <new first element> <some list>) (CONS ’A ’(B C)) (A B C) (CAR (CONS ’A ’(B C))) A (CDR (CONS ’A ’(B C))) (B C) Note : assume that L is a list. Then, (CONS (CAR L) (CDR L)) ≡ L 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) (APPEND ’(A B) ’(C D)) (A B C D) (LIST ’(A B) ’(C D)) ((A B) (C D)) (CONS ’(A B) ’(C D)) ((A B) C D) (SETQ L ’(A B)) (LIST L L) ((A B) (A B)) (CONS L L) ((A B) A B) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) (APPEND L L) (A B A B) (LIST ’L L) (L (A B)) (APPEND ’L L) ERROR (CONS ’L L) (L A B) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) LENGTH, REVERSE, SUBST, LAST LENGTH : number of top-level elements in a list e.g (LENGTH ’(A B)) 2 (LENGTH ’((A B) (C D))) (SETQ L ’(A B)) (LENGTH L) (LENGTH (APPEND L L)) 4 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) LENGTH, REVERSE, SUBST, LAST REVERSE : turns the top level of a list around e.g (REVERSE ’(A B)) (B A) (REVERSE ’((A B) (C D))) ((C D) (A B)) (REVERSE L) (REVERSE (APPEND L L)) (B A B A) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) LENGTH, REVERSE, SUBST, LAST SUBST : takes 3 arguments, the last of which is an expression in which occurrences of a specified atom are to be replaced. The first argument is the new expression to be plugged-in; the second argument is the atom to be replaced. (SUBST <new exp> <old atom> <exp to substitute in>) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) e.g (SUBST ’A ’B ’(A B C)) (A A C) (SUBST ’B ’A ’(A B C)) (B B C) (SUBST ’A ’X (SUBST ’B ’Y ’(SQRT (+ (* X X) (* Y Y))))) (SQRT (+ (* A A) (* B B))) 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) LENGTH, REVERSE, SUBST, LAST LAST : returns a list that contains only the last element of the list as the argument. e.g (LAST ’ (A B C)) (C) (LAST ’((A B) (C D))) ((C D)) (LAST ’A) Error 2018-07-02 Artificial Intelligence

AI (Artificial Intelligence) Procedure abstraction is done by using DEFUN to combine ingredients. (DEFUN <procedure - name> (<para-1> <para-2> … <para-n>) <procedure-body>) e.g (DEFUN F_TO_C (TEMP) (/ (- TEMP 32) 1.8)) (F-TO-C 32) (DEFUN EXCHANGE (PAIR) (LIST (CADR PAIR) (CAR PAIR)))) (EXCHANGE ’(ADAM EVE)) (EVE ADAM) 2018-07-02 Artificial Intelligence