Trial and error is a problem solving method in which multiple attempts are made to reach a solution. It is a basic method of learning that essentially all organisms use to learn new behaviors. Trial and error is trying a method, observing if it works, and if it doesn't trying a new method.
Is trial and error a good method?
Trial-and-error is one of the most useful forms of learning. ... In many ways, trial-and-error is the only form of learning we really have. When we make an error, or fail at something, we give ourselves an opportunity to analyze that failure, make a change, and then try again.
Is trial and error an algorithm?
Although trial and error is not typically one of the most time-efficient strategies, it is a commonly used one. Another type of strategy is an algorithm. An algorithm is a problem-solving formula that provides you with step-by-step instructions used to achieve a desired outcome (Kahneman, 2011).