pysäytysehto
Pysäytysehto, Finnish for stopping condition, refers to a criterion that determines when to terminate an iterative computation, algorithm, or process. It is used across mathematics, computer science, and data analysis to ensure termination and control resource consumption. A stopping condition can be explicit (a fixed number of iterations or time limit) or based on the state of the computation (tolerance-based, convergence criteria, or stagnation).
Common forms include absolute tolerance |f(x_n)| <= tol, relative tolerance |x_{n+1}-x_n|/|x_n| <= tol, or a combination. In optimization
Choosing a pysäytysehto affects accuracy and efficiency; too strict may cause unnecessary computation or non-convergence; too
Examples: Newton-Raphson method stops when |f(x_n)| < tol; bisection method stops when interval length < tol; Dijkstra's algorithm