Algorithm

by Psychology Roots
328 views 1 minutes read

Algorithm

An algorithm is a set of instructions for solving a problem or completing a process, often used in math. The steps in an algorithm are very precise and well-defined. If your problem is a headache, your algorithm might look like this:

1) Have you been hit on the head? If yes, seek medical attention; if no, go to the next step.
2) Have you taken a pain reliever? If no, take one now; if yes go to the next step.
3) Have you eaten today?

… and so on until it would end with either a solution or advice to seek medical attention.

Algorithms often take the form of a graph with a square for each step and arrows pointing to the possible directions from each step.

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.


This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More