Reputation: 1562
When we write code in some programming languages such as Java there is an algorithm which is a set of steps to produce the result but when we are working with Modelling language such as UML , What will be the corresponding to the Algorithm in UML?
is it a methodology ?
Upvotes: 2
Views: 921
Reputation: 8084
Algorithms apply to modeling languages such as UML. The sequence diagrams are perfectly capable of depicting algorithms. However when it comes to modeling, most people think program structure (e.g. class diagram) instead of program behavior (e.g. sequence diagram).
If you are trying to find a structural equivalent to the behavioral algorithm, the closest answer you can get is probably design pattern.
Behavioral algorithms are (usually) reusable sets of steps for solving a behavioral problem. Sorting and searching are the usual examples with several well known algorithms.
In modeling the reusable designs that solve structural problems are called design patterns. The problems these solve may relate to data composition, behavioral structures, etc. The full topic of design patterns is a bit too broad for an answer, so I'll just provide a link to wikipedia.
Upvotes: 1