Anytime algorithm: Difference between revisions

Content deleted Content added
DumZiBoT (talk | contribs)
m Bot: Converting bare references, using ref names to avoid duplicates, see FAQ
Altered title. Added journal. | Use this tool. Report bugs. | #UCB_Gadget
 
(57 intermediate revisions by 46 users not shown)
Line 1:
{{short description|Algorithm that can return a valid solution to a problem even if interrupted}}
{{disputed}}
In [[computer science]], an '''anytime algorithm''' is an [[algorithm]] that can return a valid solution to a [[Computational problem|problem]] even if it is interrupted before it ends. The algorithm is expected to find better and better solutions the longer it keeps running.
== Introduction ==
 
Most [[algorithm]]salgorithms run to completion: they provide a single answer after performing some fixed amount of computation. In some cases, however, the user may wish to terminate the algorithm prior to completion. The amount of the computation required may be substantial, for example, and computational resources might need to be reallocated. Most algorithms either run to completion or they provide no useful solution information. Anytime algorithms, however, are able to return a partial answer, whose quality depends on the amount of computation they were able to perform. The answer generated by anytime algorithms is an approximation of the correct answer. This feature of anytime algorithms is modeled by such a theoretical construction as limit Turing machine (Burgin, 1992; 2005). A limit Turing machine provides a sequence of partial results that converge in a given topology to the final result.
 
==Names==
An anytime algorithm may be also called an "interruptible algorithm". They are different from contactcontract algorithms, which must declare a time in advance; in an anytime algorithm, a process can just announce that it is terminating.<ref name="Hendler">Hendler,{{cite book |editor-first=James A., ''|editor-last=Hendler |title=Artificial Intelligence Planning Systems'',: Proceedings of the First Conference (AIPS 92) |publisher=Elsevier |orig-date=1992 |date=2014 |isbn=978-0-08-049944-4 |url={{GBurl|tgujBQAAQBAJ|pg=PR5}}}}</ref>
 
