Question DSA-GRDY-0021
EasyAt each step, what does a greedy algorithm choose?
- A.
Every option, to compare them all
- B.
A random option
- C.
The option that looks worst
- D.
The option that looks best right now
Show answer and explanation
Answer: D
It never reconsiders earlier choices.