Unit 1 AI
Unit 1 AI
Definition of AI:
Learning: AI systems have the ability to learn from data and improve
their performance over time. This is often achieved through machine
learning algorithms.
Reasoning: AI systems can process information and draw logical
conclusions, allowing them to make informed decisions.
Problem-Solving: AI systems excel in solving complex problems by
analyzing data and identifying patterns.
Language Processing: Natural Language Processing (NLP) enables AI to
understand and generate human language, making it useful in tasks like
chatbots and language translation.
Perception: AI systems can perceive their environment through sensors,
cameras, or other input devices, enabling tasks like image recognition and
autonomous driving.
Adaptation: AI systems can adapt to changing circumstances and make
decisions based on new information.
Automation: AI is often used for automating repetitive or labor-intensive
tasks, improving efficiency and productivity.
Types of AI:
AI Problems
AI Problem Categories:
● Problem Space: The problem space represents all possible states and the
transitions between them in a given problem. It helps visualize the
problem-solving process.
● State Space Search: Many AI problems can be formulated as a search
through a state space. The goal is to find a sequence of actions (operators)
that lead from an initial state to a goal state.
AI Techniques
Common AI Techniques:
Evaluating AI Systems:
To determine the success of an AI system, several criteria are considered:
Problem Characteristics
Search Space Size: Some problems have enormous search spaces, making
them computationally challenging. Efficient search algorithms are
required.
Optimization: Optimization problems involve finding the best solution
among many possible solutions, considering constraints and objectives.
Determinism: Problems can be deterministic, where outcomes are known,
or stochastic, with probabilistic outcomes.
Admissibility: A heuristic used in search algorithms is admissible if it
never overestimates the cost to reach the goal. This property ensures the
correctness of heuristic-guided searches.
Completeness: Some search algorithms are complete, guaranteeing that
they will find a solution if it exists, while others may not offer such
guarantees.
The heuristic method might not always provide us the finest solution, but it is
assured that it helps us find a good solution in a reasonable time.
Based on context, there can be different heuristic methods that correlate with the
problem's scope. The most common heuristic methods are - trial and error,
guesswork, the process of elimination, historical data analysis. These methods
involve simply available information that is not particular to the problem but is
most appropriate. They can include representative, affect, and availability
heuristics.
Generate and Test:
Hill Climbing:
Step 1: Evaluate the initial state. If it is the goal state, then return success and
Stop.
Step 2: Loop Until a solution is found or there is no new operator left to apply.
Else if it is better than the current state, then assign a new state as a current
state.
Else if not better than the current state, then return to step2.
Step 5: Exit
○ Steepest-Ascent hill-climbing:
Simple hill climbing is the simplest way to implement a hill climbing algorithm.
It only evaluates the neighbour node state at a time and selects the first one
which optimises current cost and sets it as a current state. It only checks it's
one successor state, and if it finds better than the current state, then move else
be in the same state. This algorithm has the following features:
○ Step 1: Evaluate the initial state, if it is goal state then return success and
Stop.
b. Else if it is better than the current state then assign new state as a
current state.
c. Else if not better than the current state, then return to step2.
○ Step 5: Exit.
○ Step 1: Evaluate the initial state, if it is goal state then return success and
stop, else make the current state as the initial state.
○ Step 2: Loop until a solution is found or the current state does not
change.
a. Let SUCC be a state such that any successor of the current state
will be better than it.
e. If the SUCC is better than the current state, then set the
current state to SUCC.
○ Step 5: Exit.