SlideShare a Scribd company logo
1 of 41
Expert
Systems
Lecture 0
Hello!
I am Mohamed Essam !
You can find me at
mohamedessam.cs@gmail.com
2
Computer
Science and
Expert System
1
4
Instructions
We will use Google Classroom in our class ,just you have to
.
• Open the link.
• Click join class.
• Enter the class code .
Enter the class code
5
The stream page for you if you want to share something
6
Here all material s will be on the classwork page
7
Let’s LISP like it’s
1959
1
Let’s back to the period
between 1955-58
9
Lisp Language
○ LISP: LISt Processing language
○ • An AI language developed in 1958 (J. McCarthy at MIT)
○ • Special focus on symbolic processing and symbol
○ manipulation
○ – Linked list structures
○ – Also programs, functions are represented as lists
○ • At one point special LISP computers with basic LISP
○ functions implemented directly on hardware were
○ available (Symbolics Inc., 80s)
○ LISP today:
○ • Many AI programs now are written in C,C++, Java
○ – List manipulation libraries are available 10
So john McCarthy wanted to
build a programing language
think like human being using
logic like when human think
11
But in 2006
12
Back in 1956
○ So up until this point all programing languages was
assembly.
○ And even also Lisp is assembly based language.
○ But it’s the first lisp programing language.
○ McCarthy saw that by listing he can represent knowledge
for human being .
13
What is the
Computer science
field about ?
○ Computer Science is about studying
of how computer thinks.
14
15
• performs calculations
○ a billion calculations per second! two operations in same time light
travels 1 foot.
○ If u think that computer make something different ? I want to note you
that your brain do the same every single situation
○ Example when you cross a street your brain do the calculation after
taking the decision of crossing the street or not .
WHAT DOES A
COMPUTER DO?
What Does
Computer Do ?
• Remembers results
○ 100s of gigabytes of storage!
○ typical machine could hold 1.5M books of
standard size
16
Two kinds of
programs
1. Regular program: take input and function to produce
output.
 UBER Mobile app which developed by regular
programing by specific functions to calculate
distance and another features.
2. AI program: take input (and in some cases output too) to
produce the generating function
 Google Self Driven car which depend on learning from
previous examples.
17
What they mean by
Computer
18
Computers can be
 PC or Laptop
 Mobile or Tablet
 Microcontroller (microcomputer)
