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


ARed
BGreen
CBlue
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.

Advantages of Bayes’ Rule

Provides a mathematical method for decision-making under uncertainty


Updates probabilities as new evidence becomes available


Combines prior knowledge with observed data


Handles uncertain and incomplete information effectively


Widely used in Artificial Intelligence and Machine Learning


Limitations

Requires accurate prior probabilities


Calculations become complex for large datasets


Incorrect prior information can produce inaccurate results


Assumes conditional probabilities are known


Applications of Bayes’ Rule’:


Medical Diagnosis;          Determines the probability of a disease based on test results

Spam Email Detection;    Classifies emails as spam or non-spam using the Naïve Bayes classifier

Machine Learning;          Used in classification algorithms such as Naïve Bayes

Artificial Intelligence;           Supports reasoning and decision-making under uncertainty

Weather Forecasting;             Predicts weather conditions using historical data and current observations

Fraud Detection;                Identifies suspicious financial transactions

Speech Recognition;          Improves recognition accuracy by evaluating the probability of spoken words

Recommendation Systems;            Suggests products, movies, or music based on user preferences

Robotics;              Helps robots estimate their position and make decisions in uncertain environments

Risk Analysis;          Assesses risks in finance, insurance, and engineering