Aircraft systems
DEFINE CONSTRAINT SATISFACTION PROBLEM CSPS AND EXPLAN THEIR COMPONETS WITH EXAMPLE
A Constraint Satisfaction Problem (CSP) is a problem in Artificial Intelligence where the objective is to assign values to a set of variables such that all specified constraints are satisfied. CSPs are commonly used in planning, scheduling, resource allocation, map coloring, and puzzle-solving applications.
A CSP is represented as a triple:
CSP=(X,D,C)
Where:
X = Set of variables
D = Domain of values for each variable
C = Set of constraints that restrict the values the variables can take
Components of a CSP
Variables (X);
Variables are the unknowns whose values need to be determined
Example:
For a map-coloring problem:
X={A,B,C,D}
Where A, B, C, and D represent different regions
Domains (D);
The domain of a variable is the set of all possible values that can be assigned to it
Example:
D={Red,Green,Blue}
Each region can be assigned any one of these three colors
Constraints (C);
Constraints specify the conditions that the assigned values must satisfy
They can be:
Unary Constraints: Involve one variable
Binary Constraints: Involve two variables
Higher-order Constraints: Involve three or more variables
Example:
A ≠ B
B ≠ C
C ≠ D
These constraints ensure that adjacent regions have different colors
Example: Map Coloring Problem;
Consider four neighboring regions:
A
/ \
B—C
\ /
D
Variables;
X={A,B,C,D}
Domains
D={Red,Green,Blue}
Constraints
A ≠ B
A ≠ C
B ≠ C
B ≠ D
C ≠ D
One Possible Solution
Region | Color |
|---|---|
| A | Red |
| B | Green |
| C | Blue |
| D | Red |
All neighboring regions have different colors, so all constraints are satisfied
Characteristics of CSPs;
Variables have finite domains
Constraints restrict allowable assignments
The goal is to satisfy all constraints
Solutions can be found using search and inference techniques
Applications of CSPs;
Map Coloring
Sudoku Puzzle
N-Queens Problem
Timetable Scheduling
Job Scheduling
Resource Allocation
Circuit Design
Robot Motion Planning
Advantages;
Provides a structured way to solve complex problems
Reduces the search space by applying constraints
Widely used in AI planning and scheduling
Can solve many real-world optimization problems efficiently
Limitations;
Large CSPs may require significant computation
Finding a solution can be difficult for problems with many variables and constraints
EXPLAIN PLAINNING GRAPH WITH EXAMPLKES
A Planning Graph is a layered graph used in Artificial Intelligence (AI) planning to represent the progression of states and actions from an initial state to a goal state. It was introduced by Blum and Furst in the GraphPlan algorithm. A planning graph helps determine whether a goal can be achieved and estimates the minimum number of steps required to reach it.
It consists of alternating state levels and action levels, showing which actions are possible in each state and the resulting new states.
Components of a Planning Graph
State Levels (S)
Represent the facts or conditions that are true at a particular stage
Denoted as S₀, S₁, S₂, ..
Action Levels (A)
Represent all actions that can be performed using the facts in the previous state level
Denoted as A₀, A₁, A₂, ..
Mutex (Mutual Exclusion) Relations
Indicate actions or states that cannot occur simultaneously
Help eliminate invalid plans
Construction of a Planning Graph
Begin with the initial state (S₀)
Determine all applicable actions to form A₀
Apply these actions to generate the next state level S₁
Repeat the process until:
The goal state is reached, or
No new states are generated
Example;
Problem
A robot wants to switch on a light
Initial State (S₀)
Switch is OFF
Power is Available
Available Action (A₀)
Turn ON Switch
Next State (S₁)
Switch is ON
Light is ON
Planning Graph;
State Level S₀
————————-
Power Available
Switch OFF
│
│
▼
Action Level A₀
————————-
Turn ON Switch
│
▼
State Level S₁
————————-
Switch ON
Light ON
Since the goal “Light ON” appears in S₁, the plan consists of one action:
Plan: Turn ON Switch
Another Example – Block World;
Suppose there are two blocks A and B on a table
Initial State (S₀);
On(A, Table)
On(B, Table)
Clear(A)
Clear(B)
Goal;
On(A, B)
Planning Graph;
State S₀
————————-
On(A,Table)
On(B,Table)
Clear(A)
Clear(B)
│
▼
Action A₀
————————-
Move(A,B)
│
▼
State S₁
————————-
On(A,B)
Clear(A)
The goal On(A, B) is achieved after performing the action Move(A, B)
Advantages of Planning Graph;
Efficiently represents all possible actions and states
Reduces the search space using mutex relations
Estimates the shortest plan length
Helps detect impossible goals early
Improves planning efficiency compared to exhaustive search
Limitations of Planning Graph;
Planning graphs can become very large for complex problems
Constructing the graph may require significant memory
Mutex calculations can be computationally expensive
Less suitable for highly dynamic or uncertain environments
Applications;
Robot motion planning
Automated planning systems
Game AI
STATE AND EXPLAIN BAYS RULE AND ITS APPLICATIONS
Bayes’ Rule (Bayes’ Theorem) is a fundamental theorem in Probability Theory and Artificial Intelligence that describes how to update the probability of an event based on new evidence. It helps calculate the posterior probability of a hypothesis after considering the available evidence.
It was developed by the English mathematician Thomas Bayes
Statement of Bayes’ Rule
Bayes’ Rule states that:
P(H∣E)=P(E∣H) × P(H)/P(E)
Where:
P(H|E) = Posterior Probability (Probability of hypothesis H given evidence E
P(E|H) = Likelihood (Probability of observing evidence E if hypothesis H is true)
P(H) = Prior Probability (Initial probability of the hypothesis before considering evidence)
P(E) = Probability of the evidence
Explanation;
Bayes’ Rule updates our belief about a hypothesis when new evidence becomes available
Prior Probability: Initial belief before observing evidence
Likelihood: Probability of observing the evidence if the hypothesis is true
Evidence: Total probability of the observed data
Posterior Probability: Updated probability after considering the evidence
Thus, Bayes’ Rule combines prior knowledge with new information to make better decisions
Example;
Suppose:
Probability that a person has a disease:
P(H)=0.01
Probability that the test is positive if the person has the disease:
P(E∣H)=0.99P
Probability of a positive test result:
P(E)=0.05
Using Bayes’ Rule:
P(H∣E)=0.99 0.01/0.05
P(H∣E)=0.0099/0.05 = 0.198
Result: Even after a positive test, the probability that the person actually has the disease is 19.8%, because the disease is rare.
