seen then.
Consider this example.
You are standing at a place p. You are to goto q. There are intermediate places C1,C2 ...
You want to minimize distance travelled.
Greedy Method of Solving
You don't want to try all intermediate places. You goto the nearest intermediate place. Why? You feel by going to the nearest intermediate place, you will minimize the distance to q.
Dynamic Programming
You try all the places, but you store the previous result. Eg: To reach C3 in minimum distance, you reached by C1. So you store C1. So if you want to go to C5, by C3, you will goto C1 then C3 and then check if going from C3 to C5 is nearest.
I would suggest you read Intro to Algorithms by CLRS to understand in greater detail.
Chat with our AI personalities
The duration of Greedy - film - is 1.88 hours.
Honestly not really it was a fight between 2 men.But King Agamemnon was greedy and wanted to power over Troy.
She is greedy because she has the campers work so hard to find things for her
'pisinaari'
Greedy