Who gave trail and error theory

Trial and Error is a method of learning in which various response are tentatively tried and some discarded until a solution is attained. E.L.Thorndike(1874-1949) was the chief exponent of th theory of connectionism or trial and error.