Talk:Iteration

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Confusion regarding "repetition"[edit]

I have noticed that many online sources, including this page, define iteration as the repetition of a process, but this seems to not be true. When people count how many times a process is iterated, like in this article's "for loop" example, it is equal to the total number of executions of the body, but NOT equal to the "repeated" executions. For example, if a for loop only runs a single time, it would, by this logic, iterate a single time. However, this is NOT a repetition, as it simply runs a single time and is not repeated, thus meaning that the definition of iteration as being a "repetition" is faulty. Either that, or the for loop in this article only iterates twice, because the first time is not a repeat, and for my example, the for loop that only runs once does not iterate at all, because there is no repeat.

Genuinely confused here. --Advancedlamb 03:15, March 1, 2019 (UTC)

Corrected mistake[edit]

In the example given in pseudocode, corrected the output from 3 to 6, which is the correct one.

Best regards

André Fratelli (hint_54@hotmail.com)

Where are the references ?[edit]

The article is very interesting, but it would be even nicer if the references used to create it could be also read.

Best regards, --Hgfernan 18:25, 4 March 2006 (UTC)

correct linkage?[edit]

Is it me or shouldn't the recursion link go to http://en.wikipedia.org/wiki/Recursion_%28computer_science%29 instead of the disambiguous one?

HashKagen @ danish wikipedia 12:33, 22nov —Preceding unsigned comment added by 217.74.217.52 (talk) 11:33, 22 November 2007 (UTC)

Done. -Bryanrutherford0 (talk) 16:52, 23 January 2015 (UTC)

Red-headed step child[edit]

Wow. This is one of the more troubled pages I've come across in a long time, out of thousands. Would barely know where to start. My own impulse would be to separate algorithmic iteration (mathematics and computing) into a separate article. — MaxEnt 21:58, 29 January 2016 (UTC)

I've made some edits that will likely help in this regard. Heterodidact (talk) 06:49, 8 September 2016 (UTC)