Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 2 MCQsProblem Solving & Search in AI; AI problem design
Best-first search selects nodes for expansion based on which of the following?
Not quite. Try another option.
Answer: An evaluation function
Best-first search uses an evaluation function to rank nodes and expands the most promising one first.
Question 8 of 60 · A* search · Easy
What is the evaluation function used by A* search?
Not quite. Try another option.
Answer:
A* combines the actual cost from the start with the estimated cost to the goal , giving .
Question 9 of 60 · A* search · Easy
In the A* evaluation function , what does represent?
Not quite. Try another option.
Answer: The cost of the path from the start node to node
is the actual accumulated cost to reach node from the initial state, while estimates the remaining cost to the goal.
Question 10 of 60 · A* search · Easy
A* search is guaranteed to find an optimal solution when the heuristic is:
Not quite. Try another option.
Answer: Admissible (never overestimates the true cost)
A* is optimal when its heuristic is admissible, meaning it never overestimates the actual cost to reach the goal.
Question 11 of 60 · Heuristic search · Easy
In the context of search, what is a heuristic?
Not quite. Try another option.
Answer: A rule of thumb that estimates how close a state is to the goal
A heuristic is an estimate, often a rule of thumb, of the cost or distance from a given state to the goal, used to guide the search efficiently.
Question 12 of 60 · Heuristic search · Easy
A common heuristic for grid-based pathfinding problems is the:
Not quite. Try another option.
Answer: Manhattan distance
The Manhattan distance sums the horizontal and vertical steps between two cells and is a popular admissible heuristic for grid navigation.
Question 13 of 60 · Constraint satisfaction · Easy
A Constraint Satisfaction Problem (CSP) is defined by variables, domains, and:
Not quite. Try another option.
Answer: Constraints that specify allowable combinations of values
A CSP consists of a set of variables, a domain of possible values for each, and constraints that restrict which value combinations are allowed.
Question 14 of 60 · Constraint satisfaction · Easy
Which of the following is a classic example of a Constraint Satisfaction Problem?
Not quite. Try another option.
Answer: Map coloring with adjacent regions having different colors
Map coloring is a standard CSP: variables are regions, domains are colors, and the constraint is that adjacent regions must differ.
Question 15 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Easy
In gradient descent, the parameters are updated in which direction?
Not quite. Try another option.
Answer: Opposite to the gradient of the loss function
The correct option follows directly from the given concept and definitions.
Question 16 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Easy
Which of the following is an example of a metaheuristic optimization method?
Not quite. Try another option.
Answer: Genetic algorithm
Genetic algorithms are population-based metaheuristics inspired by natural selection, used to search for good solutions in complex spaces.
Question 17 of 60 · Complexity · Easy
In algorithm analysis, time complexity measures how the running time grows with respect to:
Not quite. Try another option.
Answer: The size of the input
Time complexity describes how an algorithm's running time scales as the size of its input increases, often expressed in Big-O notation.
Question 18 of 60 · Solution metrics · Easy
Which term describes whether a search algorithm is guaranteed to find a solution if one exists?
Not quite. Try another option.
Answer: Completeness
Completeness is the property that an algorithm will find a solution whenever one exists; optimality concerns finding the best solution.
Question 19 of 60 · Data requirements · Easy
In machine learning based AI, why are data requirements important?
Not quite. Try another option.
Answer: Models generally need sufficient, good-quality data to learn effectively
Learning-based AI systems depend on having enough relevant, high-quality data to generalize well; poor or insufficient data limits performance.
Question 20 of 60 · Introduction to reinforcement learning for sequential decision problems · Easy
In reinforcement learning, what does an agent receive after taking an action in the environment?
Not quite. Try another option.
Answer: A reward signal and a new state
In reinforcement learning, the agent takes actions and receives feedback in the form of rewards along with the resulting next state, learning to maximize cumulative reward over time.
Question 21 of 60 · Problem formulation and state space search · Medium
In formulating the 8-puzzle as a search problem, which component defines how one configuration transforms into another?
Not quite. Try another option.
Answer: The transition (successor) function
The transition or successor function specifies the actions available in a state and the resulting states, defining how configurations change. The goal test only checks completion, and path cost only measures expense.
Question 22 of 60 · Problem formulation and state space search · Medium
A robot navigates a grid of cells and can be in any cell. If it can also carry one of distinct objects (or none), what is the size of the state space?
Not quite. Try another option.
Answer:
Position has options and the carried-object variable has possibilities (each object or nothing). The state space is the product, .
Question 23 of 60 · Introduction to uninformed search · Medium
For a search tree with branching factor and shallowest goal at depth , which uninformed strategy uses only memory while remaining complete and optimal for unit-cost steps?
Not quite. Try another option.
Answer: Iterative deepening depth-first search
IDDFS combines DFS's linear memory with BFS's completeness and optimality on unit costs by repeatedly deepening the depth limit. BFS and UCS require memory.
Question 24 of 60 · Introduction to uninformed search · Medium
Uniform-cost search expands the node with the lowest value of which quantity?
Not quite. Try another option.
Answer: , the path cost from the start
Uniform-cost search orders the frontier by the cumulative path cost , guaranteeing an optimal solution when step costs are non-negative. It uses no heuristic.
Question 25 of 60 · Core search algorithms: Best-first search · Medium
Greedy best-first search selects the next node to expand based on which evaluation function?
Not quite. Try another option.
Answer:
Greedy best-first search uses only the heuristic estimate of remaining cost. This makes it fast but not guaranteed optimal, since it ignores accumulated cost .
Question 26 of 60 · Core search algorithms: Best-first search · Medium
Why can greedy best-first search fail to find the optimal path even with a reasonable heuristic?
Not quite. Try another option.
Answer: It ignores the cost already spent to reach a node
By minimizing only , greedy search may commit to a locally promising branch that has a high total path cost, missing cheaper routes because is disregarded.
Question 27 of 60 · A* search · Medium
A* search is guaranteed to return an optimal solution in tree search when the heuristic is:
Not quite. Try another option.
Answer: Admissible (never overestimates the true cost)
For tree search, admissibility () ensures A is optimal. Overestimating heuristics can cause A to miss the cheapest path.
Question 28 of 60 · A* search · Medium
Given and for node , and and for node , which node does A* expand next?
Not quite. Try another option.
Answer: Either, since both have
A uses . Here and , so both are tied and A may expand either depending on tie-breaking.
Question 29 of 60 · Heuristic search · Medium
If heuristic dominates (i.e., for all and both are admissible), what can be said about A* using ?
Not quite. Try another option.
Answer: It expands no more nodes than A* using
A dominating admissible heuristic is more informed, so A* with never expands more nodes than with , improving efficiency without sacrificing optimality.
Question 30 of 60 · Heuristic search · Medium
For the 8-puzzle, why is the Manhattan-distance heuristic preferred over the misplaced-tiles heuristic?
Not quite. Try another option.
Answer: It gives higher yet still admissible estimates
Manhattan distance dominates the misplaced-tiles count while staying admissible, so it is more informed and guides A* to expand fewer nodes.
Question 31 of 60 · Constraint satisfaction · Medium
In a CSP, what does the Minimum Remaining Values (MRV) heuristic recommend?
Not quite. Try another option.
Answer: Choose the variable with the fewest legal values left
MRV picks the most constrained variable (fewest remaining legal values) to fail fast and prune the search tree early, reducing backtracking.
Question 32 of 60 · Constraint satisfaction · Medium
After assigning a value to a variable, forward checking primarily does what?
Not quite. Try another option.
Answer: Removes inconsistent values from neighboring variables' domains
Forward checking prunes values from the domains of unassigned neighbors that conflict with the new assignment, detecting failures earlier than plain backtracking.
Question 33 of 60 · Constraint satisfaction · Medium
Map coloring with 3 colors on a graph where two adjacent regions share an edge is best modeled with which constraint type?
Not quite. Try another option.
Answer: A binary inequality constraint between adjacent regions
Adjacent regions must differ in color, expressed as binary constraints of the form for each edge. Unary constraints apply to single variables only.
Question 34 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Medium
In gradient descent with learning rate , the update rule for parameter is:
Not quite. Try another option.
Answer:
Gradient descent moves parameters opposite to the gradient to reduce the loss , scaled by the learning rate . Adding the gradient would ascend instead.
Question 35 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Medium
Which feature distinguishes simulated annealing from basic hill climbing?
Not quite. Try another option.
Answer: It sometimes accepts worse solutions to escape local optima
Simulated annealing probabilistically accepts worse moves, with acceptance decreasing as temperature falls. This allows escape from local optima that trap hill climbing.
Question 36 of 60 · Complexity · Medium
Breadth-first search on a tree with branching factor and goal depth has what worst-case time complexity?
Not quite. Try another option.
Answer:
BFS may generate all nodes down to depth , and the number of such nodes grows as . Its space complexity is likewise exponential.
Question 37 of 60 · Complexity · Medium
Depth-first search on a tree with branching factor and maximum depth has what space complexity?
Not quite. Try another option.
Answer:
DFS stores only the current path plus unexpanded siblings along it, giving linear space . This is its key advantage over BFS's exponential memory.
Question 38 of 60 · Solution metrics · Medium
Which four properties are standard for evaluating a search algorithm's performance?
Not quite. Try another option.
Answer: Completeness, optimality, time complexity, space complexity
Search algorithms are judged on completeness (finds a solution if one exists), optimality (finds the least-cost one), and time and space complexity. The others belong to ML or networking.
Question 39 of 60 · Data requirements · Medium
Compared to classical search, why do learning-based AI methods typically demand large labeled datasets?
Not quite. Try another option.
Answer: They must generalize patterns from examples rather than a defined model
Learning methods infer relationships from data instead of relying on an explicitly programmed transition model, so ample representative examples are needed to generalize well.
Question 40 of 60 · Introduction to reinforcement learning for sequential decision problems · Medium
In a Markov Decision Process, the discount factor close to 1 causes the agent to:
Not quite. Try another option.
Answer: Weight long-term future rewards heavily
The return is . A near 1 makes distant rewards nearly as valuable as immediate ones, encouraging long-horizon planning.
Question 41 of 60 · A* search · Hard
Consider A* search with a heuristic that is admissible but not consistent. Which statement is true regarding the necessity of re-expanding already-expanded nodes?
Not quite. Try another option.
Answer: Nodes may need to be re-expanded because a shorter path to an already-closed node can be found later
Consistency guarantees that when a node is expanded, its optimal -value is known. Without consistency (only admissibility), a cheaper path to a closed node may be discovered later, requiring re-expansion to preserve optimality.
Question 42 of 60 · Heuristic search · Hard
Two admissible heuristics and are available. If for all , we say dominates . What is the guaranteed consequence for A* using versus ?
Not quite. Try another option.
Answer: A with never expands more nodes than A with (ignoring tie-breaking)
A dominating admissible heuristic is more informed, so it prunes at least as effectively. Every node expanded by A with is also expanded by A with (up to tie-breaking), meaning never expands more nodes.
Question 43 of 60 · Problem formulation and state space search · Hard
For the 8-puzzle, the state space contains configurations, but only half are solvable from any given goal. What property explains this partition?
Not quite. Try another option.
Answer: The parity of the permutation (number of inversions) is invariant under legal moves
A legal 8-puzzle move preserves the parity of inversions (accounting for blank row). This invariant splits the states into two disjoint classes, so only states matching the goal's parity are reachable.
Question 44 of 60 · Introduction to uninformed search · Hard
Iterative Deepening DFS (IDDFS) re-generates nodes at shallower depths multiple times. For a tree with branching factor and solution depth , what is the asymptotic ratio of nodes generated by IDDFS to those generated by a single BFS?
Not quite. Try another option.
Answer: It approaches the constant factor for large
The repeated regeneration overhead of IDDFS forms a geometric series. The total nodes are with the ratio to BFS bounded by , which is a small constant for large —hence IDDFS is asymptotically efficient.
Question 45 of 60 · Best-first search · Hard
Greedy best-first search uses . On an infinite state space with a misleading heuristic, which failure mode is most characteristic?
Not quite. Try another option.
Answer: It can get trapped following a locally attractive but non-terminating path, failing to find any solution
Greedy best-first ignores accumulated cost and blindly follows the lowest . On infinite spaces without cycle checking, a misleading heuristic can lead it down an infinite path, making it incomplete.
Question 46 of 60 · Constraint satisfaction · Hard
In a CSP, enforcing arc consistency (AC-3) removes values but does not always yield a solution. Which scenario shows AC-3 terminating with all domains non-empty yet the CSP being unsatisfiable?
Not quite. Try another option.
Answer: A 3-cycle of variables each with domain under all-different constraints
Three mutually-adjacent variables needing distinct values from a 2-element domain is unsatisfiable, yet AC-3 finds each value has a consistent partner on each arc individually. Arc consistency is a local property and cannot detect this global inconsistency.
Question 47 of 60 · Constraint satisfaction · Hard
For a CSP whose constraint graph is a tree with variables and domain size , what is the worst-case time complexity of solving it after applying directional arc consistency?
Not quite. Try another option.
Answer:
Tree-structured CSPs are solved in : after topologically ordering the tree and making it directionally arc-consistent (each of the arcs costs ), a backtrack-free assignment follows in linear time.
Question 48 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Hard
Gradient descent on the function with a fixed learning rate converges slowly. What property of this function causes the difficulty?
Not quite. Try another option.
Answer: The high condition number of the Hessian causes zig-zagging along the steep direction
The Hessian is , a condition number of 100. This ill-conditioning forces gradient descent to oscillate across the steep -axis while creeping along the shallow -axis, slowing convergence.
Question 49 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Hard
In simulated annealing, the acceptance probability for a worse move of magnitude at temperature is . What is the practical effect of a cooling schedule that decreases too rapidly?
Not quite. Try another option.
Answer: The search freezes into a nearby local optimum before adequately exploring the space
Rapid cooling drops toward 0 quickly, so and uphill moves are rejected early. This premature convergence traps the search in a local optimum, defeating the escape mechanism annealing provides.
Question 50 of 60 · Complexity · Hard
Uniform-cost search on a graph with non-negative edge costs, minimum cost , and optimal solution cost has worst-case complexity of:
Not quite. Try another option.
Answer:
UCS explores by cost, and the effective depth is bounded by since each step adds at least . This yields the complexity , which can exceed when steps are cheap.
Question 51 of 60 · A* search · Hard
Suppose A* uses a weighted evaluation with and admissible . What bound holds for the solution cost returned?
Not quite. Try another option.
Answer: The solution cost is at most (bounded suboptimality)
Weighted A* trades optimality for speed. Inflating by factor makes it possibly inadmissible, but the returned solution is guaranteed to be -admissible, i.e., cost at most .
Question 52 of 60 · Heuristic search · Hard
Given two admissible heuristics , defining yields a heuristic that is:
Not quite. Try another option.
Answer: Admissible and dominates both, but may lose consistency unless both are consistent
The max of admissible heuristics stays admissible (never overestimates) and dominates each. If both components are consistent, the max is also consistent; consistency of the max is guaranteed when both inputs are consistent.
Question 53 of 60 · Introduction to reinforcement learning for sequential decision problems · Hard
In Q-learning, the update is . Why is Q-learning called an off-policy algorithm?
Not quite. Try another option.
Answer: It learns the optimal policy's values using the greedy regardless of the behavior policy generating actions
Q-learning's target uses , the greedy (optimal) action value, while the agent may act via an exploratory behavior policy like -greedy. Learning target policy values while following another policy makes it off-policy.
Question 54 of 60 · Introduction to reinforcement learning for sequential decision problems · Hard
In a discounted MDP with discount factor and rewards bounded by , what is the tightest upper bound on any state's value ?
Not quite. Try another option.
Answer:
The value is a discounted infinite sum of rewards: . This geometric series gives the tightest bound on any state's value.
Question 55 of 60 · Constraint satisfaction · Hard
The Minimum Remaining Values (MRV) heuristic and the Degree heuristic are used in CSP backtracking. What is the correct role of the Degree heuristic?
Not quite. Try another option.
Answer: It selects the variable involved in the largest number of constraints on remaining unassigned variables, used as a tie-breaker for MRV
The Degree heuristic picks the most-constraining variable (highest degree among unassigned variables), reducing future branching. It commonly breaks ties when MRV yields several variables with equally small domains.
Question 56 of 60 · Solution metrics · Hard
When comparing search algorithms, four standard metrics are completeness, optimality, time complexity, and space complexity. For depth-first search on a finite graph with cycle checking, which combination is correct?
Not quite. Try another option.
Answer: Complete but not optimal; time , space
With cycle checking on a finite graph DFS is complete but does not guarantee shortest paths (not optimal). Its time is for max depth , and space is to store the path and frontier siblings.
Question 57 of 60 · Data requirements · Hard
A reinforcement learning agent must learn in an environment with a large continuous state space. Why does tabular Q-learning become impractical, motivating function approximation?
Not quite. Try another option.
Answer: The number of state-action entries grows unmanageably and most states are never visited, preventing generalization
Tabular Q-learning needs one entry per state-action pair. In large or continuous spaces the table is astronomically large and sparse, so the agent cannot visit enough states. Function approximation shares information across similar states to generalize.
Question 58 of 60 · Problem formulation and state space search · Hard
Two engineers formulate the same routing problem differently: one uses cities as states, the other uses (city, fuel-level) pairs. What is the primary consequence of the richer state representation?
Not quite. Try another option.
Answer: It enlarges the state space but can capture constraints the simpler formulation cannot represent
Adding fuel-level multiplies the number of states but lets the formulation express fuel constraints impossible with cities alone. This is the classic trade-off: richer states model more, at the cost of a larger search space.
Question 59 of 60 · Basics of optimization: gradient-based methods and metaheuristics · Hard
Genetic algorithms rely on crossover and mutation. What is the specific risk if the mutation rate is set far too low while relying almost entirely on crossover?
Not quite. Try another option.
Answer: Premature convergence: the population loses diversity and cannot explore beyond recombinations of existing genes
Crossover only recombines existing genetic material. Without sufficient mutation to introduce new alleles, the population converges and cannot escape once diversity is lost—leading to premature convergence on a suboptimal region.
Question 60 of 60 · Introduction to uninformed search · Hard
Bidirectional search reduces complexity by searching forward from the start and backward from the goal. For it to work correctly, which requirement is most critical?
Not quite. Try another option.
Answer: The predecessors of the goal state must be efficiently computable to run the backward search
Backward search expands predecessors of the goal, so the problem must allow computing them efficiently. When the goal is described implicitly or predecessors are hard to generate, bidirectional search cannot be applied straightforwardly.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT428 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT428 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.