-a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
- Searching information on the Internet or from a database
- Encrypting communications so that they cannot be hacked
- Sorting large amounts of data
The difference between Algorithm A and Algorihm B is that, B has 2 clear choices: 1 and 2.
Algorithm A on the other hand requires you to type out the whole line correctly, word for word.