unit-1 AI
unit-1 AI
and videos)
• Self-Driving Cars
• Key Technologies:
• Key Technologies:
• Game Tree Search: Algorithms like Minimax and Alpha-Beta Pruning
evaluate future moves and their outcomes.
• Reinforcement Learning: AI improves its performance by playing
millions of games against itself.
• Deep Learning: Systems like AlphaZero learn chess strategies
without prior human input.
Community Support
Platform Independence
Data Handling
Before AI vs. After AI:
Self-Driving Cars
Healthcare Diagnosis
Customer Service
Agriculture
Entertainment
Manufacturing
Education
Types of AI
Limited Memory AI
Theory of Mind AI
Self-Aware AI
Reactive AI: The Foundation of Artificial Intelligence
Step 4: Training the model The prepared data is fed into the
chosen algorithm to "train" the AI model. During this phase,
the model learns to make predictions or decisions based on
the data. Think of this as the AI system studying for an
exam.
Step 5: Testing the model
The model is tested to see how well it performs. If it's not accurate
enough, it may need to be trained further or adjusted.
Step 6: Deployment
• You are given two jugs, one with a capacity of X liters and the other
with a capacity of Y liters.
• You need to measure exactly Z liters of water using these two jugs.
Pour water from one jug into another until one jug is either full or
empty.
Water Jug Problem
• Example Problem:
• Jug A: 3 liters
• Jug B: 5 liters
• Example Problem:
• Jug A: 3 liters
• Jug B: 5 liters
of cities. The salesman has to visit every one of the cities starting
1. Initial State
Example Scenarios:
Example Scenarios:
position.
of actions leading from the initial state to a particular state. Step Cost: Each
action has an associated cost, and the path cost is the sum of all step costs.
Example Scenarios:
Maze Problem: Path cost might be the total number of steps taken.
taken
Problem Characteristics
Is the problem decomposable into a set of independent smaller sub
problems?
Decomposable Problem
Example: Suppose we want to solve the problem of computing the
integral of the following expression ∫(x2 + 3x + sin2 x * cos2 x) dx
• Can solve this problem by breaking it down into three smaller sub
problem
• Can be solved by thedivide and-conquer technique.
Use of decomposing problems:
Each sub-problem is simpler to solve
Certain-Outcome Problems
Examples:
goal state.
• Water Jug Problem – The steps to measure a specific amount of
Examples:
• Playing Cards – The next card drawn is uncertain due to
shuffling and randomness.
• Chess Against an Opponent – The opponent's moves introduce
uncertainty.
• We need to find the interpretation but not the record of the processing
by which the interpretation is found.
• The size of the knowledge base available for solving the problem does
• Take for example the game of playing chess, rules for determining
at a solution.
• But additional knowledge about good strategy and tactics could help
reasoning process.
1. Knowledge Base: This is the core repository where all the rules
and facts are stored. In AI, the knowledge base is critical as it
contains the domain-specific information and the if-then rules that
dictate how decisions are made or actions are taken.
Example: “IF the patient has a fever AND a rash, THEN there is a
possibility of measles.”
Key Components of a Production System in
AI
Inference Engine:
The inference engine is the mechanism that applies the rules to the
known facts to derive new facts or to make decisions. It scans the
rules and decides which ones are applicable based on the current
facts in the working memory. It can operate in two modes:
Rule: If the patient has a fever and sore throat, they might have the
flu.
The system applies the rule, leading to the conclusion that the patient
might have the flu.
Key Components of a Production System in AI
Rule: If the patient has a fever and sore throat, they might have the
flu.
Sub-goals:
Top-Down Approach: The system starts from the goal and works back
to find relevant facts.
4. Control Mechanism:
5. Control/Search Strategies
Rule Selection:
For example, forward chaining selects rules that match available data,
while backward chaining selects rules that lead to the desired goal.
The actions are completed when the condition stands true, and
the rule is fired.
Rule:
If the patient has a fever and a sore throat, then the diagnosis is
strep throat.
Types of Production System
Process:
The system applies the rule and concludes that the patient has
strep throat based on the symptoms.
where the order of rule application can affect the outcome in some
cases but not always. In other words, the commutative property (i.e.,
only for certain sets of rules or conditions. This means that the
matter.
Types of Production System
Key Characteristics of a Partially Commutative Production System:
Facts:
Deposit: $50
Withdrawal: $20
Service Fee: $5
Types of Production System
Rules:
Rules:
1. If the temperature inside the house is above 75°F, then turn on the air
conditioner.
2. If the temperature inside the house is below 68°F, then turn on the
heater.
The temperature inside the house is 80°F. The rule to turn on the air conditioner
is applied.
The system turns off the air conditioner to save energy and adjusts the
Types of Production System
Why Non-Monotonic?
conclusion
Types of Production System
Key Features:
Rules:
2. Query: Group by city and Select records with age > 25.