Algoritmo
[[Ladawan:Euclid flowchart.svg|thumb|Sarong flowchart nin sarong algoritmo (algoritmo ni Euclid) para sa pagkalkula nin "pinakadakulang kaparehas na divisor" (g.c.d.) nin duwang numero na ''a'' asin ''b'' sa mga lokasyon na pigpangarang A asin B.]]
Sa [[matematika]] asin [[siyensyang pangkompyuter]], an '''algoritmo''' ([[Ingles]]: ''algorithm'') iyo sarong may kasagkorang sekwensya nin may marhay na kahulugan, mga instruksyon na maiimplenta sa kompyuter, tipikal para masimbagan an klase nin mga ispesipikong problema o para makagibo nin komputasyon.<ref>{{Cite web|url=https://mathvault.ca/math-glossary/#algo|title=The Definitive Glossary of Higher Mathematical Jargon — Algorithm|date=2019-08-01|website=Math Vault|language=en-US|url-status=live|archive-url=https://web.archive.org/web/20200228211953/https://mathvault.ca/math-glossary/#algo|archive-date=February 28, 2020|access-date=2019-11-14}}</ref><ref>{{Cite web|url=https://www.merriam-webster.com/dictionary/algorithm|title=Definition of ALGORITHM|work=Merriam-Webster Online Dictionary|language=en|access-date=2019-11-14|archive-url=https://web.archive.org/web/20200214074446/https://www.merriam-webster.com/dictionary/algorithm|archive-date=February 14, 2020|url-status=live}}</ref> An mga algoritmo iyo pirmi na may saro sanang kahulogan asin iyo nagagamit bilang mga ispesipikasyon para sa paggibo nin mga kalkulasyon, pagproseso nin mga datos, awtomatikong pagrason, asin iba pang mga kagibohan. Sa kontrasto, an heuristika iyo sarong teknik na ginagamit sa pagsimbag nin mga problema na minagamit nin mga praktikal na paagi asin/o nagkapirang mga estima para makahimo nin mga solusyon na maski ngani bakong optimal pero iyo tama sana sa nasambit na pangyayari.<ref>https://www.bioinformatics.org/wiki/Comparison_of_algorithms_and_heuristics#:~:text=An%20algorithm%20is%20a%20step,a%20guide%20for%20subsequent%20explorations.</ref> <ref>{{Cite web |title=Archive copy |url=https://www.enotes.com/homework-help/what-difference-between-an-algorithm-heuristic-298252 |access-date=2021-08-01 |archive-date=2021-08-17 |archive-url=https://web.archive.org/web/20210817232032/https://www.enotes.com/homework-help/what-difference-between-an-algorithm-heuristic-298252 |dead-url=yes }}</ref> 

Bilang sarong epektibong paagi, an algoritmo pwedeng maipahiling sa laog nin kasagkorang bilang nin espasyo asin oras,<ref>"Any classical mathematical algorithm, for example, can be described in a finite number of English words" (Rogers 1987:2).</ref> asin sa marhay na pormal na lenggwahe<ref>Well defined with respect to the agent that executes the algorithm: "There is a computing agent, usually human, which can react to the instructions and carry out the computations" (Rogers 1987:2).</ref> para sa pagkalkula nin sarong paggana (''function'').<ref>"an algorithm is a procedure for computing a ''function'' (with respect to some chosen notation for integers) ... this limitation (to numerical functions) results in no loss of generality", (Rogers 1987:1).</ref> Poon sa inisyal na istado asin sa inisyal na pigkaag "''input''" (siguro mayong laog),<ref>"An algorithm has [[zero]] or more inputs, i.e., [[Quantity|quantities]] which are given to it initially before the algorithm begins" (Knuth 1973:5).</ref> an mga instruksyon iyo nagpapaliwanag nin komputasyon, kun sain kapag pigpagana, nagpapadagos sa paagi nin kasagkorang<ref>"A procedure which has all the characteristics of an algorithm except that it possibly lacks finiteness may be called a 'computational method{{'"}} (Knuth 1973:5).</ref> bilang nin marhay na surunudang istado, na minahimo nin sarong pigluwas "''output''"<ref>"An algorithm has one or more outputs, i.e. quantities which have a specified relation to the inputs" (Knuth 1973:5).</ref> asin pigtatapos sa pinal na katapusang istado. An transisyon gikan sa sarong istado pasiring sa masunod iyo dae kinakaipohan na deterministiko; an ibang mga algoritmo, na bisto bilang mga purakang algoritmo (''randomized algorithm''), iyo minabali nin purakang pigkaag (''random input'').<ref>Whether or not a process with random interior processes (not including the input) is an algorithm is debatable. Rogers opines that: "a computation is carried out in a discrete stepwise fashion, without the use of continuous methods or analogue devices ... carried forward deterministically, without resort to random methods or devices, e.g., dice" (Rogers 1987:2).</ref>

