The algorithm is the steps and the method is the means by which we do an action.
Algorithms terminate in a finite number of steps. A procedure that has all of the characteristics of an algorithm except that it possible lacks finiteness may be called a computational method. In computer science an algorithm still is a step-by-step manner towards solving a problem-an implementation-agnostic set of steps. A method commonly refers to a chunk of code associated with a class or object that does some task-it can implement many algorithms potentially. share | improve this answer. up vote -1 down vote. An Algorithm usually refers to the method or process used to end up with the result after mathematical processing. A Function is a subroutine used to avoid writing the same code over and over again. They are different in their uses. add a comment |. up vote 0 down vote. A mathematical function is the interface, or specification of the inputs and outputs of an algorithm. An algorithm is the precise recipe that defines the steps that may implement a function. The concept of algorithm has existed for centuries, however a partial formalization of what would become the modern algorithm began with attempts to solve the Entscheidungsproblem (the decision problem) posed by David Hilbert in 1928. A prototypical example of an algorithm is Euclid's algorithm to determine the maximum common divisor of two integers; an example (there are others) is described by the flow chart above and as an example in a later section. Boolos & Jeffrey (1974, 1999) offer an informal meaning of the word in the following quotation: Rogers observes that It is. . . important to distinguish between the notion of algorithm, i.e. procedure and the notion of function computable by algorithm, i.e. mapping yielded by procedure. The same function may have several different algorithms. A prototypical example of an algorithm is Euclid's algorithm to determine the maximum common divisor of two integers; an example (there are others) is described by the flow chart above and as an example in a later section. Boolos & Jeffrey (1974, 1999) offer an informal meaning of the word in the following quotation: add a comment |. up vote 2 down vote. An algorithm is a method for solving a problem, but a formula is a sequence of numbers and symbols corresponding to a word in a language. The quadratic formula is an algorithm, because it is a method for solving quadratic equations. Algorithms may not even involve math, but formulas almost exclusively use numbers. up vote 0 down vote. An algorithm is a formula as well as a procedure. Therefore conceptually a formula is a subset of an algorithm. Algorithms can be defined either in a procedure or a formula. As someone mentioned above baking a bread is a procedure and its definitely an algorithm. In my opinion, a method is a more general concept than algorithm and can be more or less anything, e.g. writing data to a file. Just about anything that should happen due to an event or to some logical expression. In computer science an algorithm still is a step-by-step manner towards solving a problem-an implementation-agnostic set of steps. A method commonly refers to a chunk of code associated with a class or object that does some task-it can implement many algorithms potentially. share | improve this answer. In CS, the algorithm is the steps and the method is the means by which we do an action. All the math formulas would be algorithms as they give us instructions how to find or do something--even if they are called methods in math. In computer science an algorithm still is a step-by-step manner towards solving a problem-an implementation-agnostic set of steps. A method commonly refers to a chunk of code associated with a class or object that does some task-it can implement many algorithms potentially. share | improve this answer. In the context you state (Newton's method, etc.) there is no essential difference between an algorithm and a method. Both are sets step-by-step instructions for solving a problem. In computer science an algorithm still is a step-by-step manner towards solving a problem-an implementation-agnostic set of steps. A method commonly refers to a chunk of code associated with a class or object that does some task-it can implement many algorithms potentially. share | improve this answer.
http://stackoverflow.com/questions/879015/what-is-the-difference-between-an-algorithm-and-a-method http://stackoverflow.com/questions/3391475/what-is-the-difference-between-an-algorithm-and-a-function https://en.wikipedia.org/wiki/Algorithm https://en.wikipedia.org/wiki/Algorithm http://math.stackexchange.com/questions/330595/difference-between-formula-and-algorithm http://stackoverflow.com/questions/879015/what-is-the-difference-between-an-algorithm-and-a-method http://stackoverflow.com/questions/879015/what-is-the-difference-between-an-algorithm-and-a-method http://stackoverflow.com/questions/879015/what-is-the-difference-between-an-algorithm-and-a-method
what distinguish an algorithm from a method