Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

what is an algorithm?

OpenStudy (owlfred):

Hoot! You just asked your first question! Hang tight while I find people to answer it for you. You can thank people who give you good answers by clicking the 'Good Answer' button on the right!

OpenStudy (anonymous):

http://en.wikipedia.org/wiki/Algorithm

OpenStudy (anonymous):

An algorithm is a sequence of steps that solves a particular computational problem. To specify a computational problem you need to specify what the input to the problem is and the question that you want answered about the input. For example, consider the problem of finding the smallest element in a list of integers. Input: A list of integers \[a_1, a_2, \dots, a_n\]. Question: What is the smallest integer in the list? An algorithm is a solution to a computational problem. Here's one possible algorithm for finding the smallest element in the list. \[ \begin{array}{rl|l} 1: & min = \infty \\ 2: & \mathsf{for}\ i = 1, 2, \dots, n \ \mathsf{do:} \\ 3: & \quad \mathsf{if}\ a_i < min \ \mathsf{then:} \\ 4: & \quad \quad min = a_i \\ 5: & \mathsf{return}\ min \end{array} \]

OpenStudy (anonymous):

An algorithm is defined as a step by step sequence of instructions that describe how to data are to be processed to produce the desired outputs. In essence, an algorithm answers the question: "what methods will you use to solve the problem?"

OpenStudy (anonymous):

Adding to samt's answer, the Algorithm definition is way more general. It's not only computational. So, the general one is "A finite sequence of steps that if followed will resolve a problem" A recipe is an example of an algorithm as well.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!