Aiml Class PPT Unit 1
Aiml Class PPT Unit 1
Aiml Class PPT Unit 1
INTELLIGENCE
The capacity to learn and solve problems.
In particular, the ability to solve novel problems (i.e
solve new problems) the ability to act rationally (i.e
act based on reason).
the ability to act like humans.
AI is concerned with the design of intelligence in an
artificial device, coined by John McCarthy in 1956.
AI is an attempt to build machines that like humans
can think and act.
What is involved in intelligence?
What is involved in intelligence?
• Ability to interact with the real world to
perceive(identify), understand, and act
– e.g., speech recognition, understanding and
creation
– e.g., image understanding
– e.g., ability to take actions, have an effect
Reasoning and Planning
– modeling the external world, given input
– solving new problems, planning, and making
decisions
– ability to deal with unexpected problems and
uncertainties
Learning and Adaptation
– we are continuously learning and adapting
– our internal models are always being updated‖
• e.g., a baby learning to categorize and
recognize animals
ARTIFICIAL INTELLIGENCE
• According to the father of Artificial Intelligence,
John McCarthy, it is “The science and
engineering of making intelligent machines,
especially intelligent computer programs”
• The term AI is defined by each author in own
ways which falls into 4 categories
1. The system that think like humans.
2. System that act like humans.
3. Systems that think rationally.
4. Systems that act rationally.
SOME DEFINITIONS OF AI
• High Accuracy with less errors: AI machines or systems are prone to less
errors and high accuracy as it takes decisions as per pre-experience or
information.
• High-Speed: AI systems can be of very high-speed and fast-decision making,
because of that AI systems can beat a chess champion in the Chess game.
• High reliability: AI machines are highly reliable and can perform the same
action multiple times with high accuracy.
• Useful for risky areas: AI machines can be helpful in situations such as
defusing a bomb, exploring the ocean floor, where to employ a human can
be risky.
• Digital Assistant: AI can be very useful to provide digital assistant to the
users such as AI technology is currently used by various E-commerce
websites to show the products as per customer requirement.
• Useful as a public utility: AI can be very useful for public utilities such as a
self-driving car which can make our journey safer and hassle-free, facial
recognition for security purpose, Natural language processing to
communicate with the human in human-language, etc.
Disadvantages of Artificial Intelligence
• Hill-climbing Search
• Simulated Annealing
• Local Beam Search
Hill-Climbing Search
• Hill climbing search is a local search problem.
• The purpose of the hill climbing search is to climb a hill and
reach the topmost peak/ point of that hill.
• It is based on the heuristic search technique where the
person who is climbing up on the hill estimates the
direction which will lead him to the highest peak.
State-space Landscape of Hill climbing algorithm:
• To understand the concept of hill climbing algorithm,
consider the below landscape representing the goal
state/peak and the current state of the climber.
• The topographical regions shown in the figure can be
defined as:
• Global Maximum: It is the highest point on the
hill, which is the goal state.
• Local Maximum: It is the peak higher than all
other peaks but lower than the global maximum.
• Flat local maximum: It is the flat area over the
hill where it has no uphill or downhill. It is a
saturated point of the hill.
• Shoulder: It is a flat area and a region having an
edge upwards
• Current state: It is the current position of the
person
Types of Hill climbing search algorithm
There are following types of hill-climbing search:
• a) Simple hill climbing
• b) Steepest-ascent hill climbing
• c) Stochastic hill climbing
• d) Random-restart hill climbing
a) Simple hill climbing search
112
CSP can be viewed as standard search problem
• Initial state: the empty assignment{}, in which
all variables are unassigned.
• Successor function: a value can be assigned to
any unassigned variable provided that it does
not conflict with previously assigned variables
• Goal test: current assignment is complete
• Path cost: a constant cost for every step
Example: Map-Coloring
• country : Australia
• Variables WA, NT, Q, NSW, V, SA, T
• Domains Di = {red,green,blue}
• Constraints: adjacent regions must have different colors
• e.g., WA ≠ NT
114
Example: Map-Coloring
115
Constraint graph
• Binary CSP: each constraint relates two variables
• Constraint graph: nodes are variables, arcs are constraints
116
Varieties of constraints
• Unary constraints involve a single variable,
– e.g., SA ≠ green
117
Varieties of CSPs
Discrete variables
1.Finite domains
• The simplest kind of CSP involves variables that are discrete and
have finite domains.
• Map coloring problems are of this kind.
• The 8-queens problem can also be viewed as finite- domain CSP,
where the variables Q1,Q2,…..Q8 are the positions each queen in
columns 1, ….8 and each variable has the domain {1,2,3,4,5,6,7,8}.
• Finite domain CSPs also include Boolean CSPs, whose variables can
be either true or false.
118
2.Infinite domains Discrete variables can also
have infinite domains – for example, the set of
integers or the set of strings.
• With infinite domains, it is no longer possible
to describe constraints by enumerating all
allowed combination of values
CSPs with continuous domains
• Chess
– b ~ 35
– D ~100
- search tree is ~ 10 154 (!!)
- completely impractical to search this
• Game-playing emphasizes being able to make optimal decisions in a finite amount of time
– Somewhat realistic as a model of a real-world agent
– Even if games themselves are artificial
Partial Game Tree (2-player, deterministic,
turns)
Minimaxstrategy: Look ahead and reason backwards
131