Algorithms and Programming Languages:
What is Algorithm
saq.png
The algorithm, in essence, is the flow of thought in completing a work which is poured in written form that can be understood by others. What is emphasized here is the flow of thought. A person's flow of thinking can be different from that of other people's minds to accomplish the same job with the same outcome.


In the learning algorithm, it is planned that the one who will carry out the first flow is the computer. Computers are designed to be able to execute commands given by humans. The command can be given in the form of a set of instructions called programs. The program is written in a language called programming language such as COBOL Language, Basic Language, Pascal Language, C Language, Java Language, and many other languages. Of the many programming languages, the instruction writing can be the same, almost the same, completely different, for the same purpose.


From the description above, can be understood that algorithms that we read from literature books or on the internet although one with the other can be no difference, but all closer to the ordinance of writing a programming language that the general form.


Each Algorithm must meet the following criteria:
  • The presence or absence of data entered
  • There is at least one output
  • Every instruction is clear and has only one meaning
  • Algorithm both as a whole and sub-programs when traced there must be a stop
  • Any instructions other than clear must also be executable, and also effective in the sense of having to produce something


In addition to criteria, the algorithm also has a domain :
  • Problem: motivation or reason to create algorithm
  • Algorithm: the procedure to solve the problem. Often one problem can be solved in more than one way (many possibilities).
  • Program: the formal representation of an algorithm by using a programming language that can be understood by the computer.
  • Process: activity runs the procedures in the algorithm.


The following example of the algorithm and pseudo code is written as below as the table below




Comments

Popular posts from this blog

Quantization of Image Data Implementation in C#

Computer Graphics Project "Planet Orbit" Source Code with Glut OpenGL

Computer Graphics Project "MINION" Source Code with Glut OpenGL