AI Question Paper Previous Y
AI Question Paper Previous Y
Data: Raw facts or observations without context (e.g., numbers, text, or symbols). Example:
"23, apple, blue."
b) Explain AI benefits.
Ans:
3. Improved Accuracy: AI reduces human error in tasks like diagnosis and predictions.
4. Innovation: AI enables new technologies, like self-driving cars and virtual assistants.
d) List AI applications.
Ans:
2. Autonomous Vehicles.
Example:
Solution Steps:
3. Empty Jug X and pour remaining 1 liter from Jug Y into Jug X.
4. Fill Jug Y again and pour into Jug X until it contains 2 liters.
h(n): Estimated cost from the current node to the goal (heuristic).
Steps:
1. Start with the initial node.
3. Update costs for adjacent nodes and repeat until the goal is reached.
Steps:
Example:
Used in chess to decide the best move.
Ans:
FOPL Statements:
1. ∀x(Food(x)→Likes(John,x))
2. Food(Apple)∧Food(Vegetables)Food(Apple)
3. Eats(Anil,Peanuts)∧Alive(Anil)Eats(Anil, Peanuts)
Proof:
Given the above statements, we can infer:
Steps:
Limitation:
May get stuck in local maxima, plateaus, or ridges.
Steps:
Solution:
S=9, E=5, N=6, D=7, M=1, O=0, R=8, Y=2.
Verification:
o Compare the current state with the goal state to identify the differences.
2. Select an Operator:
3. Subgoals Generation:
o Once preconditions are satisfied, apply the operator to reduce the difference.
5. Iterate:
o Repeat the process until the current state matches the goal state.
Example:
Goal: Move from Pune to Mumbai.
3. Apply the operator: Book train tickets and board the train.
MAX
/ \
MIN MIN
/|\ /|\
3 5 6 7 4 2
Steps:
1. Semantic Networks:
2. Production Rules:
o Example:
1. Mental Logic:
Example:
Belief representation: B(A,P) means "Agent A believes proposition P."
2. Modal Logic:
Example:
Steps Involved:
2. Subtask Assignment: Each subgoal is further broken down into more specific actions until
the problem becomes solvable at a low level.
3. Action Selection: Choose appropriate actions to achieve the subgoals, often considering
constraints and resources.
Example:
Subgoals:
Decomposing Further:
o For "Travel to bus stop," tasks may include "Leave house," "Walk to bus stop."
Hierarchical planning is useful in AI applications such as robotics, where complex tasks can be broken
down into smaller, simpler tasks.
Components:
1. Predicates: Describe properties or relationships about objects (e.g., P(x)P(x) means "x is a
person").
2. Constants: Specific objects or entities (e.g., JohnJohn is a constant).
4. Quantifiers:
o Universal quantifier (∀\forall): "For all" (e.g., ∀xP(x)\forall x P(x) means "All x are
persons").
Example:
FOL is used extensively in AI for reasoning, theorem proving, and knowledge representation.
1. Initial State: The starting point or configuration of the environment at the beginning of the
problem.
Example: In a maze, the initial state would be the starting position of the agent.
2. Actions: A set of operators or moves that transform the current state into a new state.
Example: Moving left, right, up, or down in a maze.
3. Transition Model: Describes the results of applying actions to states (i.e., how actions lead
from one state to another).
Example: The result of moving up in a maze might change the agent’s position.
4. Goal State: The desired state that represents the solution to the problem.
Example: Reaching the exit in a maze.
5. Path Cost: A measure of the "cost" of a particular path from the initial state to the goal state.
Example: The time or distance it takes to move through the maze.
2. State Space: The collection of all possible states the problem can take.
3. Search Tree: A tree-like structure representing the states and transitions between them.
4. Search Frontier: The set of nodes that have been generated but not yet expanded.
6. Search Algorithm: The procedure or method (e.g., Depth-First Search, Breadth-First Search,
A*) used to explore the search space.
1. N-Gram Model: Predicts the next word based on the previous N-1 words (e.g., bigrams,
trigrams).
2. Neural Network-based Models: Uses deep learning models (like RNNs, LSTMs) to learn
complex patterns in text data and generate more accurate predictions.
Language models are trained using large corpora of text, and the model is evaluated based on how
well it predicts the likelihood of unseen sequences.
a) Automated Planning.
Ans:
Automated Planning is the process in AI where a system autonomously creates a sequence of
actions (plan) to achieve a specific goal. It involves the formulation of a plan from an initial state to a
goal state.
Key Components:
Types of Planning:
b) AO Algorithm.*
Ans:
AO (And-Or A)** is a search algorithm used for solving AND-OR graphs, which involve both "AND"
and "OR" nodes, making it suitable for problems where tasks have both dependencies (AND) and
alternatives (OR).
Steps Involved:
2. Search: AO* recursively expands the graph, evaluating costs based on both the AND and OR
relationships.
3. Solution: The algorithm seeks the least-cost path by considering the structure of the graph
and pruning unnecessary branches.
c) Information Extraction.
Ans:
Information Extraction (IE) refers to the process of automatically extracting structured information
from unstructured data, typically text. It is a subfield of natural language processing (NLP) that
focuses on identifying entities, relationships, and events from textual data.
Common IE tasks:
1. Named Entity Recognition (NER): Identifying entities such as names, dates, locations.
2. Relation Extraction: Identifying relationships between entities (e.g., person X works for
company Y).
Applications:
IE systems use techniques like rule-based methods, machine learning, and deep learning to process
and extract meaningful information.