Artificial Intelligence
Artificial Intelligence
2
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
❑To understand State-space search
algorithms.
3
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Course Outcomes
After completing this course you will be
able to:
1.Develop AI systems to solve real-world
problems.
2.Use predicate calculus to represent and
reason about problem domains.
3.Use PROLOG as a tool for AI problem
solving.
4
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Course Outline
(1) Introduction to Artificial Intelligence
❑ What is AI?
❑ Knowledge Representation Languages
❑ The characteristics of AI representation languages
(2) Problem Solving as Search
❑ State space search
❑ AI Application Areas
(3) Logic-based knowledge representation
❑ The propositional calculus
❑ The syntax and semantics of the propositional calculus
(4) The predicate calculus
❑ The syntax and semantics of the predicate calculus
5
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Course Outline ..
(5) Inference Rules and Unification
(6) Structures for State Space Search
❑ Graph Theory Basics
❑ State Space Representation of Problems
(7) Strategies for State Space Search
❑ Data-driven and goal-driven search.
❑ State space search algorithms: Backtrack algorithm,
Depth-first and Breadth-first search.
(8) Using the State Space to Represent Reasoning with
Predicate Calculus
❑ State Space Description of a Logical System
❑ And/Or Graphs
(9) A natural language parser and a sentence generator.
6
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Course Outline ..
(10) Production Systems
❑ Definition of Production Systems
❑ Examples of Production Systems
(11) Recursive Search in PROLOG
❑ The knight's tour problem
(12) Production systems implementation in PROLOG
(13) Planning
❑ Introduction to Planning
❑ Planning using STRIPS
❑ A Planning Example
❑ A PROLOG Planner
7
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
What is AI
◼ Artificial intelligence (AI) may be defined as: the branch
of computer science that is concerned with the
automation of intelligent behavior or the imitation of the
human intelligence.
◼ AI is the study of the computations that make it
possible to perceive, reason, and act.
◼ Making computers that think?
◼ The automation of activities we associate with human
thinking, like decision making, learning ... ?
◼ The art of creating machines that perform functions
that require intelligence when performed by people ?
8
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Systems that act like humans
?
◼ You enter a room which has a computer terminal.
You have a fixed period of time to type what you
want into the terminal, and study the replies.
◼ At the other end of the line is either a human being
or a computer system.
9
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
If it is a computer system, and at the end of
the period you cannot reliably determine
whether it is a system or a human, then the
system is deemed to be intelligent.
10
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
AI Problems and Applications today
◼ Natural language processing such as
❑ Natural Language Understanding
❑ Speech Understanding
❑ Language Generation
❑ Machine Translation
❑ Information retrieval and text mining
◼ Motion and manipulation such as
❑ Robotics to handle such tasks as object manipulation and
navigation, with sub-problems of localization (knowing where you
are), mapping (learning what is around you) and motion planning
(figuring out how to get there)
◼ Social and business intelligence such as
❑ Social and customer behaviour modelling
13
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
14
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
AI simplifies the lives of patients, doctors
and hospital administrators by performing
tasks that are typically done by humans, but
in less time and at a fraction of the cost.
15
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
AI can improve clinical workflows and
even pinpoint a patient's risk of hospital-
acquired infections.
16
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
17
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Intelligent Agent
19
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
The agent utilizes the environment, it operates within, to
both receive input and take action.
20
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
21
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
22
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
• An agent should strive to "do the right thing",
based on what it can perceive and the actions it
can perform. The right action is the one that will
cause the agent to be most successful.
23
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Some key inputs that feed into an agent and
potentially, which it can draw itself are
current observations about the
environment, prior knowledge about the
environment, past experiences that it can
learn from and the objectives it needs to
achieve.
24
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Consider, e.g., the task of designing an
automated taxi driver:
Performance measure
Environment
Actuators
Sensors
25
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Actuators: Steering wheel, accelerator, brake,
signal, horn
Sensors: Cameras, sonar, speedometer, GPS,
odometer, engine sensors, keyboard
26
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Reasoning and knowledge representation
In AI, reasoning involves manipulation of data
to produce actions.
27
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud
Textbook
28
Artificial Intelligence - Prof. Tarek Moustafa Mahmoud