Mod 1 Ai
Mod 1 Ai
Scope of AI
1956: Birth of AI
Key Milestones
2011: IBM's Watson won the quiz show Jeopardy! by understanding and
responding to natural language questions.
2014: Google's DeepMind developed AlphaGo, which defeated professional
Go player Lee Sedol in 2016.
2020s: Ongoing advancements in AI research continue to push the
boundaries, with AI being integrated into various industries, including
healthcare, finance, and autonomous vehicles.
Current
Widely implemented and used Theoretical and under research
Status
Problem Formulation in AI
Problem formulation is the first step in solving any problem using AI. It involves
defining the problem in a way that is understandable and solvable by AI
algorithms. Here are the key steps involved:
1. Define the Problem: Clearly state the problem you want to solve.
2. Specify the Input and Output: Identify what inputs the AI will receive and
what outputs it should produce.
3. Determine the Constraints: List any limitations or constraints that the
solution must adhere to.
4. Select Evaluation Metrics: Choose the metrics that will be used to evaluate
the performance of the AI solution.
5. Gather Data: Collect the data that will be used to train and test the AI
model.
Problem-Solving Techniques in AI
Once the problem is formulated, AI employs various techniques to solve it. Here
are some of the most common techniques:
1. Search Algorithms:
o Breadth-First Search (BFS): Explores all the nodes at the present
depth level before moving on to nodes at the next depth level.
o Depth-First Search (DFS): Explores as far as possible along each
branch before backtracking.
o A\ Search*: Uses heuristics to guide the search, balancing between
BFS and DFS.
2. Optimization Algorithms:
o Genetic Algorithms: Mimic natural evolution processes to find
optimal solutions by generating, evaluating, and evolving candidate
solutions.
o Simulated Annealing: Finds an approximate global optimum by
simulating the cooling process of metals.
3. Machine Learning Algorithms:
o Supervised Learning: Learns from labeled data to make predictions
or classifications (e.g., linear regression, decision trees).
o Unsupervised Learning: Finds patterns in unlabeled data (e.g.,
clustering algorithms like K-means).
o Reinforcement Learning: Learns by interacting with an environment
and receiving rewards or penalties (e.g., Q-learning).
4. Logic-Based Methods:
o Propositional Logic: Involves reasoning with propositions that can be
true or false.
o Predicate Logic: Extends propositional logic with quantifiers and
predicates to express more complex statements.
5. Heuristics:
o Heuristic Search: Uses domain-specific knowledge to guide the
search process more efficiently.
o Rule-Based Systems: Applies a set of predefined rules to make
decisions or solve problems.
Informed search strategies, also known as heuristic search strategies, use additional
information (heuristics) to guide the search process more efficiently. These
algorithms aim to find the solution faster by estimating the cost to reach the goal.
Here are some common informed search strategies:
1. A\ Search*:
o How it works: Uses both the cost to reach a node (g) and the
estimated cost to reach the goal from that node (h) to determine the
next node to explore.
o Pros: Guaranteed to find the optimal path if the heuristic function is
admissible (never overestimates the cost).
o Cons: Can be memory-intensive for large search spaces.
2. Greedy Best-First Search:
o How it works: Expands the node that appears to be closest to the goal
based on the heuristic function (h).
o Pros: Can be faster than A\* in some cases.
o Cons: Does not guarantee finding the optimal path and can get stuck
in local minima.
3. Iterative Deepening A\* (IDA\*):
o How it works: Combines the benefits of DFS and A\* by performing
a series of depth-limited searches using a cost threshold that increases
iteratively.
o Pros: Requires less memory than A\* and can handle larger search
spaces.
o Cons: May require more computational effort than A\*.
Uninformed search is like navigating through a maze with a blindfold, feeling your
way along the walls. Informed search is like having a partial map, giving you hints
about where to go.
Heuristic Search
CSPs are a type of problem where the goal is to find a solution that satisfies a set
of constraints. These problems are common in AI and can be found in various
domains such as scheduling, planning, and resource allocation. Here's a breakdown
of CSPs:
1. Definition of CSPs:
o A CSP consists of a set of variables, a domain for each variable, and a
set of constraints.
o The goal is to assign values to variables such that all constraints are
satisfied.
2. Components of CSPs:
o Variables: The elements that need to be assigned values (e.g., X, Y,
Z).
o Domains: The possible values that each variable can take (e.g., X ∈
{1, 2, 3}).
o Constraints: The rules that specify which combinations of values are
allowed (e.g., X ≠ Y).
3. Solving CSPs:
o Backtracking Search: A depth-first search algorithm that tries to
assign values to variables one at a time and backtracks when a
constraint is violated.
o Forward Checking: Enhances backtracking by checking constraints
ahead of time and eliminating invalid assignments.
oConstraint Propagation: Uses techniques like Arc Consistency (AC-
3) to reduce the search space by propagating the constraints.
o Heuristic Methods: Employs heuristics like the Minimum Remaining
Values (MRV) and Least Constraining Value (LCV) to improve
efficiency.
4. Example of CSP:
o Sudoku: Each cell in the grid is a variable, the domain is the numbers
1-9, and the constraints are the rules of Sudoku (each number must
appear only once in each row, column, and 3x3 subgrid).