Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Trial and error
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Method of problem-solving}} {{Other uses}} {{More citations needed|date=April 2008}} '''Trial and error''' is a fundamental method of [[problem-solving]]<ref>{{cite journal |last1=Campbell |first1=Donald T. |title=Blind variation and selective retention in creative thoughts as in other knowledge processes |journal=Psychological Review |date=November 1960 |volume=67 |issue=6 |pages=380–400 |doi=10.1037/h0040373 |pmid=13690223 |ref=Campbell}}</ref> characterized by repeated, varied attempts which are continued until success,<ref>Concise Oxford Dictionary p1489</ref> or until the practicer stops trying. According to [[W.H. Thorpe]], the term was [[neologism|devised]] by [[C. Lloyd Morgan]] (1852–1936) after trying out similar phrases "trial and failure" and "trial and practice".<ref>Thorpe W.H. The origins and rise of ethology. Hutchinson, London & Praeger, New York. p26. {{ISBN|978-0-03-053251-1}}</ref> Under [[Morgan's Canon]], [[ethology|animal behaviour]] should be explained in the simplest possible way. Where behavior seems to imply higher mental processes, it might be explained by trial-and-error learning. An example is a skillful way in which his terrier Tony opened the garden gate, easily misunderstood as an insightful act by someone seeing the final behavior. Lloyd Morgan, however, had watched and recorded the series of approximations by which the dog had gradually learned the response, and could demonstrate that no insight was required to explain it. [[Edward Lee Thorndike]] was the initiator of the theory of trial and error learning based on the findings he showed how to manage a trial-and-error experiment in the laboratory. In his famous experiment, a cat was placed in a series of puzzle boxes in order to study the [[law of effect]] in learning.<ref>Thorndike E.L. 1898. Animal intelligence: an experimental study of the association processes in animals. ''Psychological Monographs'' #8.</ref> He plotted to learn curves which recorded the timing for each trial. Thorndike's key observation was that learning was promoted by positive results, which was later refined and extended by [[B. F. Skinner]]'s [[operant conditioning]].{{cn|date=November 2024}} Trial and error is also a method of problem solving, [[repair]], tuning, or obtaining [[knowledge]]. In the field of [[computer science]], the method is called '''generate and test ([[Brute-force search|brute force]])'''. In [[elementary algebra]], when solving equations, it is called '''guess and check'''.{{cn|date=November 2024}} This approach can be seen as one of the two basic approaches to problem-solving, contrasted with an approach using [[insight]] and [[theory]]. However, there are intermediate methods that, for example, use theory to guide the method, an approach known as ''guided empiricism''.{{cn|date=November 2024}} This way of thinking has become a mainstay of [[Karl Popper]]'s [[critical rationalism]].{{cb|date=November 2024}} ==Methodology== The trial and error approach is used most successfully with simple problems and in games, and it is often the last resort when no apparent rule applies. This does not mean that the approach is inherently careless, for an individual can be methodical in manipulating the variables in an attempt to sort through possibilities that could result in success. Nevertheless, this method is often used by people who have little knowledge in the problem area. The trial-and-error approach has been studied from its natural computational point of view <ref>[https://arxiv.org/abs/1205.1183 X. Bei, N. Chen, S. Zhang, On the Complexity of Trial and Error, STOC 2013]</ref> ===Simplest applications=== [[William Ross Ashby|Ashby]] (1960, section 11/5) offers three simple strategies for dealing with the same basic exercise-problem, which have very different efficiencies. Suppose a collection of 1000 on/off switches have to be set to a particular combination by random-based testing, where each test is expected to take one second. [This is also discussed in Traill (1978–2006, section C1.2]. The strategies are: *the perfectionist all-or-nothing method, with no attempt at holding partial successes. This would be expected to take more than 10^301 seconds, [i.e., 2^1000 seconds, or 3·5×(10^291) centuries] *a serial-test of switches, holding on to the partial successes (assuming that these are manifest), which would take 500 seconds on average * parallel-but-individual testing of all switches simultaneously, which would take only one second Note the tacit assumption here that no intelligence or insight is brought to bear on the problem. However, the existence of different available strategies allows us to consider a separate ("superior") domain of processing — a ''"meta-level"'' above the mechanics of switch handling — where the various available strategies can be randomly chosen. Once again this is "trial and error", but of a different type. ===Hierarchies=== Ashby's book develops this "meta-level" idea, and extends it into a whole [[recursion|recursive]] sequence of levels, successively above each other in a systematic hierarchy. On this basis, he argues that human intelligence emerges from such organization: relying heavily on trial-and-error (at least initially at each new stage), but emerging with what we would call "intelligence" at the end of it all. Thus presumably the topmost level of the hierarchy (at any stage) will still depend on simple trial-and-error. Traill (1978–2006) suggests that this Ashby-hierarchy probably coincides with [[Jean Piaget|Piaget]]'s well-known theory of developmental stages. [This work also discusses Ashby's 1000-switch example; see §C1.2]. After all, it is part of Piagetian doctrine that children learn first by ''actively doing'' in a more-or-less random way, and then hopefully learn from the consequences — which all has a certain resemblance to Ashby's random "trial-and-error". ===Application=== Traill (2008, ''espec. Table "S" on p.31'') follows [[Niels Kaj Jerne|Jerne]] and [[Karl Popper|Popper]] in seeing this strategy as probably underlying ''all'' knowledge-gathering systems — ''at least in their initial phase''. Four such systems are identified: *[[Natural selection]] which "educates" the [[DNA]] of the species, *The brain of the individual (just discussed); *The "brain" of society-as-such (including the publicly held body of science); and *The [[adaptive immune system]]. ==Features== Trial and error has a number of features: *solution-oriented: trial and error makes no attempt to discover ''why'' a solution works, merely that it ''is'' a solution. *problem-specific: trial and error makes no attempt to generalize a solution to other problems. *non-optimal: trial and error is generally an attempt to find ''a'' solution, not ''all'' solutions, and not the ''best'' solution. *needs little knowledge: trials and error can proceed where there is little or no knowledge of the subject. It is possible to use trial and error to find all solutions or the best solution, when a testably finite number of possible solutions exist. To find all solutions, one simply makes a note and continues, rather than ending the process, when a solution is found, until all solutions have been tried. To find the best solution, one finds all solutions by the method just described and then comparatively evaluates them based upon some predefined set of criteria, the existence of which is a condition for the possibility of finding a best solution. (Also, when only one solution can exist, as in assembling a jigsaw puzzle, then any solution found is the only solution and so is necessarily the best.) ==Examples== Trial and error has traditionally been the main method of finding new drugs, such as [[antibiotics]]. [[Chemist]]s simply try chemicals at random until they find one with the desired effect. In a more sophisticated version, chemists select a narrow range of chemicals it is thought may have some effect using a technique called [[structure–activity relationship]]. (The latter case can be alternatively considered as a changing of the problem rather than of the solution strategy: instead of "What chemical will work well as an antibiotic?" the problem in the sophisticated approach is "Which, if any, of the chemicals in this narrow range will work well as an antibiotic?") The method is used widely in many disciplines, such as [[polymer technology]] to find new polymer types or families. Trial and error is also commonly seen in player responses to [[video game]]s - when faced with an obstacle or [[Boss (video gaming)|boss]], players often form a number of strategies to surpass the obstacle or defeat the boss, with each strategy being carried out before the player either succeeds or quits the game. [[Sports team]]s also make use of trial and error to qualify for and/or progress through the [[playoffs]] and win the [[championship]], attempting different strategies, plays, lineups and formations in hopes of defeating each and every opponent along the way to victory. This is especially crucial in [[Playoff format#Best-of formats|playoff series in which multiple wins are required to advance]], where a team that loses a game will have the opportunity to try new tactics to find a way to win, if they are not eliminated yet. The [[scientific method]] can be regarded as containing an element of trial and error in its formulation and testing of hypotheses. Also compare [[genetic algorithm]]s, [[simulated annealing]] and [[reinforcement learning]] – all varieties for search which apply the basic idea of trial and error. [[Evolution|Biological evolution]] can be considered as a form of trial and error.<ref>{{cite journal|last=Wright|first=Serwall|title=The roles of mutation, inbreeding, crossbreeding and selection in evolution|journal=Proceedings of the Sixth International Congress on Genetics|date=1932|number=6|series=Volume 1|page=365|url=http://www.esp.org/books/6th-congress/facsimile/contents/6th-cong-p356-wright.pdf|access-date=17 March 2014}}</ref> Random mutations and sexual genetic variations can be viewed as trials and poor reproductive fitness, or lack of improved fitness, as the error. Thus after a long time 'knowledge' of well-adapted genomes accumulates simply by virtue of them being ''able'' to reproduce. [[Bogosort]], a conceptual sorting algorithm (that is extremely inefficient and impractical), can be viewed as a trial and error approach to sorting a list. However, typical simple examples of bogosort do not track which orders of the list have been tried and may try the same order any number of times, which violates one of the basic principles of trial and error. Trial and error is actually more efficient and practical than bogosort; unlike bogosort, it is guaranteed to halt in finite time on a finite list, and might even be a reasonable way to sort extremely short lists under some conditions. [[Jumping spider]]s of the [[genus]] ''[[Portia (spider)|Portia]]'' use trial and error to find new tactics against unfamiliar prey or in unusual situations, and remember the new tactics.<ref name="HarlandJackson2000Cats">{{Cite journal |author1 = Harland, D.P. |author2 = Jackson, R.R. |name-list-style = amp |year = 2000 |title = "Eight-legged cats" and how they see - a review of recent research on jumping spiders (Araneae: Salticidae) |journal = Cimbebasia |volume = 16 |pages = 231–240 |url = http://www.cogs.susx.ac.uk/ccnr/Papers/Downloads/Harland_Cimb2000.pdf |access-date = 5 May 2011 |url-status = dead |archive-url = https://web.archive.org/web/20060928164131/http://www.cogs.susx.ac.uk/ccnr/Papers/Downloads/Harland_Cimb2000.pdf |archive-date = 28 September 2006 }}</ref> Tests show that ''[[Portia fimbriata]]'' and ''[[Portia labiata]]'' can use trial and error in an artificial environment, where the spider's objective is to cross a miniature [[lagoon]] that is too wide for a simple jump, and must either jump then swim or only swim.<ref name=JacksonEtc2006ConfineProb>{{cite journal | last=Jackson | first=Robert R. |author2=Fiona R. Cross |author3=Chris M. Carter | title=Geographic Variation in a Spider's Ability to Solve a Confinement Problem by Trial and Error | journal=International Journal of Comparative Psychology | year=2006 | volume=19 | issue=3 | pages=282–296 | doi=10.46867/IJCP.2006.19.03.06 | url=http://escholarship.org/uc/item/53c3x1w9;jsessionid=34833B994B69E2CA4DA97613EA34F531#page-1 | access-date=8 June 2011| doi-access=free}}</ref><ref name=JacksonEtc2001ConfinProb>{{cite journal | last=Jackson | first=Robert R. |author2=Chris M. Carter |author3=Michael S. Tarsitano | title=Trial-and-error solving of a confinement problem by a jumping spider, ''Portia fimbriata'' | journal=Behaviour | year=2001 | volume=138 | issue=10 | pages=1215–1234 | jstor=4535886| publisher=Koninklijke Brill | location=Leiden|issn=0005-7959 | doi=10.1163/15685390152822184}}</ref> ==See also== {{div col}} *[[Ariadne's thread (logic)]] *[[Brute-force attack]] *[[Brute-force search]] *[[Dictionary attack]] *[[Empiricism]] *[[Genetic algorithm]] *[[Learning curve]] *[[Margin of error]] *[[Regula falsi]] {{div col end}} ==References== {{Reflist|30em}} ==Further reading == *Ashby, W. R. (1960: Second Edition). ''Design for a Brain''. [[Chapman & Hall]]: London. *Traill, R.R. (1978–2006). ''Molecular explanation for intelligence…'', [[Brunel University|Brunel University Thesis]], [http://hdl.handle.net/2438/729 HDL.handle.net] *Traill, R.R. (2008). ''Thinking by Molecule, Synapse, or both? — From Piaget’s Schema, to the Selecting/Editing of ncRNA''. Ondwelle: Melbourne. [http://www.ondwelle.com/OSM02.pdf Ondwelle.com] — or French version [http://www.ondwelle.com/FrSM02.pdf Ondwelle.com.] *Zippelius, R. (1991). ''Die experimentierende Methode im Recht'' (Trial and error in Jurisprudence), Academy of Science, Mainz, {{ISBN|3-515-05901-6}} {{Authority control}} [[Category:Error]] [[Category:Heuristics]] [[Category:Learning methods]] [[Category:Problem solving methods]] [[Category:Philosophy of science]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Authority control
(
edit
)
Template:Cb
(
edit
)
Template:Cite journal
(
edit
)
Template:Cn
(
edit
)
Template:Div col
(
edit
)
Template:Div col end
(
edit
)
Template:ISBN
(
edit
)
Template:More citations needed
(
edit
)
Template:Other uses
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)