2

What is the difference between "iteration" and "repetition"?

I have looked on wiktionary but I can't catch the difference in their semantics. Does any reference define the difference between these two words?

Wiktionary gives:

iteration (plural iterations)

  1. Recital or performance a second time; repetition.

  2. A variation or version.

    • The architect drafted several iterations of the floorplan before deciding on his final design.
  3. (computing) The use of repetition in a computer program, especially in the form of a loop.

  4. (computing) A single repetition of the code within such a repetitive process. The code calculates the appropriate value at each iteration.

repetition (countable and uncountable, plural repetitions)

  1. The act or an instance of repeating or being repeated.

  2. (weightlifting): The act of performing a single, controlled exercise motion; also called a rep. A group of repetitions is a set.

Definitions 1, 3 and 4 for "iteration" seem to be synonymous with "repetition" (obviously definition 1 of it).

  • 3
    Think of repetition as doing the same thing with the same data over and over. Think of iteration as doing the same thing with different or refined data. – Jim Aug 9 '17 at 6:36
  • 2
    The difference depends on context; in some contexts, there is none. – michael.hor257k Aug 9 '17 at 7:40
  • Hmm looks best answer with no significances – Daschin Aug 9 '17 at 7:41
  • 1
    Not sure what you mean by that. – michael.hor257k Aug 9 '17 at 7:44
  • 1
    I am afraid that's the best I can do with such a wide question. It's up to you to provide the context. -- Note that most answers given so far assume the context is computing. – michael.hor257k Aug 9 '17 at 7:53
3

Iteration uses an iterator to count through a list of (usually different) items:

Today, I must:
1: go shopping
2: clean the house
3: mow the lawn

Repetition does the same thing again, and again, etc...:

One sheep, two sheep, three sheep, ...

  • So you mean iteration := {alterate, list, traverse} repeat := {same, do, again} – Daschin Aug 9 '17 at 7:25
  • 1
    I am using iterator protocols as a guide and the fact that repetition is a kind of simplified iteration. Your version sounds about right. – JonMark Perry Aug 9 '17 at 7:29
  • Are you one who has an experience in nlp ? – Daschin Aug 9 '17 at 7:31
  • 1
    what's nlp? if it's nlp, then: "NLP has since been overwhelmingly discredited scientifically," – JonMark Perry Aug 9 '17 at 7:36
  • No I refer nlp to natual language processing – Daschin Aug 9 '17 at 7:37
2

Usually, you repeat doing something until a certain condition is met.

(Repeat ... until ...)

On the other hand, you iterate over all the items/elements in a given list/set.

(Iterate over ... and for each ... do ...)

0

Iteration implies the recurring action includes some form of counting or countability. Repetition is more general, wherein a recurring action needn't be counted, or might be, but counting is not essential.

0

Iteration is more exclusively used for Vocal or Written repetition of words or sentences, While Repetition carries a wider scope and can also be used in relation to Actions.

  • 1
    Please use proper punctuation, spelling, and capitalization. – NVZ Aug 9 '17 at 12:50

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.