Home>Article> What does iterative relationship mean?

What does iterative relationship mean?

coldplay.xixi
coldplay.xixi Original
2020-08-14 10:46:55 10302browse

The iterative relationship means the activity of repeating the feedback process. The purpose is usually to approximate the desired goal or result. Each repetition of the process is called an [iteration], and the results obtained from each iteration will be as the initial value for the next iteration.

What does iterative relationship mean?

The iterative relationship means:

Iteration: is an activity that repeats the feedback process, usually for the purpose of Approach a desired goal or outcome. Each repetition of the process is called an "iteration", and the result of each iteration serves as the initial value for the next iteration.

The process of repeatedly executing a series of calculation steps to find the following quantities from the previous quantities. Each result of this process is obtained by applying the same operation steps to the previous result. For example, use the iterative method* to find the solution to a certain mathematical problem.

Repeating a subroutine* (a set of instructions) that needs to be executed repeatedly in a specific computer program, that is, repeatedly executing the loop in the program until a certain condition is met, is also called iteration.

What does iterative relationship mean?

Extended information:

Using iterative algorithms to solve problems requires the following three aspects:

1. Determine variables

In problems that can be solved by iterative algorithms, there is at least one variable that directly or indirectly continuously derives new values from old values. This variable is the iteration variable.

2. Establish a relationship

The so-called iterative relationship refers to the formula (or relationship) of how to derive the next value from the previous value of a variable. The establishment of iterative relations is the key to solving iterative problems, which can usually be accomplished using recursion or backward reasoning.

3. Process control

The iteration process cannot be ended and the iteration process can be repeated endlessly. The control of the iterative process can usually be divided into two situations: one is that the required number of iterations is a certain value and can be calculated; the other is that the required number of iterations cannot be determined.

For the former case, a fixed number of loops can be constructed to control the iterative process; for the latter case, it is necessary to further analyze the conditions used to end the iterative process.

The above is the detailed content of What does iterative relationship mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn