DMI College of Engineering: Course Code/Course Name: AL3391/ ARTIFICIAL INTELLIGENCE
DMI College of Engineering: Course Code/Course Name: AL3391/ ARTIFICIAL INTELLIGENCE
PART-A (2 Marks)
1. Define Artificial intelligence.
"It is a branch of computer science by which we can create intelligent
machines whichcan behave like a human, think like humans, and able to
make decisions."
2. Define Rationality.
Rationality is nothing but status of being reasonable, sensible, and
having goodsense of judgment.
Rationality is concerned with expected actions and results depending
upon whatthe agent has perceived.
Performing actions with the aim of obtaining useful information is
an importantpart of rationality.
4. Define Agent.
In artificial intelligence, an agent is a computer program or system that is
designed to perceive its environment, make decisions and take actions to
achieve a specific goal or set of goals. The agent operates autonomously,
meaning it is not directly controlled by a human operator.
The term “rational agent,” however, is not only applied to a system. It can also
refer to a person, a company, or an application, practically anything or anyone that
makes rational decisions.
3. What is A*search.
✓ A* search is the most commonly known form of best-first search.
✓ It uses heuristic function h(n), and cost to reach the node n from the start
state g(n).
✓ It has combined features of UCS and greedy best-first search, by
which it solve the problem efficiently.
✓ A* search algorithm finds the shortest path through the search space
using the heuristic function.
✓ This search algorithm expands less search tree and provides optimal
result faster. A* algorithm is similar to UCS except that it uses
g(n)+h(n) instead of g(n).
In A* search algorithm, we use search heuristic as well as the cost to reach the
node. Hence we
4. Write a advantages and disadvantages of A* search.
Advantages:
• A* search algorithm is the best algorithm than other search algorithms.
• A* search algorithm is optimal and complete.
• This algorithm can solve very complex problems.
Disadvantages:
• It does not always produce the shortest path as it mostly based
on heuristics andapproximation.
• A* search algorithm has some complexity issues.
• The main drawback of A* is memory requirement as it
keeps all generatednodes in the memory, so it is not practical
for various large-scale problems.
1. How the searching algorithm works in Non Deterministic Actions. Also explain
how the AND-OR trees are involved in Non Deterministic Actions.
✓ We first consider games with two players, whom we call MAX and
MIN for reasons that will soon become obvious.
✓ MAX moves first, and then they take turns moving until the game is over.
✓ At the end of the game, points are awarded to the winning player and
penalties are givento the loser.
✓ Dice are rolled at the beginning of a player’s turn to determine the legal
moves.
At first sight, it might seem that these card games are just like dice
games: the cards are dealt randomly and determine the moves
available to each player, but all the “dice” are rolled at the
beginning! Even though this analogy turns out to be incorrect, it
suggests an effective algorithm: consider all possible deals of the
invisible cards; solve each one as if it were a fully observable
game; and then choose the move that has the best outcome
averaged over all the deals. Suppose that each deal s occurs with
probability P(s); then the move we want is
PART-A (2 Marks)
1. Define reasoning.
✓ The reasoning is the mental process of deriving logical conclusion
and making predictions from available knowledge, facts, and beliefs.
Or we can say, "Reasoning is a way to infer facts from existing
data."
✓ It is a general process of thinking rationally, to find valid conclusions.
✓ In artificial intelligence, the reasoning is essential so that the machine
can also think rationally as a human brain, and can perform like a
human.
✓ When a system is required to do something, that it has not been
explicitly told how to do,, it must figure out what it needs to know
from what it already knows.
Fact 1 : Robins are Birds
Fact 2 : All birds have wings
Question : Do Robins have wings?
Example:
a) It is Sunday.
b) The Sun rises from West (False proposition)
c) 3+3= 7(False proposition)
d) 5 is a prime number.
6. Define Davis-Putnam algorithm.
The Davis–Putnam algorithm was developed by Martin Davis and Hilary Putnam
for checking the validity of a first-order logic formula using a resolution-based
decision procedure for propositional logic.
In this type of chaining, the inference engine starts by evaluating existing facts,
derivations, and conditions before deducing new information. An endpoint (goal)
is achieved through the manipulation of knowledge that exists in the knowledge
base. Forward chaining can be used in planning, monitoring, controlling, and
interpretingapplications.
Web Search: Bayesian Network modes can be used for search accuracy
based on userintent. Based on the user’s intent, these models show things
that are relevant to the person. For instance, when we search for Python
functions most of the time, then the web search model activates our intent
and it makes sure to show relevant things to the user.
Above,
• P(c|x) is the posterior probability of class (c, target) given predictor (x,
attributes).
• P(c) is the prior probability of class.
• P(x|c) is the likelihood which is the probability of predictor given class.
• P(x) is the prior probability of predictor.