Cognizant interview question

Difference between Greedy algorithm and dynamic.