Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between an algorithm and a programming model? [closed]

What is the difference between an algorithm and a programming model (or paradigm)?

like image 960
boffin Avatar asked Sep 24 '12 14:09

boffin


People also ask

What is the difference between algorithm and programming?

We learned that the main difference is between the two is that an algorithm is a step-by-step procedure for solving the problem while programming is a set of instructions for a computer to follow to perform a task. A program could also be an implementation of code to instruct a computer on how to execute an algorithm.

What is the difference between an algorithm and a model?

Algorithms are methods or procedures taken in other to get a task done or solve a problem, while Models are well-defined computations formed as a result of an algorithm that takes some value, or set of values, as input and produces some value, or set of values as output.

What is the difference between algorithm and implementation?

An algorithm can be defined outside of computer science, and does not have a definitive machine implementation. You can "implement" it by writing it out by hand :) The key difference here is, in computer science, an algorithm is abstract, and doesn't have a definitive machine implementation.

What is the difference between model and algorithm in machine learning?

Machine learning algorithms are procedures that are implemented in code and are run on data. Machine learning models are output by algorithms and are comprised of model data and a prediction algorithm.


1 Answers

An algorithm is a predetermined set of rules for conducting computational steps that produce a computational effect. A programming model is a framework for expressing algorithms, but is not an algorithm itself.

For example, quicksort is an algorithm as it has a predetermined set of rules for carrying out steps to sort an array. Event-driven programming is a programming model; in itself, it does not tell how to carry out steps to solve an actual problem but it provides a framework for expressing algorithms (in an event-driven manner).

like image 166
Antti Huima Avatar answered Oct 21 '22 13:10

Antti Huima