o Is a single-chip embedded controller includes at
minimum microprocessor, program memory, data
memory and an input-output (I/O) device.
o we can see it In the most Electronic devices such
as the Refrigerator, the traffic lights the Air
Conditions and in modern cars.
Overview of Artificial
Intelligence
○ Artificial intelligence (AI)
○ Computers with the ability to mimic or duplicate the functions
of the human brain
○ Artificial intelligence systems
○ The people, procedures, hardware, software, data, and
knowledge needed to develop computer systems and
machines that demonstrate the characteristics of intelligence
19
Major Branches of AI
○ Perceptive system
○ A system that approximates the way a human sees, hears, and feels objects
○ Vision system
○ Capture, store, and manipulate visual images and pictures
○ Robotics
○ Mechanical and computer devices that perform tedious tasks with high
precision
○ Expert system
○ Stores knowledge and makes inferences
○ Learning system
○ Computer changes how it functions or reacts to situations based on feedback
○ Natural language processing
○ Computers understand and react to statements and commands made in a
“natural” language, such as English
○ Neural network
○ Computer system that can act like or simulate the functioning of the human
brain
20
Major Branches of AI
21
What is an expert system?
“An expert system is a computer system that
emulates, or acts in all respects, with the decision-
making capabilities of a human expert.”
Professor Edward Feigenbaum
Stanford University
22
Let’s LISP like it’s
1959
2
Let’s back to the period
between 1955-58
24
Lisp Language
○ LISP: LISt Processing language
○ • An AI language developed in 1958 (J. McCarthy at MIT)
○ • Special focus on symbolic processing and symbol
○ manipulation
○ – Linked list structures
○ – Also programs, functions are represented as lists
○ • At one point special LISP computers with basic LISP
○ functions implemented directly on hardware were
○ available (Symbolics Inc., 80s)
○ LISP today:
○ • Many AI programs now are written in C,C++, Java
○ – List manipulation libraries are available 25
So john McCarthy wanted to
build a programing language
think like human being using
logic like when human think
26
But in 2006
27
Back in 1956
○ So up until this point all programing languages was
assembly.
○ And even also Lisp is assembly based language.
○ But it’s the first lisp programing language.
○ McCarthy saw that by listing he can represent knowledge
for human being .
28
Lisp setup
○ Visit : https://sourceforge.net/projects/clisp/
○ After installing it you can write CLISP in the cmd and it
will open a clisp terminal .
29
LISP Competitors
○ Prolog, Python
○ but LISP keeps its dominance among
high level (AI) programming languages
30
Run lisp
○ You can run lisp in the lisp in the shell or write the code in the
external file .lisp and load it.
31
Syntax:
○ Prefix notation
– Operator first, arguments follow
– E.g.
> (+ 3 2) ;;adds 3 and 2
5
– E.g.
>4/2
2
32
LISP :data types
○ Symbols
– a
– john
– 34
○ Lists
– ( )
– (a)
– (a john 34)
– (lambda (arg) (* arg arg))
33
○ For each symbol lisp attempts to find its value >
○ (setq a 10) ;; sets a value of symbol a to 10
○ 10
○ > a ;; returns the value of a
○ 10
○ Special symbols:
○ > t ;; true T
○ > nil ;; nil stands for false or NIL
○ > ( ) ;; an empty list NIL
34
Lists represent function calls as
well as basic data structures
○ > (factorial 3)
○ 6
○ > (+ 2 4)
○ 6
○ > (setq a ‘(john peter 34)) ;; quote means: do not eval the argument
(john peter 34)
○ > (setq a ‘((john 1) (peter 2)))
○ ((john 1) (peter 2))
35
LISP tutorial: function
definition
○ Definition of a function (defun )
○ (defun <f-name> <parameter-list> <body>)
○ >(defun square (x) (* x x))
○ SQUARE
○ >(square 2)
○ 4
○ >(square (square 2))
○ 16
36
LISP tutorial: function
definition
○ Definition of a function
○ (defun <f-name> <parameter-list> <body>)
○ (defun ) can be a sequence of function calls, the
function returns the value of the last call in the
sequence
○ > (defun foo (a)
○ (setq b (+ a 1))
○ (setq c (+ a 2)) c)
○ FOO
○ > (foo 2)
○ 4
37
LISP tutorial: conditionals
○ if statement:
○ if statement: (if<test><then><else> )
○ > (defun abs (a)
○ (if (> a 0) a (- a)))
○ ABS
○ > (abs 2)
○ 2
○ > (abs -3)
○ 3
38
LISP tutorial: conditionals
○ Cond statement: sequentially tests conditions, the call associated
with the first true condition is executed
○ > (defun abs (a)
○ (cond ((> a 0) a)
○ (t (- a))))
○ ABS
○ > (abs 2) 2
○ > (abs -3) 3
39
LISP tutorial: iterations Iterations: dotimes
○ > (dotimes (i 4) (print i)) ;; starts from 0 and continues till limit 4
○ 0
○ 1
○ 2
○ 3
○ 4
○ NIL ;; returns NIL
40
41
Thanks!
Any questions?

More Related Content

What's hot

Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-pythonAakashdata
 
Python Summer Internship
Python Summer InternshipPython Summer Internship
Python Summer InternshipAtul Kumar
 
Ch01 basic-java-programs
Ch01 basic-java-programsCh01 basic-java-programs
Ch01 basic-java-programsJames Brotsos
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Niraj Bharambe
 
