The hospital where jack works has a step-by-step process for treating heart attack victims. This is an example of psychology algorithm.
We can define an algorithm as a set of procedures or steps that will solve a specific problem or if we follow these steps or procedures correctly we will complete a specific task.