Which of the following problems can be solved using the greedy algorithm…

2026

Which of the following problems can be solved using the greedy algorithm approach ?

  1. A.

    0/1 Knapsack problem

  2. B.

    Longest Common Subsequence

  3. C.

    Fractional Knapsack problem

  4. D.

    Matrix Chain Multiplication

Attempted by 160 students.

Show answer & explanation

Correct answer: C

The Fractional Knapsack problem is a classic example solvable with greedy algorithms by selecting items based on value-to-weight ratio. The 0/1 Knapsack, LCS, and Matrix Chain Multiplication require dynamic programming instead.

Explore the full course: Tpsc Assistant Technical Officer