This means that the algorithm will give the desired output from a given input. Indifference as good as any algorithm, that gives a wrong output, the algorithm is certainly not a good algorithm. second consideration to note is that we need to know how well the results achieved by the algorithm. This is important especially in algorithms to solve problems that require approximation results (the results of only approach).
A good algorithm should be able to provide results as close as possible to the actual values. Third is the efficiency of the algorithm. The efficiency of the algorithm can be seen from this that the efficiency of time and memory. Although the algorithm gives the correct output (closest), but if we have to wait for hours to get the output, the algorithm is usually not going to wear, everyone wants a fast output.
So is the memory, the greater the memory in use then the poorer algorithm. In fact, each person can make a different algorithm to solve a problem, although there is a difference in developing the algorithm, we would expect the same output. If it does, look for the most efficient algorithms and fast.
0 comments:
Post a Comment