Basic Concepts in Python
Basic Concepts in PythonBasic Concepts in Python
Basic Concepts in PythonSumit Satam
 
Mastering python lesson2
Mastering python lesson2Mastering python lesson2
Mastering python lesson2Ruth Marvin
 
What is Python? An overview of Python for science.
What is Python? An overview of Python for science.What is Python? An overview of Python for science.
What is Python? An overview of Python for science.Nicholas Pringle
 
PYTHON NOTES
PYTHON NOTESPYTHON NOTES
PYTHON NOTESNi
 
Mastering Python lesson 3a
Mastering Python lesson 3aMastering Python lesson 3a
Mastering Python lesson 3aRuth Marvin
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python ProgrammingAkhil Kaushik
 
Python Programming - I. Introduction
Python Programming - I. IntroductionPython Programming - I. Introduction
Python Programming - I. IntroductionRanel Padon
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageDr.YNM
 
Full Python in 20 slides
Full Python in 20 slidesFull Python in 20 slides
Full Python in 20 slidesrfojdar
 

What's hot (20)

Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
 
Python Summer Internship
Python Summer InternshipPython Summer Internship
Python Summer Internship
 
Ch01 basic-java-programs
Ch01 basic-java-programsCh01 basic-java-programs
Ch01 basic-java-programs
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
 
Basic Concepts in Python
Basic Concepts in PythonBasic Concepts in Python
Basic Concepts in Python
 
Mastering python lesson2
Mastering python lesson2Mastering python lesson2
Mastering python lesson2
 
What is Python? An overview of Python for science.
What is Python? An overview of Python for science.What is Python? An overview of Python for science.
What is Python? An overview of Python for science.
 
PYTHON NOTES
PYTHON NOTESPYTHON NOTES
PYTHON NOTES
 
Mastering Python lesson 3a
Mastering Python lesson 3aMastering Python lesson 3a
Mastering Python lesson 3a
 
Python programming
Python programmingPython programming
Python programming
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
While loop
While loopWhile loop
While loop
 
Python Programming - I. Introduction
Python Programming - I. IntroductionPython Programming - I. Introduction
Python Programming - I. Introduction
 
Python Basics
Python BasicsPython Basics
Python Basics
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Python Workshop
Python WorkshopPython Workshop
Python Workshop
 
Full Python in 20 slides
Full Python in 20 slidesFull Python in 20 slides
Full Python in 20 slides
 

Similar to Let's LISP like it's 1959

A brief introduction to lisp language
A brief introduction to lisp languageA brief introduction to lisp language
A brief introduction to lisp languageDavid Gu
 
Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1lakshmi lingutla
 
History of computer
History of computerHistory of computer
History of computervinciya vinc
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages Ahmad Idrees
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdfgmadhu8
 
LISP: назад в будущее, Микола Мозговий
LISP: назад в будущее, Микола МозговийLISP: назад в будущее, Микола Мозговий
LISP: назад в будущее, Микола МозговийSigma Software
 
Hasktut
HasktutHasktut
Hasktutkv33
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptxArpittripathi45
 
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxccccccCh01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccctasheebedane
 
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinalProf. Wim Van Criekinge
 
What is a computer
What is a computerWhat is a computer
What is a computerJagan Mohan
 
Lec02-CS110 Computational Engineering
Lec02-CS110 Computational EngineeringLec02-CS110 Computational Engineering
Lec02-CS110 Computational EngineeringSri Harsha Pamu
 

Similar to Let's LISP like it's 1959 (20)

A brief introduction to lisp language
A brief introduction to lisp languageA brief introduction to lisp language
A brief introduction to lisp language
 
Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1Programming for problem solving ppts unit 1
Programming for problem solving ppts unit 1
 
Paradigms
ParadigmsParadigms
Paradigms
 
History of computer
History of computerHistory of computer
History of computer
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages
 
6272 cnote
6272 cnote6272 cnote
6272 cnote
 
C progrmming
C progrmmingC progrmming
C progrmming
 
Python
PythonPython
Python
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdf
 
Lecture 2 lisp-Overview
Lecture 2 lisp-OverviewLecture 2 lisp-Overview
Lecture 2 lisp-Overview
 
LISP: назад в будущее, Микола Мозговий
LISP: назад в будущее, Микола МозговийLISP: назад в будущее, Микола Мозговий
LISP: назад в будущее, Микола Мозговий
 
Plc part 1
Plc part 1Plc part 1
Plc part 1
 
python into.pptx
python into.pptxpython into.pptx
python into.pptx
 
Hasktut
HasktutHasktut
Hasktut
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
 
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxccccccCh01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
 
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
What is a computer
What is a computerWhat is a computer
What is a computer
 
Lec02-CS110 Computational Engineering
Lec02-CS110 Computational EngineeringLec02-CS110 Computational Engineering
Lec02-CS110 Computational Engineering
 

More from Mohamed Essam

Data Science Crash course
Data Science Crash courseData Science Crash course
Data Science Crash courseMohamed Essam
 
2.Feature Extraction
2.Feature Extraction2.Feature Extraction
2.Feature ExtractionMohamed Essam
 
Introduction to Robotics.pptx
Introduction to Robotics.pptxIntroduction to Robotics.pptx
Introduction to Robotics.pptxMohamed Essam
 
Introduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptxIntroduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptxMohamed Essam
 
Getting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptxGetting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptxMohamed Essam
 
Let_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptxLet_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptxMohamed Essam
 
OOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptxOOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptxMohamed Essam
 
Regularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptxRegularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptxMohamed Essam
 
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptxMohamed Essam
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptxMohamed Essam
 
Activation_function.pptx
Activation_function.pptxActivation_function.pptx
Activation_function.pptxMohamed Essam
 
Deep_Learning_Frameworks
Deep_Learning_FrameworksDeep_Learning_Frameworks
Deep_Learning_FrameworksMohamed Essam
 

More from Mohamed Essam (20)

Data Science Crash course
Data Science Crash courseData Science Crash course
Data Science Crash course
 
2.Feature Extraction
2.Feature Extraction2.Feature Extraction
2.Feature Extraction
 
Data Science
Data ScienceData Science
Data Science
 
Introduction to Robotics.pptx
Introduction to Robotics.pptxIntroduction to Robotics.pptx
Introduction to Robotics.pptx
 
Introduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptxIntroduction_to_Gui_with_tkinter.pptx
Introduction_to_Gui_with_tkinter.pptx
 
Getting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptxGetting_Started_with_DL_in_Keras.pptx
Getting_Started_with_DL_in_Keras.pptx
 
Linear_algebra.pptx
Linear_algebra.pptxLinear_algebra.pptx
Linear_algebra.pptx
 
Let_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptxLet_s_Dive_to_Deep_Learning.pptx
Let_s_Dive_to_Deep_Learning.pptx
 
OOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptxOOP-Advanced_Programming.pptx
OOP-Advanced_Programming.pptx
 
1.Basic_Syntax
1.Basic_Syntax1.Basic_Syntax
1.Basic_Syntax
 
KNN.pptx
KNN.pptxKNN.pptx
KNN.pptx
 
Regularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptxRegularization_BY_MOHAMED_ESSAM.pptx
Regularization_BY_MOHAMED_ESSAM.pptx
 
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
1.What_if_Adham_Nour_tried_to_make_a_Machine_Learning_Model_at_Home.pptx
 
Clean_Code
Clean_CodeClean_Code
Clean_Code
 
Linear_Regression
Linear_RegressionLinear_Regression
Linear_Regression
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
 
Naieve_Bayee.pptx
Naieve_Bayee.pptxNaieve_Bayee.pptx
Naieve_Bayee.pptx
 
Activation_function.pptx
Activation_function.pptxActivation_function.pptx
Activation_function.pptx
 
Deep_Learning_Frameworks
Deep_Learning_FrameworksDeep_Learning_Frameworks
Deep_Learning_Frameworks
 
Neural_Network
Neural_NetworkNeural_Network
Neural_Network
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Recently uploaded (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Let's LISP like it's 1959

  • 2. Hello! I am Mohamed Essam ! You can find me at mohamedessam.cs@gmail.com 2
  • 4. 4 Instructions We will use Google Classroom in our class ,just you have to . • Open the link. • Click join class. • Enter the class code .
  • 6. The stream page for you if you want to share something 6
  • 7. Here all material s will be on the classwork page 7
  • 8. Let’s LISP like it’s 1959 1
  • 9. Let’s back to the period between 1955-58 9
  • 10. Lisp Language ○ LISP: LISt Processing language ○ • An AI language developed in 1958 (J. McCarthy at MIT) ○ • Special focus on symbolic processing and symbol ○ manipulation ○ – Linked list structures ○ – Also programs, functions are represented as lists ○ • At one point special LISP computers with basic LISP ○ functions implemented directly on hardware were ○ available (Symbolics Inc., 80s) ○ LISP today: ○ • Many AI programs now are written in C,C++, Java ○ – List manipulation libraries are available 10
  • 11. So john McCarthy wanted to build a programing language think like human being using logic like when human think 11
  • 13. Back in 1956 ○ So up until this point all programing languages was assembly. ○ And even also Lisp is assembly based language. ○ But it’s the first lisp programing language. ○ McCarthy saw that by listing he can represent knowledge for human being . 13
  • 14. What is the Computer science field about ? ○ Computer Science is about studying of how computer thinks. 14
  • 15. 15 • performs calculations ○ a billion calculations per second! two operations in same time light travels 1 foot. ○ If u think that computer make something different ? I want to note you that your brain do the same every single situation ○ Example when you cross a street your brain do the calculation after taking the decision of crossing the street or not . WHAT DOES A COMPUTER DO?
  • 16. What Does Computer Do ? • Remembers results ○ 100s of gigabytes of storage! ○ typical machine could hold 1.5M books of standard size 16
  • 17. Two kinds of programs 1. Regular program: take input and function to produce output.  UBER Mobile app which developed by regular programing by specific functions to calculate distance and another features. 2. AI program: take input (and in some cases output too) to produce the generating function  Google Self Driven car which depend on learning from previous examples. 17
  • 18. What they mean by Computer 18 Computers can be  PC or Laptop  Mobile or Tablet  Microcontroller (microcomputer) o Is a single-chip embedded controller includes at minimum microprocessor, program memory, data memory and an input-output (I/O) device. o we can see it In the most Electronic devices such as the Refrigerator, the traffic lights the Air Conditions and in modern cars.
  • 19. Overview of Artificial Intelligence ○ Artificial intelligence (AI) ○ Computers with the ability to mimic or duplicate the functions of the human brain ○ Artificial intelligence systems ○ The people, procedures, hardware, software, data, and knowledge needed to develop computer systems and machines that demonstrate the characteristics of intelligence 19
  • 20. Major Branches of AI ○ Perceptive system ○ A system that approximates the way a human sees, hears, and feels objects ○ Vision system ○ Capture, store, and manipulate visual images and pictures ○ Robotics ○ Mechanical and computer devices that perform tedious tasks with high precision ○ Expert system ○ Stores knowledge and makes inferences ○ Learning system ○ Computer changes how it functions or reacts to situations based on feedback ○ Natural language processing ○ Computers understand and react to statements and commands made in a “natural” language, such as English ○ Neural network ○ Computer system that can act like or simulate the functioning of the human brain 20
  • 22. What is an expert system? “An expert system is a computer system that emulates, or acts in all respects, with the decision- making capabilities of a human expert.” Professor Edward Feigenbaum Stanford University 22
  • 23. Let’s LISP like it’s 1959 2
  • 24. Let’s back to the period between 1955-58 24
  • 25. Lisp Language ○ LISP: LISt Processing language ○ • An AI language developed in 1958 (J. McCarthy at MIT) ○ • Special focus on symbolic processing and symbol ○ manipulation ○ – Linked list structures ○ – Also programs, functions are represented as lists ○ • At one point special LISP computers with basic LISP ○ functions implemented directly on hardware were ○ available (Symbolics Inc., 80s) ○ LISP today: ○ • Many AI programs now are written in C,C++, Java ○ – List manipulation libraries are available 25
  • 26. So john McCarthy wanted to build a programing language think like human being using logic like when human think 26
  • 28. Back in 1956 ○ So up until this point all programing languages was assembly. ○ And even also Lisp is assembly based language. ○ But it’s the first lisp programing language. ○ McCarthy saw that by listing he can represent knowledge for human being . 28
  • 29. Lisp setup ○ Visit : https://sourceforge.net/projects/clisp/ ○ After installing it you can write CLISP in the cmd and it will open a clisp terminal . 29
  • 30. LISP Competitors ○ Prolog, Python ○ but LISP keeps its dominance among high level (AI) programming languages 30
  • 31. Run lisp ○ You can run lisp in the lisp in the shell or write the code in the external file .lisp and load it. 31
  • 32. Syntax: ○ Prefix notation – Operator first, arguments follow – E.g. > (+ 3 2) ;;adds 3 and 2 5 – E.g. >4/2 2 32
  • 33. LISP :data types ○ Symbols – a – john – 34 ○ Lists – ( ) – (a) – (a john 34) – (lambda (arg) (* arg arg)) 33
  • 34. ○ For each symbol lisp attempts to find its value > ○ (setq a 10) ;; sets a value of symbol a to 10 ○ 10 ○ > a ;; returns the value of a ○ 10 ○ Special symbols: ○ > t ;; true T ○ > nil ;; nil stands for false or NIL ○ > ( ) ;; an empty list NIL 34
  • 35. Lists represent function calls as well as basic data structures ○ > (factorial 3) ○ 6 ○ > (+ 2 4) ○ 6 ○ > (setq a ‘(john peter 34)) ;; quote means: do not eval the argument (john peter 34) ○ > (setq a ‘((john 1) (peter 2))) ○ ((john 1) (peter 2)) 35
  • 36. LISP tutorial: function definition ○ Definition of a function (defun ) ○ (defun <f-name> <parameter-list> <body>) ○ >(defun square (x) (* x x)) ○ SQUARE ○ >(square 2) ○ 4 ○ >(square (square 2)) ○ 16 36
  • 37. LISP tutorial: function definition ○ Definition of a function ○ (defun <f-name> <parameter-list> <body>) ○ (defun ) can be a sequence of function calls, the function returns the value of the last call in the sequence ○ > (defun foo (a) ○ (setq b (+ a 1)) ○ (setq c (+ a 2)) c) ○ FOO ○ > (foo 2) ○ 4 37
  • 38. LISP tutorial: conditionals ○ if statement: ○ if statement: (if<test><then><else> ) ○ > (defun abs (a) ○ (if (> a 0) a (- a))) ○ ABS ○ > (abs 2) ○ 2 ○ > (abs -3) ○ 3 38
  • 39. LISP tutorial: conditionals ○ Cond statement: sequentially tests conditions, the call associated with the first true condition is executed ○ > (defun abs (a) ○ (cond ((> a 0) a) ○ (t (- a)))) ○ ABS ○ > (abs 2) 2 ○ > (abs -3) 3 39
  • 40. LISP tutorial: iterations Iterations: dotimes ○ > (dotimes (i 4) (print i)) ;; starts from 0 and continues till limit 4 ○ 0 ○ 1 ○ 2 ○ 3 ○ 4 ○ NIL ;; returns NIL 40