2 Lecture AI_Problem Solving (1)
2 Lecture AI_Problem Solving (1)
Module -I
Programme: B. Tech-IT,
Semester: VIth
Course: Artificial Intelligence (CSE401)
Faculty: Dr. Seema Rawat
Index
• Problem Solving
• Problem Characteristics
• State Space Representation
Learning Objective
3
Learning Outcomes
–State space: Contains all the possible states for a given problem.
–Initial state: position from which the problem-solving process may start.
To build a system and to solve a particular problem, there are four approaches:
3. Isolate and represent the task knowledge that is necessary to solve the problem.
4. Choose the best problem solving technique(s) and apply it to the particular
problem.
Problem Characteristics
Recoverable (Backtrack)
Irrecoverable
Can solution steps be ignored or undone?
The 8-Puzzle
Recoverable!
Can solution steps be ignored or undone?
Playing Chess
Moves cannot be retracted.
Irrecoverable!
Is the universe predictable?
The 8-Puzzle
Every time we make a move, we know exactly what will happen.
Certain outcome!
Is the universe predictable?
Playing Bridge
Uncertain outcome!
Is a good solution absolute or relative?
Absolute solution : once you get one solution you do need to bother about other
possible solution.
Relative Solution : once you get one solution you have to find another possible solution
to check which solution is best (i.e low cost).
Ex-TSP
Different reasoning paths lead to the answer. It does not matter which path we follow.
Example
• 1.Marcus was a man.
• 2.Marcus was a Pompeian.
• 3.Marcus was born in 40 A.D.
• 4.All men are mortal.
• 5.All Pompeians died when the volcano erupted in 79 A.D.
• 6.No mortal lives longer than 150 years.
• 7.It is now 2004 A.D.
Is Marcus alive?
15
Image Source [6] 16
Is the solution a state or a path?
Ex-Bank
Role of knowledge
Playing Chess
Knowledge is important only to constrain the search for a solution.
Knowledge about good strategy and tactics could help to constrain the
search and speed up the execution of the program.
Reading Newspaper
Knowledge about predicting the political trend.
Does the task require human-interaction?
•Before a solution can be found, the prime condition is that the problem must be
very precisely defined.
By defining it properly, one converts the abstract problem into real workable states
that are really understood.
•A set of all possible states for a given problem is known as the state space of the
problem.
State space representations are highly beneficial in AI because they provide all
possible states, operations and goals.
State Space Representation
[1] https://www.merriam-webster.com/
[2] https://www.wikipedia.org/
[3] Stuart Russell, Peter Norvig, Artificial Intelligence: A Modern
Approach, 4th Edition, 2020, Pearson
[4 ] https://www.sas.com
[5] https://www.tutorialspoint.com/artificial_intelligence
[6] https://www.engineeringenotes.com
23
Bibliography
24
Thank You
25