deterministic algorithm
A deterministic algorithm is a type of algorithm that produces the same output for a given input every time it is executed. This means that if you run the algorithm with the same data, you will always get the same result, making it predictable and reliable. Deterministic algorithms are often used in computer science for tasks like sorting and searching.
In contrast to non-deterministic algorithms, which can yield different outcomes even with the same input, deterministic algorithms follow a defined set of rules or steps. This characteristic makes them easier to debug and analyze, as their behavior is consistent and traceable.