Algorithms - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

An algorithm is a finite set of instructions that specify a sequence of operations to be carried out in order to solve a specific problem or class of problems.

An algorithm consists of the logic behind a solution to a problem. In general, we judge an algorithm based on two criteria:

  • Correctness
  • Efficiency

Please note that our definition did not mention anything to do with computers or with a particular programming language. In fact, an algorithm is not a program. A program is the concrete expression of an algorithm in a particular programming language.

What is an algorithm? - Khan Academy

Example:

image

image