- 2071 Bhadra · 2 marks
Significant traits of a good algorithm
Short answer
Good algorithms are correct, finite, definite, effective, handle inputs and produce outputs, and are efficient (low time and space). They should also be general, simple, and readable.
What are the significant traits of good algorithm?
Significant traits of a good algorithm:
- Correctness: gives the right output for every valid input.
- Finiteness: terminates after a finite number of steps.
- Definiteness: every step is precise and unambiguous.
- Input and output: zero or more well-defined inputs and at least one output.
- Effectiveness: each step is basic enough to be carried out exactly.
- Efficiency: uses little time (low time complexity) and memory (low space complexity).
- Generality: works for a whole class of inputs, not one case.
- Simplicity and readability: easy to understand, modular and easy to modify.
✓ Answer checked by Claude Opus 5.5 (high effort)