== Goals ==
The goal of anytime algorithms are to give [[Hybrid intelligent system|intelligent systems]] the ability to make results of better quality in return for turn-around time .<ref name="Zilberstein">{{harvnb|Zilberstein, Shlomo. "Using Anytime Algorithms in Intelligent Systems". http://anytime.cs.umass.edu/shlomo/papers/aimag96.pdf|1996}}</ref>. They are also supposed to be flexible in time and resources.<ref name="Grass">Grass,{{cite Joshuajournal |first=J. |last=Grass |title= "Reasoning about [[Computationalcomputational resource allocation|Computationaljournal=XRDS: Resource]]Crossroads, Allocation."the http://www.acmACM Magazine for Students |volume=3 |issue=1 |pages=16–20 |date=1996 |doi=10.org1145/crossroads/xrds3-1/racra332148.html332154 |s2cid=45448244 |doi-access=free }}</ref> They are important because [[artificial intelligence]] or AI algorithms can take a long time to complete results. This algorithm is designed to complete in a shorter amount of time.<ref name="Grass"/> Also, these are intended to have a better understanding that the system is dependent and restricted to its agents and how they work cooperatively.<ref name="Grass"/> An example is the is [[Newton-RaphsonNewton–Raphson]] iteration applied to finding the square root of a number.<ref name="FOLDOC">[http://foldoc.org/?anytime+algorithm anytime algorithm from FOLDOC<!--Free BotOnline generatedDictionary titleof -->Computing (FOLDOC)]</ref> Another example that uses anytime algorithms is trajectory problems when you're aiming for a target; the object is moving through space while waiting for the algorithm to finish and even an approximate answer can significantly improve its accuracy if given early.<ref name="Grass"/>
 
What makes anytime algorithms unique is their ability to return many possible outcomes for any given outputinput.<ref name="Zilberstein"/> An anytime algorithm uses many well defined quality measures to monitor progress in [[problem solving]] and [[distributingdistributed computing]] resources.<ref name="Zilberstein"/> It keeps searching for the best possible answer with the amount of time that it is given.<ref name="umich">[{{cite web|title=Anytime algorithms|url=http://ai.eecs.umich.edu/cogarch2/index.html|website=Cognitive architectures|publisher=University of Michigan Artificial Intelligence Laboratory|archiveurl=https://web.archive.org/web/20131213011435/http://ai.eecs.umich.edu/cogarch2/cap/anytime.plan|archivedate=13 AnytimeDecember algorithm<!-- Bot generated title -->]2013}}</ref> It may not run until completion and may improve the answer if it is allowed to run longer.<ref name="elook">[{{cite web|title=Anytime algorithm - Computing Reference|url=http://www.elook.org/computing/anytime-algorithm.htm Anytime algorithm - Computing Reference - |website=eLook.org<!-|archiveurl=https://web.archive.org/web/20131212094200/http://www.elook.org/computing/anytime-algorithm.htm|archivedate=12 Bot generatedDecember title -->]2013}}</ref>
This is often used for large decision set problems.<ref name="Horsch"/> This would generally not provide useful information unless it is allowed to finish.<ref name="Bender">Bender,{{cite book |first=Edward A. ''|last=Bender |title=Mathematical Methods In Artificial Intelligence'', [[IEEE|publisher=Wiley Computer|date=1996 Society]]|isbn=978-0-8186-7200-2 Pres, 1996}}</ref> While this may sound similar to [[dynamic programming]], the difference is that it is fine-tuned through random adjustments, rather than sequential.
 
Anytime algorithms are designed toso bethat predictable.<refit name="Grass"/>can Anotherbe goaltold isto thatstop someoneat canany interrupttime theand processwould andreturn the algorithmbest wouldresult giveit itshas mostfound accurateso resultfar.<ref name="Grass"/> This is why it is called an interruptible algorithm. Another goal ofCertain anytime algorithms are toalso maintain the last result, so asthat if they are given more time, they can continue calculatingfrom awhere morethey left off to obtain an even accuratebetter result.<ref name="Grass"/>
 
== ConstructionDecision trees ==
When the decider has to act, there must be some ambiguity. Also, there must be some idea about how to solve this ambiguity. This idea must be translatable to a state to action diagram.<ref name="Horsch">{{harvnb|Horsch, Michael C., |Poole, David "An Anytime Algorithm for Decision Making under Uncertainty" http://www.cs.ubc.ca/spider/poole/papers/randaccref.pdf|1998}}</ref>
Make an algorithm with a parameter that influences [[Analysis of algorithms|running time]]. For example, as time increases, this variable also increases. After for a period of time, the search is stopped without having the goal met. This is similar to Jeopardy when the time runs out.<ref name="Bender"/> The contestants have to represent what they believe is the closest answer, although they may not know it or come even close to figuring out what it could be. This is similar to an hour long test. Although the test questions are not in themselves limiting for time, the test must be completed within the hour. Likewise, the computer has to figure out how much time and resources to spend on each problem.<ref name="Bender"/>
 
== DecisionPerformance Treesprofile ==
The performance profile estimates the quality of the results based on the input and the amount of time that is allotted to the algorithm.<ref name="Grass"/> The better the estimate, the sooner the result would be found.<ref name="Grass"/> Some systems have a larger database that gives the probability that the output is the expected output.<ref name="Grass"/> It is important to note that one algorithm can have several performance profiles.<ref name="Teije">{{cite conference |last1=Teije, Annette|first1=A.T. ten,|last2=van Harmelen, Frank|first2=F. "|title=Describing Problemproblem Solvingsolving Methodsmethods using Anytimeanytime Performanceperformance Profiles"profiles |book-title=Proceedings of the 14th European Conference on Artificial Intelligence |publisher= |___location= |date=2000 |isbn= |pages=181–5 |url=https://core.ac.uk/download/pdf/43408018.pdf }}</ref> Most of the time performance profiles are constructed using [[mathematical statistics]] using representative cases. For example, in the [[Travelling salesman problem|traveling salesman]] problem, the performance profile was generated using a user-defined special program to generate the necessary statistics.<ref name="Hendler"/> In this example, the performance profile is the mapping of time to the expected results.<ref name="Hendler"/> This quality can be measured in several ways:
When the decider has to act, there must be some ambiguity. Also, there must be some idea about how to solve this ambiguity. This idea must be translatable to a state to action diagram.<ref name="Horsch">Horsch, Michael C., Poole, David "An Anytime Algorithm for Decision Making under Uncertainty" http://www.cs.ubc.ca/spider/poole/papers/randaccref.pdf</ref>
 
== Performance Profile ==
The performance profile estimates the quality of the results based on the input and the amount of time that is allotted to the algorithm.<ref name="Grass"/> The better the estimate, the sooner the result would be found.<ref name="Grass"/> Some systems have a larger database that gives the probability that the output is the expected output.<ref name="Grass"/> It is important to note that one algorithm can have several performance profiles.<ref name="Teije">Teije, Annette ten, Harmelen, Frank. "Describing Problem Solving Methods using Anytime Performance Profiles".</ref> Most of the time performance profiles are constructed using [[mathematical statistics]] using representative cases. For example in the [[Travelling salesman problem|traveling salesman]] problem, the performance profile was generated using a user-defined special program to generate the necessary statistics.<ref name="Hendler"/> In this example, the performance profile is the mapping of time to the expected results.<ref name="Hendler"/> This quality can be measured in several ways:
 
*certainty: where probability of correctness determines quality<ref name="Hendler"/>
Line 26 ⟶ 25:
*specificity: where the amount of particulars determine quality<ref name="Hendler"/>
 
==Algorithm Prerequisitesprerequisites==
Initial behavior: While some algorithms start with immediate guesses, others take a more calculated approach and have a start up period before making any guesses.<ref name="Teije"/>
 
Line 35 ⟶ 34:
==References==
{{reflist}}
*Anytime Algorithm http://tarono.wordpress.com/2007/03/20/anytime-algorithm
*http://www.acm.org/crossroads/xrds3-1/racra.html
 
== Further reading ==
{{refbegin}}
*{{cite conference |last1=Boddy |first1=M. |last2=Dean |first2=T. |title=Solving time-dependent planning problems |book-title=Proceedings of the 11th international joint conference on Artificial intelligence |volume=2 |date=1989 |isbn= |pages=979–984 |url=https://dl.acm.org/doi/abs/10.5555/1623891.1623912 |id=Brown University CS-89-03}}
* {{cite journal |last1=Grass |first1=J. |last2=Zilberstein |first2=S. |title=Anytime Algorithm Development Tools |journal=ACM SIGART Bulletin |volume=7 |issue=2 Special Issue on Anytime Algorithms and Deliberation Scheduling |pages= 20–27|date=1996 |doi=10.1145/242587.242592 |s2cid=7670055 |url=https://dl.acm.org/doi/abs/10.1145/242587.242592|url-access=subscription }}
* {{cite conference |arxiv=1301.7384 |last1=Horsch |first1=M.C. |last2=Poole |first2=D. |title=An anytime algorithm for decision making under uncertainty |book-title=Proceedings of the Fourteenth conference on Uncertainty in artificial intelligence |date=1998 |isbn=978-1-55860-555-8 |pages=246–255 |url=http://www.cs.ubc.ca/spider/poole/papers/randaccref.pdf}}
* {{cite tech report |first=E.J. |last=Horvitz. ''|title=Reasoning about inference tradeoffs in a world of bounded resources''. Technical Report KSL-86-55, |publisher=Medical Computer Science Group, Section on Medical Informatics, Stanford University, Stanford, CA,|id=KSL-86-55 |date=March 1986 |url=}}
* {{cite journal |last1=Wallace |first1=R. |last2=Freuder |first2=E. |title=Anytime Algorithms for Constraint Satisfaction and SAT Problems |journal= ACM SIGART Bulletin |volume=7 |issue=2 |pages=7–10 |date=1995 |doi=10.1145/242587.242589 |s2cid=8250394 |doi-access=free }}
* Zilberstein,{{cite thesis |first=S. 1993.|last=Zilberstein ''|title=Operational Rationality through Compilation of Anytime Algorithms''. Ph.D. diss., |publisher=Computer Science Division, University of California at Berkeley |type=PhD |date=1993 |url=https://dl.acm.org/doi/abs/10.5555/193131 |id=UMX GAX94-08166}}
*{{cite journal |first=Shlomo |last=Zilberstein |title=Using Anytime Algorithms in Intelligent Systems |journal=AI Magazine |volume=17 |issue=3 |pages=73–83 |date=1996 |doi= |url=http://rbr.cs.umass.edu/shlomo/papers/Zaimag96.pdf}}
{{refend}}
 
{{DEFAULTSORT:Anytime Algorithm}}
* Boddy, M, Dean, T. 1989. ''Solving Time-Dependent Planning Problems''. Technical Report: CS-89-03, Brown University
[[Category:Artificial intelligence engineering]]
* Burgin, M. Multiple computations and Kolmogorov complexity for such processes, ''Notices of the Academy of Sciences of the USSR'', 1983, v. 27, No. 2 , pp. 793-797
[[Category:Search algorithms]]
* Burgin M., Universal limit Turing machines, ''Notices of the Russian Academy of Sciences'', 325, No. 4, (1992), 654-658
* Burgin, M. ''Super-recursive algorithms'', Monographs in computer science, Springer, 2005
* Grass, J., and Zilberstein, S. 1996. Anytime Algorithm Development Tools. ''SIGART Bulletin'' (Special Issue on Anytime Algorithms and Deliberation Scheduling) 7(2)
* Michael C. Horsch and David Poole, An Anytime Algorithm for Decision Making under Uncertainty, In Proc. 14th Conference on Uncertainty in Artificial Intelligence (UAI-98), Madison, Wisconsin, USA, July 1998, pages 246-255.
* E.J. Horvitz. ''Reasoning about inference tradeoffs in a world of bounded resources''. Technical Report KSL-86-55, Medical Computer Science Group, Section on Medical Informatics, Stanford University, Stanford, CA, March 1986
* Wallace, R., and Freuder, E. 1995. Anytime Algorithms for Constraint Satisfaction and SAT Problems. Paper presented at the IJCAI-95 Workshop on Anytime Algorithms and Deliberation Scheduling, 20 August, Montreal, Canada.
* Zilberstein, S. 1993. ''Operational Rationality through Compilation of Anytime Algorithms''. Ph.D. diss., Computer Science Division, University of California at Berkeley.
* Shlomo Zilberstein, Using Anytime Algorithms in Intelligent Systems, ''AI Magazine'', 17(3):73-83, 1996
 
 
[[Category:Artificial intelligence]]