Algorithms and Programming Languages : How to implement algorithm in some programming languages?

Algorithms and Programming Languages : How to implement algorithm in some programming languages?



Consider the following example algorithm used to decompress the contents of array X (i) as below:


The above algorithm consists of instructions. Although the instructions are written in codes close to computer programming languages, but the computer can not understand and execute those instructions. Computers can only understand if the instruction is written in a language called programming language.


Here is given example of some programming languages as implementation of the above algorithm:






It appears that the instructions in the Algorithm are intentionally made close to the instructions used in the programming language. So if it has been written the algorithm to solve a problem, then we can easily convert algorithm into form of programming language.

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