Question DSA-GRDY-0001
EasyWhat is a greedy algorithm?
- A.
One that uses a lot of memory
- B.
One that makes the locally best choice at each step, hoping for a global optimum
- C.
Show answer and explanation
Answer: B
Greedy works only for problems with the greedy-choice property and optimal substructure.