In Branch and Bound, the 'bounding' step serves which purpose?
GATE CSE · Algorithms
Generate diverse GATE-level questions covering overlapping subproblems, optimal substructure, memoization, tabulation, and state transition design.
118 questions · 0 PYQs · 20 AI practice · GATE CSE 2027
In Branch and Bound, the 'bounding' step serves which purpose?
Which of the following are TRUE about the N-Queens problem solved using backtracking?
In Branch and Bound for the 0/1 Knapsack problem, items are considered in order of decreasing value/weight ratio. At a node where items 1, 2 have been included (total weight=6, total value=20) and capacity W=10, the remaining items are item3 (v=12, w=5) and item4 (v=8, w=4). What is the upper bound at this node using the fractional relaxation?
Consider the following recurrence: T(n) = T(n-1) + T(n-2), T(0) = 0, T(1) = 1. This recurrence computes Fibonacci numbers. Without memoization, the time complexity of naive recursion is O(2ⁿ). With memoization (top-down DP), what is the time complexity?
Which of the following statements correctly distinguish Branch and Bound from Backtracking?
Consider the following DP recurrence for a string problem: dp[i][j] = dp[i+1][j-1] + 2 if s[i] == s[j], else max(dp[i+1][j], dp[i][j-1]). This recurrence solves which problem?
The Weighted Interval Scheduling problem is solved using Dynamic Programming. Given n intervals sorted by finish time, each with a weight (value), define p(j) as the largest index i < j such that interval i is compatible with j. The DP recurrence OPT(j) = max(wⱼ + OPT(p(j)), OPT(j-1)) correctly computes the maximum weight. What is the time complexity of this DP solution (excluding sorting)?
Consider the Egg Drop problem: given e eggs and f floors, dp[e][f] = minimum number of trials needed in the worst case to find the critical floor. The recurrence is dp[e][f] = 1 + min over x from 1 to f of max(dp[e-1][x-1], dp[e][f-x]). For e = 2 eggs and f = 10 floors, what is the minimum number of trials required in the worst case?
Which of the following recurrences correctly defines the 0/1 Knapsack DP?
Consider the subset sum problem: , target . Using backtracking (include/exclude decisions in the given order), which of the following are valid subsets that sum to ?
The Floyd-Warshall algorithm for all-pairs shortest paths on a graph with n vertices has time complexity O(n³). What is its space complexity if only the distance matrix (not the path reconstruction matrix) is stored?
Which of the following is a necessary condition for a problem to be efficiently solvable using Dynamic Programming?
Which of the following statements about the state space tree in backtracking are TRUE?
Which one of the following problems can be solved optimally using dynamic programming?
Which of the following are examples of problems that exhibit BOTH overlapping subproblems AND optimal substructure?
Which of the following is NOT a standard application of backtracking?
Consider the following statements about Branch and Bound:
(i) Branch and Bound always runs faster than dynamic programming for the same problem.
(ii) Branch and Bound is complete - it always finds the optimal solution if one exists.
(iii) The efficiency of Branch and Bound heavily depends on the quality of the bounding function.
(iv) Branch and Bound can be applied only to minimization problems.
The LC (Least Cost) Branch and Bound strategy uses a priority queue (min-heap for minimization) ordered by node bounds. How does this differ from FIFO Branch and Bound in terms of nodes expanded?
Given coins = {1, 5, 6, 9} and amount = 11, what is the minimum number of coins required to make the amount using the coin change DP?
Which of the following is NOT a key characteristic of the branch and bound algorithm?
Want unlimited AI-generated Dynamic Programming questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →