D.The set of all possible states reachable from the initial state
Correct Answer: The set of all possible states reachable from the initial state
Explanation:
A state space is the collection of all configurations (states) that can be reached from the initial state by applying available actions.
Incorrect! Try again.
2Which of the following is NOT typically a component when formulating a search problem?
Problem formulation and state space search
Easy
A.The initial state
B.The goal test
C.The set of actions
D.The programming language used to code the solution
Correct Answer: The programming language used to code the solution
Explanation:
A search problem is defined by the initial state, actions, transition model, goal test, and path cost — not by the implementation language.
Incorrect! Try again.
3Which search strategy explores all nodes at the current depth before moving to the next depth level?
Introduction to uninformed search
Easy
A.A* search
B.Depth-first search
C.Breadth-first search
D.Greedy best-first search
Correct Answer: Breadth-first search
Explanation:
Breadth-first search (BFS) expands all nodes at a given depth before proceeding to nodes at the next deeper level.
Incorrect! Try again.
4Why is a strategy like breadth-first search called uninformed (or blind)?
Introduction to uninformed search
Easy
A.It only works on informed graphs
B.It always fails to find a solution
C.It uses no problem-specific knowledge beyond the problem definition
D.It requires a trained neural network to operate
Correct Answer: It uses no problem-specific knowledge beyond the problem definition
Explanation:
Uninformed search uses only the information available in the problem definition and has no domain-specific hints (heuristics) to guide the search.
Incorrect! Try again.
5Which uninformed search algorithm uses a stack (last-in, first-out) data structure for its frontier?
Introduction to uninformed search
Easy
A.Best-first search
B.Uniform-cost search
C.Depth-first search
D.Breadth-first search
Correct Answer: Depth-first search
Explanation:
Depth-first search uses a LIFO stack, so it explores the most recently discovered node first, going deep before backtracking.
Incorrect! Try again.
6In greedy best-first search, which value is used to decide which node to expand next?
Core search algorithms: Best-first search
Easy
A.The path cost from the start
B.The sum
C.The depth of the node in the tree
D.The heuristic estimate to the goal
Correct Answer: The heuristic estimate to the goal
Explanation:
Greedy best-first search selects the node that appears closest to the goal according to the heuristic , ignoring the cost already spent.
Incorrect! Try again.
7Best-first search selects nodes for expansion based on which of the following?
Core search algorithms: Best-first search
Easy
A.The number of children a node has
B.An evaluation function
C.The alphabetical order of node names
D.A random selection each step
Correct Answer: An evaluation function
Explanation:
Best-first search uses an evaluation function to rank nodes and expands the most promising one first.
Incorrect! Try again.
8What is the evaluation function used by A* search?
A* search
Easy
A.
B. only
C.
D. only
Correct Answer:
Explanation:
A* combines the actual cost from the start with the estimated cost to the goal , giving .
Incorrect! Try again.
9In the A* evaluation function , what does represent?
A* search
Easy
A.The estimated cost from to the goal
B.The cost of the path from the start node to node
C.The heuristic error at node
D.The total number of nodes expanded
Correct Answer: The cost of the path from the start node to node
Explanation:
is the actual accumulated cost to reach node from the initial state, while estimates the remaining cost to the goal.
Incorrect! Try again.
10A* search is guaranteed to find an optimal solution when the heuristic is:
A* search
Easy
A.Randomly generated at each step
B.Always equal to zero
C.Larger than the true cost
D.Admissible (never overestimates the true cost)
Correct Answer: Admissible (never overestimates the true cost)
Explanation:
A* is optimal when its heuristic is admissible, meaning it never overestimates the actual cost to reach the goal.
Incorrect! Try again.
11In the context of search, what is a heuristic?
Heuristic search
Easy
A.A guaranteed exact solution to the problem
B.A rule of thumb that estimates how close a state is to the goal
C.A method to randomly shuffle the search order
D.A data structure for storing the frontier
Correct Answer: A rule of thumb that estimates how close a state is to the goal
Explanation:
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.
Incorrect! Try again.
12A common heuristic for grid-based pathfinding problems is the:
Heuristic search
Easy
A.Alphabetical distance
B.Binary search distance
C.Manhattan distance
D.Random walk distance
Correct Answer: Manhattan distance
Explanation:
The Manhattan distance sums the horizontal and vertical steps between two cells and is a popular admissible heuristic for grid navigation.
Incorrect! Try again.
13A Constraint Satisfaction Problem (CSP) is defined by variables, domains, and:
Constraint satisfaction
Easy
A.A single fixed goal state only
B.A neural network weight matrix
C.A reward signal for each action
D.Constraints that specify allowable combinations of values
Correct Answer: Constraints that specify allowable combinations of values
Explanation:
A CSP consists of a set of variables, a domain of possible values for each, and constraints that restrict which value combinations are allowed.
Incorrect! Try again.
14Which of the following is a classic example of a Constraint Satisfaction Problem?
Constraint satisfaction
Easy
A.Map coloring with adjacent regions having different colors
B.Multiplying two matrices together
C.Sorting a list of numbers in ascending order
D.Computing the average of a dataset
Correct Answer: Map coloring with adjacent regions having different colors
Explanation:
Map coloring is a standard CSP: variables are regions, domains are colors, and the constraint is that adjacent regions must differ.
Incorrect! Try again.
15In gradient descent, the parameters are updated in which direction?
Basics of optimization: gradient-based methods and metaheuristics
Easy
A.Perpendicular to the gradient
B.Along the positive gradient of the loss function
C.In a completely random direction
D.Opposite to the gradient of the loss function
Correct Answer: Opposite to the gradient of the loss function
Explanation:
The correct option follows directly from the given concept and definitions.
Incorrect! Try again.
16Which of the following is an example of a metaheuristic optimization method?
Basics of optimization: gradient-based methods and metaheuristics
Easy
A.Matrix transposition
B.Linear search
C.Genetic algorithm
D.Binary tree traversal
Correct Answer: Genetic algorithm
Explanation:
Genetic algorithms are population-based metaheuristics inspired by natural selection, used to search for good solutions in complex spaces.
Incorrect! Try again.
17In algorithm analysis, time complexity measures how the running time grows with respect to:
Complexity
Easy
A.The number of comments in code
B.The color of the interface
C.The programmer's experience
D.The size of the input
Correct Answer: The size of the input
Explanation:
Time complexity describes how an algorithm's running time scales as the size of its input increases, often expressed in Big-O notation.
Incorrect! Try again.
18Which term describes whether a search algorithm is guaranteed to find a solution if one exists?
Solution metrics
Easy
A.Complexity
B.Optimality
C.Completeness
D.Admissibility
Correct Answer: Completeness
Explanation:
Completeness is the property that an algorithm will find a solution whenever one exists; optimality concerns finding the best solution.
Incorrect! Try again.
19In machine learning based AI, why are data requirements important?
Data requirements
Easy
A.Data quality has no effect on model performance
B.Models generally need sufficient, good-quality data to learn effectively
C.More data always slows learning and should be avoided
D.Data is only needed after the model is deployed
Correct Answer: Models generally need sufficient, good-quality data to learn effectively
Explanation:
Learning-based AI systems depend on having enough relevant, high-quality data to generalize well; poor or insufficient data limits performance.
Incorrect! Try again.
20In reinforcement learning, what does an agent receive after taking an action in the environment?
Introduction to reinforcement learning for sequential decision problems
Easy
A.A compiled program
B.A fixed heuristic value
C.A reward signal and a new state
D.A labeled training dataset
Correct Answer: A reward signal and a new state
Explanation:
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.
Incorrect! Try again.
21In formulating the 8-puzzle as a search problem, which component defines how one configuration transforms into another?
Problem formulation and state space search
Medium
A.The transition (successor) function
B.The goal test predicate
C.The initial state descriptor
D.The path cost accumulator
Correct Answer: The transition (successor) function
Explanation:
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.
Incorrect! Try again.
22A 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?
Problem formulation and state space search
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Position has options and the carried-object variable has possibilities (each object or nothing). The state space is the product, .
Incorrect! Try again.
23For 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?
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.
Incorrect! Try again.
24Uniform-cost search expands the node with the lowest value of which quantity?
Introduction to uninformed search
Medium
A., the path cost from the start
B., the estimated cost to the goal
C.The node's depth in the tree
D.
Correct Answer: , the path cost from the start
Explanation:
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.
Incorrect! Try again.
25Greedy best-first search selects the next node to expand based on which evaluation function?
Core search algorithms: Best-first search
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
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 .
Incorrect! Try again.
26Why can greedy best-first search fail to find the optimal path even with a reasonable heuristic?
Core search algorithms: Best-first search
Medium
A.It expands nodes in random order
B.It ignores the cost already spent to reach a node
C.It always expands the deepest node first
D.It cannot handle weighted edges at all
Correct Answer: It ignores the cost already spent to reach a node
Explanation:
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.
Incorrect! Try again.
27A* search is guaranteed to return an optimal solution in tree search when the heuristic is:
A* search
Medium
A.Consistent but occasionally overestimating
B.Admissible (never overestimates the true cost)
C.Larger than the true cost by a constant
D.Always equal to zero
Correct Answer: Admissible (never overestimates the true cost)
Explanation:
For tree search, admissibility () ensures A is optimal. Overestimating heuristics can cause A to miss the cheapest path.
Incorrect! Try again.
28Given and for node , and and for node , which node does A* expand next?
A* search
Medium
A.Node , because is larger
B.Either, since both have
C.Node , because is larger
D.Node , because is smaller
Correct Answer: Either, since both have
Explanation:
A uses . Here and , so both are tied and A may expand either depending on tie-breaking.
Incorrect! Try again.
29If heuristic dominates (i.e., for all and both are admissible), what can be said about A* using ?
Heuristic search
Medium
A.It expands no more nodes than A* using
B.It becomes inadmissible
C.It always expands more nodes than with
D.It ignores path cost entirely
Correct Answer: It expands no more nodes than A* using
Explanation:
A dominating admissible heuristic is more informed, so A* with never expands more nodes than with , improving efficiency without sacrificing optimality.
Incorrect! Try again.
30For the 8-puzzle, why is the Manhattan-distance heuristic preferred over the misplaced-tiles heuristic?
Heuristic search
Medium
A.It ignores tile positions entirely
B.It overestimates to speed up search
C.It is easier to compute per node
D.It gives higher yet still admissible estimates
Correct Answer: It gives higher yet still admissible estimates
Explanation:
Manhattan distance dominates the misplaced-tiles count while staying admissible, so it is more informed and guides A* to expand fewer nodes.
Incorrect! Try again.
31In a CSP, what does the Minimum Remaining Values (MRV) heuristic recommend?
Constraint satisfaction
Medium
A.Choose the variable with the fewest legal values left
B.Choose the variable with the most constraints
C.Assign values in alphabetical order
D.Assign the value that rules out fewest options
Correct Answer: Choose the variable with the fewest legal values left
Explanation:
MRV picks the most constrained variable (fewest remaining legal values) to fail fast and prune the search tree early, reducing backtracking.
Incorrect! Try again.
32After assigning a value to a variable, forward checking primarily does what?
Constraint satisfaction
Medium
A.Assigns values to all remaining variables at once
B.Reorders all future variables randomly
C.Backtracks immediately to the root node
D.Removes inconsistent values from neighboring variables' domains
Correct Answer: Removes inconsistent values from neighboring variables' domains
Explanation:
Forward checking prunes values from the domains of unassigned neighbors that conflict with the new assignment, detecting failures earlier than plain backtracking.
Incorrect! Try again.
33Map coloring with 3 colors on a graph where two adjacent regions share an edge is best modeled with which constraint type?
Constraint satisfaction
Medium
A.A binary inequality constraint between adjacent regions
B.A global all-different over all regions
C.No constraint is required
D.A unary constraint on each region
Correct Answer: A binary inequality constraint between adjacent regions
Explanation:
Adjacent regions must differ in color, expressed as binary constraints of the form for each edge. Unary constraints apply to single variables only.
Incorrect! Try again.
34In gradient descent with learning rate , the update rule for parameter is:
Basics of optimization: gradient-based methods and metaheuristics
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Gradient descent moves parameters opposite to the gradient to reduce the loss , scaled by the learning rate . Adding the gradient would ascend instead.
Incorrect! Try again.
35Which feature distinguishes simulated annealing from basic hill climbing?
Basics of optimization: gradient-based methods and metaheuristics
Medium
A.It guarantees the global optimum in one pass
B.It always follows the steepest ascent direction
C.It sometimes accepts worse solutions to escape local optima
D.It requires a differentiable objective function
Correct Answer: It sometimes accepts worse solutions to escape local optima
Explanation:
Simulated annealing probabilistically accepts worse moves, with acceptance decreasing as temperature falls. This allows escape from local optima that trap hill climbing.
Incorrect! Try again.
36Breadth-first search on a tree with branching factor and goal depth has what worst-case time complexity?
Complexity
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
BFS may generate all nodes down to depth , and the number of such nodes grows as . Its space complexity is likewise exponential.
Incorrect! Try again.
37Depth-first search on a tree with branching factor and maximum depth has what space complexity?
Complexity
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
DFS stores only the current path plus unexpanded siblings along it, giving linear space . This is its key advantage over BFS's exponential memory.
Incorrect! Try again.
38Which four properties are standard for evaluating a search algorithm's performance?
Solution metrics
Medium
A.Latency, throughput, jitter, bandwidth
B.Accuracy, precision, recall, F1-score
C.Completeness, optimality, time complexity, space complexity
D.Bias, variance, noise, error
Correct Answer: Completeness, optimality, time complexity, space complexity
Explanation:
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.
Incorrect! Try again.
39Compared to classical search, why do learning-based AI methods typically demand large labeled datasets?
Data requirements
Medium
A.They avoid any need for a heuristic or objective
B.They compute exact solutions with no approximation
C.They must generalize patterns from examples rather than a defined model
D.They require no evaluation once trained
Correct Answer: They must generalize patterns from examples rather than a defined model
Explanation:
Learning methods infer relationships from data instead of relying on an explicitly programmed transition model, so ample representative examples are needed to generalize well.
Incorrect! Try again.
40In a Markov Decision Process, the discount factor close to 1 causes the agent to:
Introduction to reinforcement learning for sequential decision problems
Medium
The return is . A near 1 makes distant rewards nearly as valuable as immediate ones, encouraging long-horizon planning.
Incorrect! Try again.
41Consider A* search with a heuristic that is admissible but not consistent. Which statement is true regarding the necessity of re-expanding already-expanded nodes?
A* search
Hard
A.Re-expansion is required only when the branching factor exceeds the depth of the solution
B.Nodes never need re-expansion since admissibility alone guarantees optimal -values on first expansion
C.Re-expansion depends solely on tie-breaking and is unrelated to consistency
D.Nodes may need to be re-expanded because a shorter path to an already-closed node can be found later
Correct Answer: Nodes may need to be re-expanded because a shorter path to an already-closed node can be found later
Explanation:
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.
Incorrect! Try again.
42Two admissible heuristics and are available. If for all , we say dominates . What is the guaranteed consequence for A* using versus ?
Heuristic search
Hard
A.A* with requires exponentially more memory than with
B.A with never expands more nodes than A with (ignoring tie-breaking)
C.A* with becomes inadmissible and may return suboptimal solutions
D.A* with always finds a strictly shorter path than with
Correct Answer: A with never expands more nodes than A with (ignoring tie-breaking)
Explanation:
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.
Incorrect! Try again.
43For the 8-puzzle, the state space contains configurations, but only half are solvable from any given goal. What property explains this partition?
Problem formulation and state space search
Hard
A.The parity of the permutation (number of inversions) is invariant under legal moves
B.The blank tile position uniquely determines reachability
C.Each move changes the number of inversions by an odd amount, cycling through all states
D.The Manhattan distance heuristic partitions states into reachable classes
Correct Answer: The parity of the permutation (number of inversions) is invariant under legal moves
Explanation:
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.
Incorrect! Try again.
44Iterative 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?
Introduction to uninformed search
Hard
A.It grows linearly with , making IDDFS impractical
B.It approaches regardless of
C.It approaches the constant factor for large
D.It is exactly times the BFS node count
Correct Answer: It approaches the constant factor for large
Explanation:
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.
Incorrect! Try again.
45Greedy best-first search uses . On an infinite state space with a misleading heuristic, which failure mode is most characteristic?
Best-first search
Hard
A.It degenerates exactly to uniform-cost search behavior
B.It always returns the optimal solution but with high memory cost
C.It can get trapped following a locally attractive but non-terminating path, failing to find any solution
D.It guarantees completeness but sacrifices optimality only slightly
Correct Answer: It can get trapped following a locally attractive but non-terminating path, failing to find any solution
Explanation:
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.
Incorrect! Try again.
46In 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?
Constraint satisfaction
Hard
A.Any binary CSP whose constraint graph is a tree
B.A CSP with only unary constraints on each variable
C.A CSP where every variable has a singleton domain after propagation
D.A 3-cycle of variables each with domain under all-different constraints
Correct Answer: A 3-cycle of variables each with domain under all-different constraints
Explanation:
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.
Incorrect! Try again.
47For 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?
Constraint satisfaction
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
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.
Incorrect! Try again.
48Gradient descent on the function with a fixed learning rate converges slowly. What property of this function causes the difficulty?
Basics of optimization: gradient-based methods and metaheuristics
Hard
A.The high condition number of the Hessian causes zig-zagging along the steep direction
B.The gradient is undefined at the optimum
C.The function lacks a global minimum, causing divergence
D.The function is non-convex with multiple local minima
Correct Answer: The high condition number of the Hessian causes zig-zagging along the steep direction
Explanation:
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.
Incorrect! Try again.
49In 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?
Basics of optimization: gradient-based methods and metaheuristics
Hard
A.The acceptance probability exceeds 1, causing invalid transitions
B.The search provably converges to the global optimum faster
C.The search never accepts worse moves and behaves like random walk
D.The search freezes into a nearby local optimum before adequately exploring the space
Correct Answer: The search freezes into a nearby local optimum before adequately exploring the space
Explanation:
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.
Incorrect! Try again.
50Uniform-cost search on a graph with non-negative edge costs, minimum cost , and optimal solution cost has worst-case complexity of:
Complexity
Hard
A.
B. where is solution depth
C.
D.
Correct Answer:
Explanation:
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.
Incorrect! Try again.
51Suppose A* uses a weighted evaluation with and admissible . What bound holds for the solution cost returned?
A* search
Hard
A.The solution cost is unbounded and can be arbitrarily bad
B.The solution cost is at most (bounded suboptimality)
C.The solution is always optimal because is admissible
D.The solution cost is at most
Correct Answer: The solution cost is at most (bounded suboptimality)
Explanation:
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 .
Incorrect! Try again.
52Given two admissible heuristics , defining yields a heuristic that is:
Heuristic search
Hard
A.Always consistent regardless of the properties of and
B.Inadmissible unless everywhere
C.Admissible and dominates both, but may lose consistency unless both are consistent
D.Admissible only if and never disagree
Correct Answer: Admissible and dominates both, but may lose consistency unless both are consistent
Explanation:
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.
Incorrect! Try again.
53In Q-learning, the update is . Why is Q-learning called an off-policy algorithm?
Introduction to reinforcement learning for sequential decision problems
Hard
A.It learns the optimal policy's values using the greedy regardless of the behavior policy generating actions
B.It requires the transition model to be known in advance
C.It can only be applied offline to logged data, never online
D.It updates the policy directly without estimating value functions
Correct Answer: It learns the optimal policy's values using the greedy regardless of the behavior policy generating actions
Explanation:
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.
Incorrect! Try again.
54In a discounted MDP with discount factor and rewards bounded by , what is the tightest upper bound on any state's value ?
Introduction to reinforcement learning for sequential decision problems
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The value is a discounted infinite sum of rewards: . This geometric series gives the tightest bound on any state's value.
Incorrect! Try again.
55The Minimum Remaining Values (MRV) heuristic and the Degree heuristic are used in CSP backtracking. What is the correct role of the Degree heuristic?
Constraint satisfaction
Hard
A.It selects the variable involved in the largest number of constraints on remaining unassigned variables, used as a tie-breaker for MRV
B.It selects the variable with the largest domain to maximize flexibility
C.It selects the value that rules out the fewest choices for neighbors
D.It orders values by how frequently they appear in solutions
Correct Answer: It selects the variable involved in the largest number of constraints on remaining unassigned variables, used as a tie-breaker for MRV
Explanation:
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.
Incorrect! Try again.
56When 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?
Solution metrics
Hard
A.Incomplete and non-optimal; time , space
B.Complete and optimal; time , space
C.Complete and optimal; time , space
D.Complete but not optimal; time , space
Correct Answer: Complete but not optimal; time , space
Explanation:
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.
Incorrect! Try again.
57A reinforcement learning agent must learn in an environment with a large continuous state space. Why does tabular Q-learning become impractical, motivating function approximation?
Data requirements
Hard
A.Continuous rewards cannot be stored in a table of finite precision
B.The number of state-action entries grows unmanageably and most states are never visited, preventing generalization
C.Tabular methods require the transition model, which continuous spaces lack
D.The discount factor must be exactly 1 for continuous spaces
Correct Answer: The number of state-action entries grows unmanageably and most states are never visited, preventing generalization
Explanation:
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.
Incorrect! Try again.
58Two 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?
Problem formulation and state space search
Hard
A.It enlarges the state space but can capture constraints the simpler formulation cannot represent
B.It makes the problem unsolvable due to state explosion
C.It always reduces the branching factor and speeds up search
D.It guarantees the heuristic becomes consistent automatically
Correct Answer: It enlarges the state space but can capture constraints the simpler formulation cannot represent
Explanation:
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.
Incorrect! Try again.
59Genetic 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?
Basics of optimization: gradient-based methods and metaheuristics
Hard
A.Crossover creates only infeasible offspring, halting progress
B.Premature convergence: the population loses diversity and cannot explore beyond recombinations of existing genes
C.Fitness values become negative, invalidating selection
D.The algorithm behaves identically to exhaustive search
Correct Answer: Premature convergence: the population loses diversity and cannot explore beyond recombinations of existing genes
Explanation:
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.
Incorrect! Try again.
60Bidirectional search reduces complexity by searching forward from the start and backward from the goal. For it to work correctly, which requirement is most critical?
Introduction to uninformed search
Hard
A.The graph must be a tree with no cycles
B.The predecessors of the goal state must be efficiently computable to run the backward search
C.The branching factor must be identical in both directions
D.The heuristic must be admissible in both directions
Correct Answer: The predecessors of the goal state must be efficiently computable to run the backward search
Explanation:
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.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →