0 votes
in Design Patterns by
How are design patterns different from algorithms?

1 Answer

0 votes
by
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.

Related questions

0 votes
asked Aug 12, 2020 in Design Patterns by RShastri
0 votes
asked Aug 12, 2020 in Design Patterns by RShastri
...