The Importance of Algorithm in Programming 06-24-2013, 12:23 AM
#1
Hello HC,
I want to write my first article about the importance of algorithm in programming. I hope this will be helpful for those who new to programming..
So.. What is the algorithm?
Algorithm is describing a process step by step.
When we are making a programme, we explain each step of the process to computer. We can think this as teaching how to ride a bicycle to a six year old.
Lets make an algorithm of how to ride a bicycle for example..
Step-1: Get on the bicycle.
Step-2: Grab the steering wheel with your hands.
Step-3: Put your left feet on left pedal.
Step-4: While pressing the left pedal with left feet, put your right feet on the right pedal.
Step-5: While pressing the right pedal with right feet, rise your left feet.
Step-6: While pressing the left pedal with left feet, rise your right feet.
Step-7: Return to Step-5.
This is the simpliest example of an algorithm.
While we make programmes, we must build a solid algorithm. Weak algorithms may cause unwanted errors and/or bugs. It even may get our software be hacked.
For example there is an error in the algorithm we've just made. We haven't tell the kid how to stop the bike. As you can guess it may end up fatal results.
So we have to develop our algorithm like this..
Step-1: Get on the bicycle.
Step-2: Grab the steering wheel with your hands.
Step-3: Put your left feet on left pedal.
Step-4: While pressing the left pedal with left feet, put your right feet on the right pedal.
Step-5: While pressing the right pedal with right feet, rise your left feet.
Step-6: While pressing the left pedal with left feet, rise your right feet.
Step-7: If you want to stop, go to Step-8; Else, return to Step-5.
Step-8: Grasp the breaks of the bicyle with your fingers.
Step-9: Stop the bicycle by squeezing them.
As you can see, we prevent fatal results by developping our algorithm.
The logic of algorithms is the same in programming. The only difference is that we use programming languages to communicate with computers.
I want to end my article here. Feel free to fix my mistakes
Also don't hold back your comments too
Au revoir..
I want to write my first article about the importance of algorithm in programming. I hope this will be helpful for those who new to programming..
So.. What is the algorithm?
Algorithm is describing a process step by step.
When we are making a programme, we explain each step of the process to computer. We can think this as teaching how to ride a bicycle to a six year old.
Lets make an algorithm of how to ride a bicycle for example..
Step-1: Get on the bicycle.
Step-2: Grab the steering wheel with your hands.
Step-3: Put your left feet on left pedal.
Step-4: While pressing the left pedal with left feet, put your right feet on the right pedal.
Step-5: While pressing the right pedal with right feet, rise your left feet.
Step-6: While pressing the left pedal with left feet, rise your right feet.
Step-7: Return to Step-5.
This is the simpliest example of an algorithm.
While we make programmes, we must build a solid algorithm. Weak algorithms may cause unwanted errors and/or bugs. It even may get our software be hacked.
For example there is an error in the algorithm we've just made. We haven't tell the kid how to stop the bike. As you can guess it may end up fatal results.
So we have to develop our algorithm like this..
Step-1: Get on the bicycle.
Step-2: Grab the steering wheel with your hands.
Step-3: Put your left feet on left pedal.
Step-4: While pressing the left pedal with left feet, put your right feet on the right pedal.
Step-5: While pressing the right pedal with right feet, rise your left feet.
Step-6: While pressing the left pedal with left feet, rise your right feet.
Step-7: If you want to stop, go to Step-8; Else, return to Step-5.
Step-8: Grasp the breaks of the bicyle with your fingers.
Step-9: Stop the bicycle by squeezing them.
As you can see, we prevent fatal results by developping our algorithm.
The logic of algorithms is the same in programming. The only difference is that we use programming languages to communicate with computers.
I want to end my article here. Feel free to fix my mistakes

Also don't hold back your comments too

Au revoir..
Fuck You.



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

miling:
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)
![[Image: 1016511_527588887289994_96661052_n.jpg]](https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn1/1016511_527588887289994_96661052_n.jpg)
I tried to explain the importance of algorithm. English is not my main language so there may be grammar mistakes or expression disorders.. Also I actually lol'd that sleeping algorithm