Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Iteration

Technique

Iteration means repeating a process to generate a possibly unbounded sequence of outcomes, where each repetition is a single iteration and the outcome of each one is the starting point of the next. In mathematics it can mean applying a function repeatedly, using the output of one step as the input to the next, or the iterative methods that produce approximate numerical solutions to certain problems, of which Newton's method is an example. In computing it is a technique that marks out a block of statements within a program for a defined number of repetitions, most commonly through loops, with iterators and iteratees as alternative language constructs. Iteration is related to recursion: the two have different algorithmic definitions but can generate identical results, and the primary difference the source gives is that recursion can work without prior knowledge of how many times the action must repeat, while a successful iteration requires that foreknowledge.

Facts
Core Principle
The repeated execution of a series of statements 1
Connections

In Field

Source Iteration (Wikipedia)

Long-Form Articles

Technique Used By

Source Liu Hui's π algorithm (Wikipedia)
Sources
1. Repeating Terms (University of Washington CSE 100)
Slide: Repeating Terms
Quote, Slide: Repeating Terms
Iteration is the repeated execution of a series of statements in programming
View the Source
Iteration (Wikipedia)
In Field: Algorithms and Complexity Theory, Lead
Quote, In Field: Algorithms and Complexity Theory, Lead
In mathematics and computer science, iteration (along with the related technique of recursion) is a standard element of algorithms.
View the Source
Liu Hui's π algorithm (Wikipedia)
Technique Used By: Liu Hui's π algorithm, Lead
Quote, Technique Used By: Liu Hui's π algorithm, Lead
He went on to provide a detailed step-by-step description of an iterative algorithm to calculate π to any required accuracy based on bisecting polygons
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.