AskDefine | Define iteration

Dictionary Definition

iteration

Noun

1 (computer science) a single execution of a set of instructions that are to be repeated; "the solution took hundreds of iterations" [syn: loop]
2 (computer science) executing the same set of instructions a given number of times or until a specified result is obtained; "the solution is obtained by iteration" [syn: looping]
3 doing or saying again; a repeated performance

User Contributed Dictionary

English

Etymology

From iteratio, from iterare

Pronunciation

Noun

  1. Recital or performance a second time; repetition.
  2. the use of repetition in a computer program, especially in the form of a loop
  3. a single repetition of the code within such a repetitive process
    The code calculates the appropriate value at each iteration.

Extensive Definition

Iteration means the act of repeating.

Mathematics

Iteration in mathematics may refer to the process of iterating a function, or to the techniques used in iterative methods for solving numerical problems.

Computing

Iteration in computing is the repetition of a process within a computer program. It can be used both as a general term, synonymous with repetition, and to describe a specific form of repetition with a mutable state.
When used in the first sense, recursion is an example of iteration, but typically using a recursive notation, which is typically not the case for 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:
var i, a := 0 // initialize a before iteration for i from 1 to 3 print a // the number 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.
Iteration can be approximated using recursive techniques in functional programming languages. The following example is in Scheme. Note that the following is recursive (a special case of iteration) because the definition of "how to iterate", the iter function, calls itself in order to solve the problem instance. Specifically it uses tail recursion, which is properly supported in languages like Scheme so it does not use large amounts of stack space.
(define (sum n) (define (iter n i) (if (= n 1) i (iter (- n 1)(+ n i)))) (iter n 1))
An iterator is an object that wraps iteration.

Project management

Iterations in a project context may refer to the technique of developing and delivering incremental components of business functionality. This is most often associated with agile software development, but could potentially be any material. A single iteration results in one or more bite-sized but complete packages of project work that can perform some tangible business function. Multiple iterations recurse to create a fully integrated product. This is often compared with the waterfall model approach.
iteration in Bulgarian: Итерация
iteration in Czech: Iterace
iteration in Danish: Iterativ
iteration in German: Iteration
iteration in Spanish: Iteración
iteration in French: Itération
iteration in Hebrew: איטרציה
iteration in Italian: Iterazione
iteration in Japanese: ループ (プログラミング)
iteration in Dutch: Iteratie
iteration in Polish: Iteracja
iteration in Portuguese: Iteração
iteration in Russian: Итерация
iteration in Swedish: Iteration
iteration in Ukrainian: Ітерація

Synonyms, Antonyms and Related Words

Privacy Policy, About Us, Terms and Conditions, Contact Us
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2
Material from Wikipedia, Wiktionary, Dict
Valid HTML 4.01 Strict, Valid CSS Level 2.1