Unit I
Unit I
Artificial Intelligence
By
Krunal C. Pawar
Definitions Of AI
• Artificial intelligence, or AI, is technology that enables computers
and machines to simulate human intelligence and problem-solving
capabilities.
• Artificial intelligence (AI) refers to computer systems capable of performing complex
tasks that historically only a human could do, such as reasoning, making decisions,
or solving problems.
• AI is the branch of computer science which deals with the Symbolic, Non
Algorithmic method of problem solving. It is the study of how to make computer to
things at a movement like as human.
• Artificial Intelligence is concerned with the design of intelligence in an artificial
device. The term was coined by John McCarthy (Father of AI) in 1956.
• There are two ideas in the definition.
1. Intelligence
2. Artificial device
Definitions Of AI
• A system with intelligence is expected to behave as intelligently as a
human and a system with intelligence is expected to behave in the
best possible manner.
• Artificial intelligence is about designing systems that are as intelligent
as humans. This involves trying to understand human thought and an
effort to build machines that emulate the human thought process.
This view is the cognitive science approach to AI.
Turing test
• The Turing test was developed by Alan Turing(A
computer scientist) in 1950. He proposed that the
“Turing test is used to determine whether or not a
computer(machine) can think intelligently like
humans”?
• The Turing test is based on a party game "Imitation
game," with some modifications. This game involves
three players in which one player is Computer, another
player is human responder, and the third player is a
human Interrogator, who is isolated from other two
players and his job is to find that which player is
machine among two of them.
• The Turing test is based on a party game "Imitation game," with
some modifications. This game involves three players in which one
player is Computer, another player is human responder, and the third
player is a human Interrogator, who is isolated from other two
players and his job is to find that which player is machine among two
of them.
• Consider, Player A is a computer, Player B is human, and Player C is
an interrogator. Interrogator is aware that one of them is machine,
but he needs to identify this on the basis of questions and their
responses.
• The conversation between all players is via keyboard and screen so
the result would not depend on the machine's ability to convert
words as speech.
• The test result does not depend on each correct answer, but only
how closely its responses like a human answer. The computer is
permitted to do everything possible to force a wrong identification by
the interrogator.
• The questions and answers can be like:
Interrogator: Are you a computer?
Player A (Computer): No
Interrogator: Multiply two large numbers such as
(256896489*456725896)
Player A: Long pause and give the wrong answer.
• In this game, if an interrogator would not be able to
identify which is a machine and which is human, then the
computer passes the test successfully, and the machine
is said to be intelligent and can think like a human.
AI Problems
• AI Problem is solved by using AI Technique. The problem which is solve by using
knowledge & logic is called as AI problem.
• Knowledge consist of
1. Facts
2. Concepts
3. Theories
4. Procedures
5. Relationships between them
• AI Problem requires knowledge to solve it, without knowledge this problem is
not solvable. AI problem is solved by using AI technique, which is non-
algorithmic (dynamic steps) and symbolic approach of problem solution.
Examples of AI problems are chess playing, driving a car etc.
• Non AI Problem may or may not require knowledge to solve it,
without knowledge this problem is may be solvable. Non AI problem
is solved by using Non AI technique, which is algorithmic (static steps)
and non-symbolic approach of problem solution. Examples of Non AI
problems are addition of numbers, simple computer program etc.
AI Techniques
• In the real world, the knowledge has some unwelcomed properties
1. Its volume is huge, next to unimaginable.
2. It is not well-organized or well-formatted.
3. It keeps changing constantly
• AI Technique is a technique which is used to solve AI problem.
• AI Technique is a manner to organize and use the knowledge efficiently. It is a
Method that exploits knowledge that should represent in such a way that-
1. The knowledge captures generalization.
2. It can be understood by people, who provide it.
3. It can be easily modified to correct errors & to reflect the changes in world.
State Space Search in Artificial
Intelligence
• State space search is a problem-solving technique
used in Artificial Intelligence (AI) to find the solution
path from the initial state to the goal state by exploring
the various states. The state space search approach
searches through all possible states of a problem to find
a solution. It is an essential part of Artificial Intelligence
and is used in various applications, from game-playing
algorithms to natural language processing.
• To begin the search process, we set the current state to the initial
state.
• We then check if the current state is the goal state. If it is, we
terminate the algorithm and return the result.
• If the current state is not the goal state, we generate the set of
possible successor states that can be reached from the current
state.
• For each successor state, we check if it has already been visited. If
it has, we skip it, else we add it to the queue of states to be visited.
• Next, we set the next state in the queue as the current state and
check if it's the goal state. If it is, we return the result. If not, we
repeat the previous step until we find the goal state or explore all
the states.
• If all possible states have been explored and the goal state still
needs to be found, we return with no solution.
Problem Characteristics In Artificial Intelligence
• To choose an appropriate method for a particular problem
first we need to categorize the problem based on the
following characteristics.
1.Is the problem decomposable into small sub-problems
which are easy to solve?
2.Can solution steps be ignored or undone?
3.Is the universe of the problem is predictable?
4.Is a good solution to the problem is absolute or relative?
5.Is the solution to the problem a state or a path?
6.What is the role of knowledge in solving a problem using AI
7.Does the task of solving a problem require human
interaction?
Is the problem decomposable?
• The question of whether a problem is decomposable
refers to whether it can be broken down into smaller,
independent subproblems.
• Decomposable problems can be solved by tackling each
subproblem individually, and their solutions can then be
combined to solve the overall problem.
• However, not all problems are decomposable, and some
may require addressing as a whole without breaking
them down into independent parts.
Example: In this case, the problem is divided into smaller
problems. The smaller problems are solved independently.
Finally, the result is merged to get the final result.
Can solution steps be ignored or
undone?
• The reversibility of solution steps refers to whether they
can be ignored or undone if they prove to be unwise or
lead to a dead end.
• In some problems, certain solution steps can be ignored
without affecting the final result.
• Ex. In the Theorem Proving problem.
• a lemma that has been proved can be ignored for the
next steps.
• Lemma- A statement that is thought to be true and is used as
the basis of testing the truth of another statement
• In recoverable problems, solution steps can be undone
to explore alternative paths.
• Ex. in the 8-puzzle, moves can be undone to try
different arrangements of tiles.
• On the other hand, some problems have irreversible
solution steps, like in chess, where once a move is
made, it cannot be undone.
• So, Ignorable problems can be solved using a simple
control structure that never
backtracks. Recoverable problems can be solved using
backtracking. Irrecoverable problems can be solved
by recoverable style methods via planning.
Is the problem’s universe
predictable?
• In Playing Bridge, We cannot know exactly where all the
cards are or what the other players will do on their turns.
• For certain-outcome problems, planning can be used
to generate a sequence of operators that is guaranteed
to lead to a solution.
• Ex. 8-puzzle Problem.
• For uncertain-outcome problems, a sequence of
generated operators can only have a good probability of
leading to a solution. Plan revision is made as the plan is
carried out and the necessary feedback is provided.
Is a good solution absolute or
relative?
• The nature of a good solution can be either absolute or relative.
• An absolute solution is one where finding a single correct path
or outcome is sufficient to achieve the desired goal.
• In problems like the water jug puzzle, finding any valid path to
the solution is considered good enough.
• On the other hand, a relative solution is one that requires
evaluating multiple possible paths or outcomes to find the best
or optimal solution.
• Problems like the traveling salesman problem seek the shortest
route among all possible routes, making it a relative solution.
Is the solution a state or a path?
• The solution to a problem can be either a state or a path,
depending on the nature of the problem.
• In some problems, the desired outcome is a specific state
or configuration that satisfies the problem’s requirements.
• For instance, in the 8-puzzle, the solution is a specific
arrangement of tiles in the goal state.
• In other problems, the solution involves finding a path or
sequence of steps to reach the desired goal state.
• For example, in maze-solving, the solution is the path
from the starting point to the exit.
What is the role of knowledge?
• Playing Chess
• Consider again the problem of playing chess.
• Suppose you had unlimited computing power available. How
much knowledge would be required by a perfect program?
• The answer to this question is very little—just the rules for
determining legal moves and some simple control mechanism
that implements an appropriate search procedure.
• Knowledge is important only to constrain the search for a
solution.
• News Paper
Does the task of solving a problem require
human interaction?