Ai 1
Ai 1
Machine Learning
Deep Learning
Natural Language processing
Expert System
Robotics
Machine Vision
Speech Recognition
3. Application of AI.
Healthcare.
Automobile.
Finance.
Gaming.
Robotics.
Education.
Space Exploration.
Social Media.
Entertainment.
Agriculture.
E-commerce.
Surveillance.
1|Page
4. The Future of Artificial Intelligence: What Can We Expect in the
Next 10 Years?
AI algorithms have the potential to bridge the feedback loops between the
digital and physical realms, enabling next-generation consumer
experiences like the metaverse and cryptocurrencies.
AI solutions have the potential to construct and analyze "digital twin" rubrics
of individual biology and synthesize individualized therapies for patients. AI
will be used to make sense of massive datasets from an individual's
physiology, and to reduce persistent health inequities.
2|Page
5. What is Deep Learning, and how is it used in real-world?
7. Machine Learning:
3|Page
8. Deep Learning:
4|Page
10. What is an Agent in Artificial Intelligence?
Structure of Agent
Types of AI Agents
o Simple Reflex Agent
o Model-based reflex agent
5|Page
o Goal-based agents
o Utility-based agent
o Learning agent
6|Page
o These agents have the model, "which is knowledge of the world" and
based on the model they perform actions.
3. Goal-based agents
o The knowledge of the current state environment is not always
sufficient to decide for an agent to what to do.
o The agent needs to know its goal which describes desirable
situations.
o Goal-based agents expand the capabilities of the model-based agent
by having the "goal" information.
o They choose an action, so that they can achieve the goal.
7|Page
4. Utility-based agents
o These agents are similar to the goal-based agent but provide an extra
component of utility measurement which makes them different by
providing a measure of success at a given state.
o Utility-based agent act based not only goals but also the best way to
achieve the goal.
o The Utility-based agent is useful when there are multiple possible
alternatives, and an agent has to choose in order to perform the best
action.
o The utility function maps each state to a real number to check how
efficiently each action achieves the goals.
8|Page
12. What are Problem Solving Agents in Artificial Intelligence?
9|Page
UNIT-2
15. Search Algorithms in AI.
Search algorithms are an important part of Artificial Intelligence (AI). They
are used to find solutions to problems in a given search space. There are
two main types of search algorithms: Uninformed Search and Informed
Search.
Uninformed search is a class of general-purpose search algorithms which
operates in brute force-way. Uninformed search algorithms do not have
additional information about state or search space other than how to
traverse the tree, so it is also called blind search.
Informed search algorithms use domain knowledge. In an informed
search, problem information is available which can guide the search.
Informed search strategies can find a solution more efficiently than an
uninformed search strategy. Informed search is also called a Heuristic
search.
Heuristics function: Heuristic is a function which is used in Informed
Search, and it finds the most promising path. It takes the current state of
the agent as its input and produces the estimation of how close agent is
from the goal.
In order to compare the efficiency of different search algorithms, four
essential properties are used: completeness, optimality, time complexity,
and space complexity. Uninformed search algorithms are generally less
efficient than informed search algorithms, as they have no additional
information on the goal node.
10 | P a g e
16. The different types of Uninformed Search Algorithms are Breadth-
first Search, Depth-first Search, Depth-limited Search, Iterative
deepening depth-first search, Uniform cost search, and Bidirectional
Search.
11 | P a g e
17. Types of Informed Search Algorithms
Best-First Search (Greedy Search)
Best-First Search (also known as Greedy Search) is a combination of
Breadth-First Search (BFS) and Depth-First Search (DFS). It uses a
heuristic function and cost to reach the node to find the shortest path
through the search space. It expands the node with the lowest value of f(n)
and terminates when the goal node is found. Best-First Search can switch
between BFS and DFS, making it more efficient than either of them.
However, it can get stuck in a loop and is not optimal.
A* Search
A* Search is a combination of UCS and Greedy Best-First Search. It uses a
heuristic function and cost to reach the node to find the shortest path
through the search space. It expands the node with the lowest value of f(n)
and terminates when the goal node is found. A* Search is optimal and
complete, but it has some complexity issues and does not always produce
the shortest path.
A* Graph Search
A* Graph Search is an extension of A* Search. It is optimal when the
forward cost is equal to or less than backward cost between two nodes. It
does not store all the nodes and therefore is not resource-constrained and
can be used for very large-scale operations.
12 | P a g e
The algorithm does not maintain a search tree, so the data structure for the
current node only record the state and the value of the objective function.
Hill climbing often get stuck for the following reasons:
1. Local maxima: Hill-climbing algorithms that reach the vicinity of a local
maximum will be drawn upward toward a local maximum but then be stuck.
2. Ridges: Ridges result in a sequence of local maxima that are not directly
connected to each other.
3. Plateaux: A flat area of the state-space landscape, can be flat local
maximum(no uphill exit exists) or shoulder(progress is possible).
13 | P a g e
Informed Search Uninformed Search
It is also known as Heuristic Search. It is also known as Blind Search.
It uses knowledge for the searching It doesn’t use knowledge for the
process. searching process.
It finds a solution more quickly. It finds solution slow as
compared to an informed search.
It may or may not be complete. It is always complete.
Cost is low. Cost is high.
It consumes less time because of It consumes moderate time
quick searching. because of slow searching.
There is a direction given about the No suggestion is given regarding
solution. the solution in it.
It is less lengthy while implemented. It is more lengthy while
implemented.
It is more efficient as efficiency takes It is comparatively less efficient
into account cost and performance. as incurred cost is more and the
The incurred cost is less and speed of speed of finding the Breadth-First
finding solutions is quick. solution is slow.
Computational requirements are Comparatively higher
lessened. computational requirements.
Having a wide scope in terms of Solving a massive search task is
handling large search problems. challenging.
Greedy Search Depth First Search (DFS)
A* Search Breadth First Search (BFS)
AO* Search Branch and Bound
Hill Climbing Algorithm
A* algorithm is the popular form of the Best first search. It tries to find the
shortest path using the heuristic function with the cost function to reach the
end node. The steps for A* algorithms are given below:
Step 3: Select the node from the OPEN list which has the smallest value of
evaluation function (g+h), if node n is goal node then return success and
stop, otherwise
Step 4: Expand node n and generate all of its successors, and put n into
the closed list. For each successor n', check whether n' is already in the
OPEN or CLOSED list; if not, then compute evaluation function for n' and
place into Open list.
Step 5: Else if node n' is already in OPEN and CLOSED list, then it should
be attached to the back pointer, which reflects the lowest g(n') value.
UNIT-3
Game theory is the logical and scientific study that forms a model of the
possible interactions between two or more rational players. Here rational
means that each player thinks that others are just as rational and have the
same level of knowledge and understanding. In the game theory, players
deal with the given set of options in a multi-agent situation, it means the
choice of one player affects the choice of the other or opponent players.
Game theory and AI are much related and useful to each other. In AI, the
game theory is widely used to enable some of the key capabilities required
in the multi-agent environment, in which multiple agents try to interact with
each other to achieve a goal.
Different popular games such as Poker, Chess, etc., are the logical games
with the specified rules. To play these games online or digitally, such as on
Mobile, laptop, etc., one has to create algorithms for such games. And
these algorithms are applied with the help of artificial intelligence.
Types of Games:
Currently, there are about 5 types of classification of games. They are as
follows:
15 | P a g e
1. Zero-Sum and Non-Zero Sum Games: In non-zero-sum games,
there are multiple players and all of them have the option to gain a
benefit due to any move by another player. In zero-sum games,
however, if one player earns something, the other players are bound
to lose a key playoff.
2. Simultaneous and Sequential Games: Sequential games are the
more popular games where every player is aware of the movement of
another player. Simultaneous games are more difficult as in them, the
players are involved in a concurrent game. BOARD GAMES are the
perfect example of sequential games and are also referred to as turn-
based or extensive-form games.
3. Imperfect Information and Perfect Information Games: In a perfect
information game, every player is aware of the movement of the other
player and is also aware of the various strategies that the other player
might be applying to win the ultimate playoff. In imperfect information
games, however, no player is aware of what the other is up to.
CARDS are an amazing example of Imperfect information games
while CHESS is the perfect example of a Perfect Information game.
4. Asymmetric and Symmetric Games: Asymmetric games are those
win in which each player has a different and usually conflicting final
goal. Symmetric games are those in which all players have the same
ultimate goal but the strategy being used by each is completely
different.
5. Co-operative and Non-Co-operative Games: In non-co-operative
games, every player plays for himself while in co-operative games,
players form alliances in order to achieve the final goal.
16 | P a g e
Nash equilibrium. The Lemke-Howson algorithm is a common algorithm
used to compute the Nash Equilibrium. It utilizes iterated pivoting much like
the simplex algorithm used in linear programming. The minimax value of
each node is used to determine the optimal strategy for a player, which is
the move that will result in the highest payoff.
17 | P a g e
between multiple decision makers, and to evaluate the expected value of a
given position.
Partially observable games in AI are games where the agent does not
have access to all the information that affects the distribution of the next
state or reward. Examples of partially observable games include chess
when played against an opponent with an unknown strategy, and Connect
4. In these games, the agent must make decisions based on incomplete
information, and may need to employ strategies such as minimax theory to
make the best decisions. Additionally, agents may need to use memory
systems to remember previously dealt cards or states of the game in order
to make the best decisions.
18 | P a g e
25. Backtracking Search for Constraint Satisfaction Problems.
19 | P a g e
26. Local Search for Constraint Satisfaction Problems.
Local search algorithms start with an initial solution and then iteratively
improve it by searching the local neighborhood of the current solution. The
local neighborhood of a solution is defined by the constraints of the
problem. For example, in a CSP with two variables, the local neighborhood
of a solution might be all solutions that differ from the current solution by
one variable.
The goal of local search is to find a solution that is better than the current
solution. This can be done by using heuristics to guide the search process.
Heuristics are rules of thumb that can be used to evaluate the quality of a
solution and determine which solutions should be explored next.
UNIT-4
20 | P a g e
o Backward Chaining: It begins with the goal and proceeds backward
to deduce the facts that support the goal.
o Forward Chaining: It starts with known facts, and asserts new facts.
o Objects
o Events
o Performance
o Meta-Knowledge
o Facts
o Knowledge-base
21 | P a g e
26. Propositional logic in Artificial intelligence
Propositional logic (PL) is the simplest form of logic where all the
statements are made by propositions. A proposition is a declarative
statement which is either true or false. It is a technique of knowledge
representation in logical and mathematical form.
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.
Following are some basic facts about propositional logic:
22 | P a g e
Syntax of propositional logic:
The syntax of propositional logic defines the allowable sentences for the
knowledge representation. There are two types of Propositions:
a. Atomic Propositions
b. Compound propositions
23 | P a g e
28. What are knowledge-based agents in Artificial Intelligence?
29. What is the intelligent agent in AI, and where are they used?
The intelligent agent can be any autonomous entity that perceives its
environment through the sensors and act on it using the actuators for
achieving its goal.
24 | P a g e
attribute/function(object(s)). FOL algorithms are easy to comprehend and
can be executed easily.
31. Syntax:
It refers to the rules and regulations for writing any statement in a
programming language like C/C++.
It does not have to do anything with the meaning of the statement.
A statement is syntactically valid if it follows all the rules.
It is related to the grammar and structure of the language.
32. Semantics:
It refers to the meaning associated with the statement in a
programming language.
It is all about the meaning of the statement which interprets the
program easily.
Errors are handled at runtime.
Syntax Semantics
Syntax is one that defines the rules Semantics is one that refers to
and regulations that helps to write the meaning of the associated
any statement in a programming line of code in a programming
language. language.
Syntax does not have any Semantics tells about the
relationship with the meaning of the meaning.
statement.
Syntax errors are encountered after They are encountered at
the program has been executed runtime.
Syntax errors are easy to catch. Semantics errors are difficult to
catch.
25 | P a g e
Introduction, and Generalized Modus Ponens Rule. Substitution is a basic
procedure that is applied to terms and formulations, while Equality is used
to form atomic sentences with the use of predicate and words. FOL
inference rules for quantifiers include Universal Generalization, Universal
Instantiation, Existential Instantiation, and Existential Introduction. The
Generalized Modus Ponens Rule is a modified form of Modus Ponens used
for inference in FOL.
34. Difference between Forwarding Chaining and Backward
Chaining:
Forward Chaining Backward Chaining
When based on available data a Backward chaining starts from the goal
decision is taken then the and works backward to determine
process is called as Forward what facts must be asserted so that
chaining. the goal can be achieved.
Forward chaining is known as Backward chaining is known as goal-
data-driven technique because driven technique because we start
we reaches to the goal using the from the goal and reaches the initial
available data. state in order to extract the facts.
It is a bottom-up approach. It is a top-down approach.
It applies the Breadth-First It applies the Depth-First Strategy.
Strategy.
Its goal is to get the conclusion. Its goal is to get the possible facts or
the required data.
Slow as it has to use all the Fast as it has to use only a few rules.
rules.
It operates in forward direction It operates in backward direction i.e it
i.e it works from initial state to works from goal to reach initial state.
final decision.
Forward chaining is used for the It is used in automated inference
planning, monitoring, control, engines, theorem proofs, proof
and interpretation application. assistants and other artificial
intelligence applications.
26 | P a g e
UNIT-5
So, what are the categories, objects, and events that ontology engineering
deals with?
Categories
Objects
Events
Events are ways in which concepts are related to one another. In the
context of ontology engineering, events can be the relationships between a
movie and its script, director, and actors.
27 | P a g e
36. Reasoning Systems: Questions and Answers
28 | P a g e
know that all cats are animals, and we know that Fluffy is a cat, then we
can conclude that Fluffy is an animal.
29 | P a g e
Inductive Reasoning:
Abductive Reasoning:
Systematic Reasoning:
Creative Reasoning:
Creative reasoning is a type of logic that is used to come up with new ideas
or solutions. It involves thinking outside the box and coming up with
creative solutions to problems. For example, if we want to come up with a
new way to catch mice, we can use creative reasoning to come up with a
unique solution.
30 | P a g e
Acting: It decides what action it has to take.
Learning: The actions taken by the agent make him learn new
things.
31 | P a g e
the most efficient route to visit all the cities on a list. Heuristic algorithms
can also be used to solve two-person games, such as chess, and to detect
viruses in antivirus software.
Initial State: This state requires an initial state for the problem which starts
the AI agent towards a specified goal.
Goal Test: This stage determines that the specified goal achieved by the
integrated transition model or not, whenever the goal achieves stop the
action and forward into the next stage to determines the cost to achieve the
goal.
End.
32 | P a g e
40. What is the Role of Planning in Artificial Intelligence?
Everything we humans do is with a definite goal in mind, and all our actions
are oriented towards achieving our goal. Similarly, Planning is also done for
Artificial Intelligence.
33 | P a g e
42. Non-deterministic Domains, Time, Schedule, and Resources in
Artificial Intelligence:
Resources are the hardware and software components that are necessary
for an AI application to function properly. Resources can include
processors, memory, storage, and other hardware components. Resources
are also used to store data and to provide access to external data sources.
34 | P a g e
How Can Non-deterministic Domains, Time, Schedule, and Resources
Help Improve AI Performance?
35 | P a g e