INTRODUCTION
Today, computers are used in almost all areas of human life, ranging from education, business, up to the game. Speaking of the computer can not be separated from computer programming. This is because the computer is basically a machine that can not be anything. We must give a series of instructions to the computer for the machine to 'smart' is to solve a problem. The steps that need to be done in giving instructions to the computer to solve this problem called computer programming. The computer programming steps are as follows: define the problem, determine a solution, choose the algorithm, write programs, test programs, write documentation, and care programs. Before creating the program, should we make the Flow Chart or Pseudocode, making it easier for us to understand the algorithm and enable us in making the program. The program should also be clearly written, real, and complete. B. Problem Formulation 1. What is an algorithm? 2. What is the function of the algorithm? 3. How criteria algorithm in the computer field? C. The purpose of Writing Papers 1. To find understanding algorithms. 2. Knowing the benefits of the algorithm. 3. Knowing the criteria in the field of computer algorithms.
DISCUSSION A. Understanding Algorithm The algorithm is a proper procedure to solve the problem using computer assistance and the use of a particular programming language such as Pascal, Visual Basic, Java, and many more languages lain.Pranata (2002:8) in everyday life, we actually also uses algorithms to implement something. For example, when we write a letter, then we need to perform several steps as follows: 1. Prepare paper and envelopes. 2. Prepare stationery, such as a pen or pencil. 3. Start writing. 4. Insert the paper into the envelope. 5. Go to the post office to post the letter. B. Function Algorithm With the algorithm, we can solve problems from simple to complex ones. However, a user must be able to create a program using a language understood by computers. Before serving in the form of programming language, we should make a flow chart (Flow Chart) and Pseudocode. This is intended to facilitate the employment or facilitate in making the program. In addition, the algorithm can overcome the problem of logic and math problems with sequential manner, but sometimes not always sequential algorithm, this is known as the branching process. C. Criteria Algorithm Program in Computer Field In essence, computers are digital machines, meaning that computers can only recognize the condition of electrical currents (usually denoted by 1) and no electric current (usually denoted by 0). In other words, we must use password-0 and 1 for computer programming. The programming language that uses a password 0 and 1 are called machine language. Because machine language is very difficult, the idea appears to represent a string of code 0 and 1 with the abbreviation word that is more easily understood by ordinary people called mnemonic code. The programming language that uses the word acronym is called assembly language. Algorithm program must complete, real, and obvious. Although the assignment algorithm does not produce a solution, but the process must end this thing called a semi-algorithm (the procedure will go on or commonly referred to as looping). The point is we should not add to the problem, but we must be able to resolve the problem to get the right result. As examples of such algorithms in the area of a circle from the input of the radius of the circle. The formula for the circle is L =? * R * R The following are examples of algorithms to calculate the area of a circle: 1. Enter R 2. Pi? 3,14 3. L? Pi * R * R 4. Write L Notice the sign? on the second row and third. This sign means that the value of the right given to the operand on the left. For example, for the second row, the value of 3.14 given in the variable Pi. Next, the value of Pi * R * R given to the variable L. The last line writes the wide circle. As stated above, that there are algorithms that are not sequential and commonly called by repetition. The example is in calculating the average of a set of data entered by the user. Here is the algorithm to calculate the average data entered by the user: 1. Enter N 2. i? 1 3. j? 0 4. As long as (i <= N) do row 4 to 7 5. Enter dt 6. i? i +1 7. j? j + dt 8. Average? J / N 9. Write average The first line asks the user to enter N, the amount of data. On the second line, the variable I, which is useful as a counter the number of data already entered pegguna, worth 1. On the third line, the variable j, which is used to store the sum of the data, given the value 0. The fourth line gives the command to repeat the fourth line until the seventh row during the first less than equal to N. In other words, setelahi larger than N, the line kedelapanyang executed. Fifth row of data entered into the request-i. Sixth row to add the variable I by 1. Consider the meaning of the command i? I +1 is the value of i plus 1, then the results are stored in the variable i again. Seventh row j by adding variable data entered by the user. As explained above, the variable j is used to store the sum of all data, so for each input data, the value of variable j must be added to the second. Eighth row to calculate the average by dividing the sum by the number of data. The last line writes the average. But many experienced programmers who have never written the algorithm in the paper again .. It means he wrote the algorithm in daalam head.
CLOSING A. Knot Based on the above description, it can be concluded: 1. The algorithm is a proper procedure to solve the problem using computer assistance and the use of a programming language. 2. The function of the algorithm is to facilitate the work or help us in making the program or commonly called as Problem Solving. In addition, the algorithm can overcome the problem of logic and math problems 3. Criteria for the program must complete algorithm, real, and obvious. Although the assignment algorithm does not produce a solution, but the process must end this thing called a semi-algorithm (the procedure will go on or commonly referred to as looping). The point is we should not add to the problem, but we must be able to resolve the problem to get the right result. B. Suggestion Based on the conclusions above, it is recommended to: 1. The programmer can use the algorithms to solve the problem using computer assistance. 2. The programmer can use the algorithm as Problem Solving in a matter of logic and math problems. 3. The programmer must write a program algorithm with a clear, tangible, and complete.
Tidak ada komentar:
Posting Komentar