AIML-Module1 Vtu 21 Scheme
AIML-Module1 Vtu 21 Scheme
www.cambridge.edu.in
What is AI?
2 Jul 2024 2
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
2 Jul 2024 4
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
2 Jul 2024 5
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
2 Jul 2024 6
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
2 Jul 2024 7
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
2 Jul 2024 8
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
2 Jul 2024 9
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
2 Jul 2024 10
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
2 Jul 2024 11
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
I
Concerned
with thought
processes and
reasoning
2 Jul 2024 12
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
2 Jul 2024 13
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
2 Jul 2024 14
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
2 Jul 2024 15
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Concerned
with thought
processes and
reasoning
Address
behavior
2 Jul 2024 16
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Measure success in terms of
fidelity to human performance
Concerned
with thought
processes and
reasoning
Address
behavior
2 Jul 2024 17
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Measure success in terms of Measure success against
fidelity to human performance rationality
Concerned
with thought
processes and
reasoning
Address
behavior
2 Jul 2024 18
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Measure success in terms of Measure success against
fidelity to human performance rationality
Concerned
with thought
processes and
reasoning
A system is rational if it
Address
does the “right thing,”
behavior
given what it knows.
2 Jul 2024 19
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
What is AI?
Measure success in terms of Measure success against
fidelity to human performance rationality
Some definitions
Concerned
of artificial
with thought
processes and intelligence,
reasoning organized into
four categories
A system is rational if it
Address
does the “right thing,”
behavior
given what it knows.
2 Jul 2024 20
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Acting humanly: The Turing Test Approach
2 Jul 2024 21
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Acting humanly: The Turing Test Approach
2 Jul 2024 23
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Acting humanly: Total Turing Test
2 Jul 2024 24
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Thinking humanly: The Cognitive Modeling Approach
2 Jul 2024 25
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Thinking humanly: The Cognitive Modeling Approach
26
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Thinking rationally: The “Laws of Thought” Approach
• The Greek philosopher Aristotle was one of the first to attempt to codify “right
thinking,” that is, irrefutable reasoning processes.
• His syllogisms provided patterns for argument structures that always yielded correct
conclusions when given correct premises.
• For example, “Socrates is a man;
all men are mortal;
therefore, Socrates is mortal.”
• These laws of thought were supposed to govern the operation of the mind; their
study initiated the field called logic.
27
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Thinking rationally: Logistic
• By 1965, programs existed that could, in principle, solve any solvable problem
described in logical notation. (If no solution exists, the program might loop forever.)
• The so-called logicist tradition within artificial intelligence hopes to build on such
programs to create intelligent systems.
2 Jul 2024 28
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Thinking rationally: The “Laws of Thought” Approach
2 Jul 2024 30
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Acting rationally: The rational agent Approach
• The rational-agent approach has two advantages over the other approaches.
1. It is more general than the “laws of thought” approach because correct
inference is just one of several possible mechanisms for achieving rationality.
2. It is more amenable to scientific development than are approaches based on
human behavior or human thought.
2 Jul 2024 31
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
The Foundations of Artificial Intelligence
• Philosophy • Psychology
• Mathematics • Computer engineering
• Economics • Control theory and cybernetics
• Neuroscience • Linguistics
2 Jul 2024 32
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
The Foundations of Artificial Intelligence - Philosophy
2 Jul 2024 36
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
The Foundations of Artificial Intelligence - Neuroscience
2 Jul 2024 39
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
History of AI
History of AI
• Gestation of AI (1943 - 1955)
Warren McCulloch and Walter Pitts.
They drew on three sources:
- knowledge of the basic physiology and function of neurons in the
brain;
- a formal analysis of propositional logic
- Turing’s theory of computation.
• In 1943, proposed a binary-based model of neurons
• Any computable function can be modeled by a set of neurons
• A serious attempt to model brain
• 1950, Turing’s “Computing Machinery and Intelligence ”: turing test,
The birth of artificial intelligence (1956):
• Dartmouth meeting to study AI
• an AI program ”Logic Theorist” to prove many theorems
• We assume that
- the environment is observable, so the agent always knows the current state.
- the environment is discrete, so at any given state there are only finitely many
actions to choose from.
- the environment is known, so the agent knows which states are reached by
each action.
- the environment is deterministic, so each action has exactly one outcome.
• Under these assumptions, the solution to any problem is a fixed sequence of
actions. 73
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Problem-solving Agents
???
82
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
8-Queens Problem
Incremental formulation:
• States: Any arrangement of 0 to 8 queens on the board is a state.
• Initial state: No queens on the board.
• Actions: Add a queen to any empty square.
• Transition model: Returns the board with a queen added to the specified square.
• Goal test: 8 queens are on the board, none attacked.
In this formulation, we have 64 ・ 63 ・ ・ ・ 57 ≈ 1.8×1014 possible sequences to
investigate.
83
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
8-Queens Problem
Incremental formulation prohibiting placing a queen in any square that is already
attacked:
• States: All possible arrangements of n queens (0 ≤ n ≤ 8), one per column in the
leftmost n columns, with no queen attacking another.
• Initial state: No queens on the board.
• Actions: Add a queen to any square in the leftmost empty column such that it is not
attacked by any other queen.
• Transition model: Returns the board with a queen added to the specified square.
• Goal test: 8 queens are on the board, none attacked.
This formulation reduces the 8-queens state space from 1.8×1014 to just 2,057, and
solutions are easy to find.
2 Jul 2024 84
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
8-QUEENS PROBLEM
2 Jul 2024 99
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
A simplified road map of Romania
101
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Search trees
• Frontier or open list - the set of all leaf nodes available for expansion at any given
point.
• The process of expanding nodes on the frontier continues until either a solution is
found or there are no more states to expand.
2 Jul 2024 104
Dr. Josephine Prem Kumar, Prof.-CSE www.cambridge.edu.i
Search Tree
• Repeated state.
• Loopy path.
• Redundant paths.