Jump to content

Algorithm function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Charles Matthews (talk | contribs) at 08:47, 28 April 2004 (Tighten up -). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In programming, an algorithm is roughly synonymous with a method. An algorithm/method may return some kind of value to the calling code, but is essentially a block of code used to perform a series of actions or modifications.

In contrast, a functionis required to return a value. There may be some programming languages for which this is not a syntactic requirement; but that's the philosophical distinction.