C Programming • Introduction to Computer, Programming & algorithms
C Programming / Algorithm — Characteristics

Algorithm — Characteristics

Notes 1 Introduction to Computer, Programming & algorithms

A good algorithm must follow certain basic rules so that it can correctly and clearly solve a problem. The five essential characteristics are Input, Output, Definiteness, Finiteness, and Effectiveness.

Notes

Characteristics of an Algorithm

A good algorithm must follow certain basic rules so that it can correctly and clearly solve a problem. The five essential characteristics are Input, Output, Definiteness, Finiteness, and Effectiveness.

Five Essential Characteristics

Characteristic Meaning Simple Example
Input An algorithm may take zero or more input values. Enter two numbers A and B.
Output An algorithm should produce at least one required result. Display the sum of A and B.
Definiteness Every step must be clear, precise, and unambiguous. "Add A and B" is clear.
Finiteness The algorithm must finish after a finite number of steps. Stop after producing the required result.
Effectiveness Every step should be simple, practical, and possible to perform. "Add 5 to X" is an executable step.

1. Input

Input is the data given to an algorithm before processing starts. An algorithm may take zero or more input values, depending on the problem.

💡 Example

To calculate the sum of two numbers, the inputs can be A = 5 and B = 7.

2. Output

Output is the result produced after processing the input. An algorithm should produce at least one required output.

💡 Example

For A = 5 and B = 7, the output is 12.

3. Definiteness

Definiteness means that every step of an algorithm must be clearly defined. There should be no confusion about what a particular step means.

💡 Example

Clear: Add 5 to X.
Unclear: Do something with X.

4. Finiteness

Finiteness means that an algorithm must terminate after a finite number of steps. It should not continue forever.

💡 Example

An algorithm for finding the sum of two numbers should calculate the result and stop. It should not continue indefinitely.

5. Effectiveness

Effectiveness means that every step of an algorithm must be basic enough to be performed practically and should lead toward solving the problem.

💡 Example

Effective: Add 5 to X.
Not Effective: Divide X by infinity.

Example Showing All Characteristics

Consider an algorithm to calculate the sum of two numbers:

Algorithm to Add Two Numbers
Characteristic In This Algorithm
Input A and B are entered.
Output SUM is displayed.
Definiteness Each instruction is clear.
Finiteness The algorithm ends at STOP.
Effectiveness Each operation can actually be performed.
🧠 Easy Revision Trick

Remember the five characteristics as: IODFE

I → Input   O → Output   D → Definiteness   F → Finiteness   E → Effectiveness

Quick Revision

Term One-Line Meaning
Input Data given to the algorithm.
Output Result produced by the algorithm.
Definiteness Every step must be clear and unambiguous.
Finiteness Algorithm must terminate after finite steps.
Effectiveness Every step must be practical and executable.

Important Exam Questions

Short Answer Questions

  1. What are the characteristics of an algorithm?
  2. What is meant by input and output in an algorithm?
  3. What is definiteness?
  4. What is finiteness?
  5. What is effectiveness?
  6. Why should an algorithm be finite?

Long Answer Questions

  1. Explain the five essential characteristics of an algorithm.
  2. Explain Input, Output, Definiteness, Finiteness and Effectiveness with suitable examples.
  3. Write an algorithm to add two numbers and explain how it satisfies the characteristics of an algorithm.
🎥 Recommended Learning

Watch a simple explanation of the characteristics of an algorithm with examples.

▶ Watch: Characteristics of Algorithm — Hindi

📝 Handwritten Notes

A short handwritten-style revision sheet covering the five characteristics of an algorithm will be provided here.

🧠 Mind Map

Use the mind map for quick revision of Input, Output, Definiteness, Finiteness and Effectiveness.