Match the following. A. Longest common subsequence — i. Divide and conquer
Match the following.
A. Longest common subsequence — i. Divide and conquer
B. Huffman code — ii. Linear programming
C. Quick sort — iii. Greedy algorithm
D. Simplex algorithm — iv. Dynamic programming
Show answerHide answer
Correct answer: (C) A-iv, B-iii, C-i, D-ii
Explanation
LCS is solved by dynamic programming, Huffman coding by a greedy algorithm, quick sort by divide and conquer, and the simplex method is for linear programming.