Iteration: Meaning (information, definition, explanation, facts)

Iteration is the repetition of a process, typically within a computer program. Confusingly, it can be used both as a general term, synonymous with repetition, and to describe a specific form of repetition with mutable state.

When used in the first sense, recursion is an example of iteration.

However, when used in the second (more restricted) sense, iteration describes the style of programming used in imperative programming languages. This contrasts with recursion, which has a more declarative approach.

Here is an example of iteration, in imperative pseudocode:

    a = 0
    for i = 1 to 3
        a = a + i
    print a  /* "6" is printed */

In this program fragment, the value of the variable i changes over time, taking the values 1, 2 and 3. This changing value - or mutable state - is characteristic of iteration.

See also: Iterative and Incremental development -- iterator -- Iterative method -- Nash embedding theorem

Find more facts
 
Further reference
Remember what Iteration means:
Other sources
Search for Iteration information on:  amazon.com
Your reference for information, definition
http://explanation-guide.info/meaning/Iteration.html
Licensing information:
This article uses material from Wikipedia (credits) and is made available under the terms of the GNU FDL (copy).
Image licensing information is accessible by clicking the image.

Welcome, guest!
You are not logged in
ID:
Password:

Social bookmarks


Book search

Recent searches