which of the following is not true about greedy algorithms?
A.It makes the locally optimal choice at each stage
B.A greedy strategy produces an optimal solution
C. A greedy algorith exists for constructing the minimum spanning tree
D.A greedy algorithm exists for partition a set of n weights into k buns where each has the same weight
E. Greedy algorithm exists for some NP-hard problems.

Respuesta :

Answer:D)A greedy algorithm exists for partition a set of n weights into k buns where each has the same weight

Explanation: A greedy algorithm is the algorithm that helps in the optimization during any issue in the operating system field.It helps in making the best utilization of the situation and thus makes the optimal choice.

By functioning at each step/stage in optimal way,the problem/issue gets solved with the minimal spanning tree form.Non-deterministic polynomial-time(NP) hardness issues can be find a optimal solution through this method.Therefore all the statement are correct except option(d).

The "choice d" that is "A greedy algorithm exists for partition a set of n weights into k buns where each has the same weight" is not true about the greedy algorithms.

greedy algorithms:

The greedy algorithm helps in the optimization of any OS issue. As a result, it helps in making the most use of a circumstance or, as a result, making a good decision.

Greedy is an algorithm model that assembles a solution piece by piece, always selecting the next component that generates the most obvious and immediate advantage.

  • This problem or issue was addressed using the shortest-spanning tree form by performing optimally at every step/stage.
  • These techniques can be used to find the optimal solution to non-deterministic polynomial-time (NP) difficulty issues.

Therefore, the final answer is "Option d".

Find out the more information about the algorithm here:

brainly.com/question/26345812