+ 2
What are algorithms ????
5 Answers
+ 9
The algorithm in coding is a clear and accurate sequence of actions written in the programming language.
+ 9
Algorithms are not just limited to programming. Your brain processes algorithms every day. If you decided to teach someone to do something, you would list a sequence of actions they needed to execute to complete that task. You go through that same sequence every time you perform the task. Sure there are things that order doesn't matter at all and the same can be said for a program. There are many different sequences that result in the same finished product and there are sequences that can only be done one way. The food must be on the fork before it goes into your mouth. But, the methods of getting the food on that fork are many.
+ 2
An algorithm is simply a way to solve a problem. The "way" you do it is relative to its scope/environment.
e.g. Math uses letters, numbers, & symbols amongst its set of rules.
[Computer] Programming uses computers, languages, & fingers :-P
The algorithm of the color blue = red + green.
Pick a problem & find its solution.
Side note. Watch the movie The Traveling Salesman. :-)
0
A sequence of actions that can be translated to any programming language and that performs a specific task (such as sorting an array).