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 PrincipleThe 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 TermsQuote, 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, LeadQuote, 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, LeadQuote, 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 Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.