All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2022 Shift 1

Match List I with List II
List IList II
A. 8-Queens problemI. Divide and conquer
B. Closest pair of pointsII. Dynamic Programming
C. String edit problemIII. Greedy Method
D. Knapsack problemIV. Backtracking

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. A-IV, B-I, C-II, D-III

Explanation

8-queens is solved by backtracking (IV), closest pair of points by divide and conquer (I), string edit distance by dynamic programming (II), and the (fractional) knapsack by the greedy method (III).

More Data Structures and Algorithms questions