Definitions for "trial and error"
The method of discovering something desirable by trying many different things until one works; as, the traditional method of finding new drugs is by trial and error.
an approach to problem solving in which the individual tries one possible solution after another until one works. (314)
experimenting until a solution is found
The process of guessing successive candidate values in conjunction with deductive elmination.