Federal Board of Intermediate and Secondary Education (FBISE) · Computer Science FBISE Class 9 · Class 9
What is an algorithm? Write two characteristics of a good algorithm.
Answer
An algorithm is a finite sequence of well-defined steps that is followed to solve a particular problem. A good algorithm has clear and unambiguous steps, so that each instruction can be understood in only one way. It must also end after a finite number of steps and always produce the correct output for valid input.