Which of the following is a characteristic of a greedy algorithm ?

2025

Which of the following is a characteristic of a greedy algorithm ?

  1. A.

    It makes decisions based on global information

  2. B.

    It always produces the optimal solution

  3. C.

    It makes decisions based on local information

  4. D.

    It uses backtracking to explore multiple solutions

Attempted by 102 students.

Show answer & explanation

Correct answer: C

A greedy algorithm makes locally optimal choices at each step without considering the global picture. This approach builds up a solution incrementally, hoping that local choices lead to a globally optimal result.

Explore the full course: Tpsc Assistant Technical Officer