Pages

Friday 2 November 2012

Qualities of a good Algorithm



There are so many methods or logics available to solve the problem individually. All of those methods and logics may not be good, for given problem there may be so many algorithms not of all equality.
The following are the primary factors that are oftenly used to judge the quality of the algorithms.

 Factors - Quality of good Algorithm 

1. Time - To execute a program, the computer system takes some amount of time. The lesser is the time required, the better is the algorithm.
2. Memory - To execute a program, computer system takes some amount of memory storage. The lesser is the memory required, the better is the algorithm.
3. Accuracy - Multiple algorithms may provide suitable or correct solutions to a given problem, some of these may provide more accurate results than others, such algorithms may be suitable.
4. Sequence - The procedure of an algorithm must form in a sequence and some of the instruction of an algorithm may be repeated in number of times of until a particular condition is met.
5. Generability - The designed algorithm must solve isolated problem and more often algorithms are designed to handle a range of input data to meet this criteria, so the algorithms must be generalised.

5 comments: