Often we menyepelehkan basis of this programming, but can not be denied that the algorithm is already a basis of making us go further program.sebelum about programming should we have to know the basics of programming AAU first.
A. Definition of Algorithmis the sequence of troubleshooting steps that have been prepared in a systematic, logical and has a value of false or true.
The word algorithm comes from the Arabic word which means the process of calculating Algorism with arabic numbers. While Algorist are people who count using Arabic numbers. The algorithm itself is derived from the name of a mathematician of Uzbekistan, Abu Abdullah Muhammad Ibn Musa al-Khwarizmi who read by Westerners to pronounce Algorism and Indonesian people became Algorithm.
B. Several methods of preparation of the algorithm:There are several ways to construct an algorithm as follows:• With the string of descriptive phrases• With pseudocode• With Flowchart.
C. Criteria for a good algorithm:• Right, right, a simple, standard and effective.• Logical, structured and systematic.• All operations defined.• All processes must be terminated after a number of steps performed.• Written with standard programming languages and easy to implement so as to avoid double meanings.
D. Method of preparation of the Algorithm:The method used in the manufacture / preparation of the algorithm is:• Divide and Conquer, which divides a large problem into problems of smaller easy to solve.• Dynamic programming, dynamic programming would be appropriate if used on a problem that contains a sub-optimal structure and contain several parts of the problem of overlapping.• Method greedy. A greedy algorithm is similar to a dynamic programming, the difference between the answers of the subproblems do not need to know in every stage, and using what options are best seen at the time.