Share on Facebook Share on Twitter Email
Answers.com

iteration

 
Dictionary: it·er·a·tion   (ĭt'ə-rā'shən) pronunciation
n.
  1. The act or an instance of iterating; repetition.
  2. Mathematics. A computational procedure in which a cycle of operations is repeated, often to approximate the desired result more closely.
  3. Computer Science.
    1. The process of repeating a set of instructions a specified number of times or until a specific result is achieved.
    2. One cycle of a set of instructions to be repeated: After ten iterations, the program exited the loop.

Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics

One repetition of a sequence of instructions or events. For example, in a program loop, one iteration is once through the instructions in the loop. See iterative development.

Download Computer Desktop Encyclopedia to your iPhone/iTouch

Business Dictionary: Iteration
Top

Process of repeating a particular action. A definite iteration occurs when the specified action will be repeated a fixed number of times. An independent iteration occurs if the repetitions stop when a particular condition is met, but the number of repetitions is not known in advance.

Thesaurus: iteration
Top

noun

    The act or process of repeating: reiteration, repetition, restatement. See repetition.

Wikipedia: Iteration
Top
A pentagon iteration. Connecting alternate corners of a regular pentagon produces a pentagram which encloses a smaller inverted pentagon. Iterating the process produces a sequence of nested pentagons and pentagrams.

Iteration means the act of repeating a process usually with the aim of approaching a desired goal or target or result. Each repetition of the process is also called an "iteration", and the results of one iteration are used as the starting point for the next iteration.

Contents

Mathematics

Iteration in mathematics may refer to the process of iterating a function i.e. applying a function repeatedly, using the output from one iteration as the input to the next. Iteration of apparently simple functions can produce complex behaviours and difficult problems - for examples, see the Collatz conjecture and juggler sequences.

Another use of iteration in mathematics is in iterative methods which are used to produce approximate numerical solutions to certain mathematical problems. Newton's method is an example of an iterative method.

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    // loop three times
 {  
     a := a + i       // increment a by the current value of i
 }
 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.

;; sum : number -> number
;; to sum the first n natural numbers
(define sum
  (lambda (n)
    (if (and (integer? n) (> n 0))
        (let iter ([n n] [i 1])
          (if (= n 1)
              i
              (iter (- n 1) (+ n i))))
        ((assertion-violation 
         'sum "invalid argument" n)))))

An iterator is an object that wraps iteration.

Iteration is also performed using a worksheet, or by using solver or goal seek functions available in Excel. Many implicit equations like Colebrooke equation can be solved in the convenience of a worksheet by designing suitable calculation algorithms[1].

Many of the engineering problems like solving Colebrook equations reaches a 8 digit accuracy in as small as 12 number of iterations and a maximum 100 iteration is sufficient to reach a 15 digit accurate result[2]. .

Project management

Iterations in a project context may refer to the technique of developing and delivering incremental components of business functionality, product development or process design. 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.

References

See also


Best of the Web: iteration
Top

Some good "iteration" pages on the web:


Math
mathworld.wolfram.com
 
 
 

 

Copyrights:

Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved.  Read more
Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2009 Computer Language Company Inc.  All rights reserved.  Read more
Business Dictionary. Dictionary of Business Terms. Copyright © 2000 by Barron's Educational Series, Inc. All rights reserved.  Read more
Thesaurus. Roget's II: The New Thesaurus, Third Edition by the Editors of the American Heritage® Dictionary Copyright © 1995 by Houghton Mifflin Company. Published by Houghton Mifflin Company. All rights reserved.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Iteration" Read more