ABSTRACT

The universe and the world around the reader work with rhythm and repetition. Sunrise and sunset, seasons, getting out of bed, going to work or school, coming back home, and going to bed at night. Many things repeat regularly—songs and music have reprises, visual arts and architectural designs also use repetition of patterns, animals breath in and out, and their hearts beat constantly. Numbers are arranged in ascending or descending order, and so on. Iteration is a powerful tool for problem-solving. The actual pushing of the largest element to the end of the list is again done by iteration. The pushing task fits the iteration paradigm. To employ iteration in any application, the people need to precisely control and execute all the necessary repetitions. Every iteration requires control to manage the repetitions and to start, continue, and end the repetitions correctly.