Tuesday, August 26, 2008

Algorithm

Algorithm is a formula or set of steps for solving an exacting problem. To be an algorithm, a set of rules have to be clear-cut and have a clear stopping point. Algorithms can be uttered in any language, from any natural languages like English or French to programming languages like FORTRAN. We make use of algorithms day after day. For instance, a recipe for baking a cake is an algorithm. Nearly all programs, with the exception of some artificial intelligence applications, contain algorithms. Inventing elegant algorithms- algorithms that are easy and necessitate the fewest steps possible-is one of the principal challenges in programming.

No comments: