Lec 01 Introduction
Lec 01 Introduction
Lec 01 Introduction
Introduction
ITEM WEIGHTAGE
Quizzes 15 %
Assignments 15 %
Class Participation 5%
Mid Term 20 %
Final Term 45 %
Total 100
Logistics
• Quiz may be un-announced.
• Read the book
• Plagiarism – Write your own Solution
• Deadline of the assignments will not be extended
• No Late submissions will be accepted.
Other Announcements
• Email address:
• mohsin.ashraf@ucp.edu.pk
• Office:
• C-Block, Building A, Office 101
• Course Coordinator
• Dr. Mohsin Ashraf
6
Course Topics
• Part I: Solving Problems by Searching
• Fast search / planning
• Constraint satisfaction
• Heuristics
• Adversarial and uncertain search
• Is Google Intelligent?
• Task specific intelligence
12
Artificial Intelligence
• “Study of computations that make it possible to perceive, reason
and act.”
• Branch of Science which deals with helping machines to find
solutions to complex problems in a more human-like fashion
What is Understand
Intelligence ??
Remember
Think
Reason
Problem Solving
Humans Vs Machines
Humans Machines
• Symbolic calculation • Numeric calculation
• Natural language understanding • Machine Language
• Not very precise • Precise
• Knowledge • Data
• Generalize from examples • Cannot generalize
• Deal with noisy inputs • Cannot deal with noise
What is AI?
The science of making machines that:
• These laws of thought were supposed to govern the operation of the mind;
their study initiated the field called logic.
Thinking Rationally: Laws of Thought
• Problems:
• Not easy to state informal knowledge in logical notation
• Mostly work for toy examples
• Big difference between solving a problem "in principle" and solving it “in
practice”
• Problems with just a few hundred facts can exhaust the computational resources of
any computer
• How to measure if a program is thinking rationally
• There is a difference between thinking and acting
Conclusion:
Right Thinking
Must have rules and logic
Complex and Hard
23
Acting rationally: Rational agent
• An agent is something that acts.
Curiosity (rover)
24
Acting rationally: Rational agent
• A rational agent is one that acts so as to achieve the best outcome
or, when there is uncertainty, the best expected outcome.
• Rational behavior: doing the right thing
• The right thing: the optimal (best) thing that is expected to maximize
the chances of achieving a set of goals, in a given situation
• Making correct inferences is part of being a rational agent
• There are also ways of acting rationally that cannot be said to involve
inference -- Reflex actions.
25
Acting rationally: Rational agent
• Advantages over other approaches
• Conclusion:
• Behave in right manner
• Give max. Performance
• Give Optimal Solution 26
This course is about designing
rational/intelligent agents
Environment
problem types Sensors
• Learning to recognize when and how a
Agent
Percepts
new problem can be solved with an ?
existing technique
Actuators
Actions
Rational Decisions
• We’ll use the term rational in a very specific, technical way:
• Rational: maximally achieving pre-defined goals
• Rationality only concerns what decisions are made (not the thought
process behind them)
• Goals are expressed in terms of the utility of outcomes
• Being rational means maximizing your expected utility
Approaches to AI
• Strong AI
• Strong AI aims to build machines that can truly reason and solve problems who is self
aware and whose overall intellectual ability is indistinguishable from that of a human
being.
• Human-Like
• Non-human Like
• Weak AI
• Weak artificial intelligence (weak AI), also known as narrow AI, is artificial
intelligence that is focused on one narrow task.
• Deals with the creation of some form of computer-based artificial intelligence that
cannot truly reason and solve problems, but can act as if it were intelligent.
• Siri is a good example of narrow intelligence.
Weak and Strong AI
• Weak AI is AI that can not 'think', i.e. a computer chess playing AI
does not think about its next move, it is based on the programming it
was given, and its moves depend on the moves of the human
opponent.
• Strong AI is the idea/concept that we will one day create AI
that can 'think' i.e. be able to play a chess game that is not based on
the moves of the human opponent or programming, but based on the
AI's own 'thoughts' and feelings and such, which are all supposed to
be exactly like a real humans thoughts and emotions and stuff.
Applications of AI
• Game playing
• Computer vision
• Natural language processing
• Diagnosis systems
• Control
• Optimisation
• Robotics
Natural Language
• Speech technologies (e.g. Siri)
• Automatic speech recognition (ASR)
• Text-to-speech synthesis (TTS)
• Dialog systems
• Web search
• Text classification, spam filtering, etc…
Vision (Perception)
• Object and face recognition
• Scene segmentation
• Image classification
Robotics
• Robotics
• Technologies
• Vehicles
• Rescue
• Soccer!
• Lots of
automation…
Game Playing
• Classic Moment: May, '97: Deep Blue vs. Kasparov
• First match won against world champion
• “Intelligent creative” play
• 200 million board positions per second
• Humans understood 99.9 of Deep Blue's moves
• Can do about the same now with a PC cluster
• Open question:
• How does human cognition deal with the
search space explosion of chess?
• Or: how can humans compete with computers at all??
39
AI Topics: A Quick Introductory Overview
• Classic AI search problems
• 3*3*3 Rubik’s Cube
Classical AI Search Problems
• 8-Puzzle
1 4 2 1 2 3
6 5 8 4 5 6
7 3 7 8
Classical AI Search Problems
Classical AI Search Problem
• Pac-Man