==Panluwas na takod==
{{Commons category|Algorithms|Mga algoritmo}}
{{wikibooks|Algorithms}}
* {{springer|title=Algorithm|id=p/a011780}}
* {{curlie|Computers/Algorithms/|Algorithms}}
* {{MathWorld | urlname=Algorithm | title=Algorithm}}
* [https://www.nist.gov/dads/ Dictionary of Algorithms and Data Structures] – National Institute of Standards and Technology
; Mga repositoryo nin algoritmo
* [http://www.cs.sunysb.edu/~algorith/ The Stony Brook Algorithm Repository] – State University of New York at Stony Brook
* [http://calgo.acm.org/ Collected Algorithms of the ACM] – Association for Computing Machinery
* [http://www-cs-staff.stanford.edu/~knuth/sgb.html The Stanford GraphBase] {{Webarchive|url=https://web.archive.org/web/20151206222112/http://www-cs-staff.stanford.edu/%7Eknuth/sgb.html |date=2015-12-06 }} – Stanford University

== Toltolan ==
{{reflist|2}}
{{matematika-tamboan}}
[[Kategorya:Kompyuter]]
Sa matematika asin siyensyang pangkompyuter, an algoritmo (Ingles: algorithm) iyo sarong may kasagkorang sekwensya nin may marhay na kahulugan, mga instruksyon na maiimplenta sa kompyuter, tipikal para masimbagan an klase nin mga ispesipikong problema o para makagibo nin komputasyon. An mga algoritmo iyo pirmi na may saro sanang kahulogan asin iyo nagagamit bilang mga ispesipikasyon para sa paggibo nin mga kalkulasyon, pagproseso nin mga datos, awtomatikong pagrason, asin iba pang mga kagibohan. Sa kontrasto, an heuristika iyo sarong teknik na ginagamit sa pagsimbag nin mga problema na minagamit nin mga praktikal na paagi asin/o nagkapirang mga estima para makahimo nin mga solusyon na maski ngani bakong optimal pero iyo tama sana sa nasambit na pangyayari.https://www.bioinformatics.org/wiki/Comparison_of_algorithms_and_heuristics#:~:text=An%20algorithm%20is%20a%20step,a%20guide%20for%20subsequent%20explorations.  

Bilang sarong epektibong paagi, an algoritmo pwedeng maipahiling sa laog nin kasagkorang bilang nin espasyo asin oras,"Any classical mathematical algorithm, for example, can be described in a finite number of English words" (Rogers 1987:2). asin sa marhay na pormal na lenggwaheWell defined with respect to the agent that executes the algorithm: "There is a computing agent, usually human, which can react to the instructions and carry out the computations" (Rogers 1987:2). para sa pagkalkula nin sarong paggana (function)."an algorithm is a procedure for computing a function (with respect to some chosen notation for integers) ... this limitation (to numerical functions) results in no loss of generality", (Rogers 1987:1). Poon sa inisyal na istado asin sa inisyal na pigkaag "input" (siguro mayong laog),"An algorithm has zero or more inputs, i.e., quantities which are given to it initially before the algorithm begins" (Knuth 1973:5). an mga instruksyon iyo nagpapaliwanag nin komputasyon, kun sain kapag pigpagana, nagpapadagos sa paagi nin kasagkorang"A procedure which has all the characteristics of an algorithm except that it possibly lacks finiteness may be called a 'computational method (Knuth 1973:5). bilang nin marhay na surunudang istado, na minahimo nin sarong pigluwas "output""An algorithm has one or more outputs, i.e. quantities which have a specified relation to the inputs" (Knuth 1973:5). asin pigtatapos sa pinal na katapusang istado. An transisyon gikan sa sarong istado pasiring sa masunod iyo dae kinakaipohan na deterministiko; an ibang mga algoritmo, na bisto bilang mga purakang algoritmo (randomized algorithm), iyo minabali nin purakang pigkaag (random input).Whether or not a process with random interior processes (not including the input) is an algorithm is debatable. Rogers opines that: "a computation is carried out in a discrete stepwise fashion, without the use of continuous methods or analogue devices ... carried forward deterministically, without resort to random methods or devices, e.g., dice" (Rogers 1987:2).

Panluwas na takod

 
 
 
 Dictionary of Algorithms and Data Structures – National Institute of Standards and Technology
 Mga repositoryo nin algoritmo
 The Stony Brook Algorithm Repository – State University of New York at Stony Brook
 Collected Algorithms of the ACM – Association for Computing Machinery
 The Stanford GraphBase  – Stanford University

 Toltolan 

Kategorya:Kompyuter