InterviewSolution
Saved Bookmarks
| 1. |
How are design patterns different from algorithms? |
|
Answer» Both Design Patterns and ALGORITHMS describe TYPICAL solutions to any GIVEN problem. But the main difference is that the algorithm defines a clear set of actions for achieving a GOAL and a design pattern provides a high-level description of any solution. Design patterns applied to TWO different problems might be the same but the logic of implementation would be different and is based on the requirements. |
|