Thorndike's theory of trial and error learning posits that learning occurs through a process of testing responses until the correct one is discovered. He conducted experiments with cats in puzzle boxes to demonstrate this. Over repeated trials, the cats decreased incorrect responses like scratching and biting, and eventually learned to open the door by pulling a string in a single trial as the proper response was identified through elimination of errors. Thorndike's laws of learning describe how responses become associated with stimuli through satisfaction or annoyance, and how repetition strengthens these connections while disuse weakens them.