What is algorithm? Mention the different algorithm properties

An algorithm is a finite set of computational instructions, each instruction can be executed in the finite time, to perform computation or problem solving by giving some value or a set of values as input to produce some value or a set of values as output.

Algorithm Properties

Input(s)/Output(s) : There must be some inputs from the standard set of inputs and an algorithm's execution must produce output(s)

Definiteness: Each step must be clear and unambiguous

Finiteness: Algorithms must terminate after finite time or steps.

Correctness: Correct set of output values must be produced from each set of inputs.

Effectiveness: Each step must be carried out in finite time.


Feel free to contact the admin for any suggestions and help.