60 likes | 198 Views
Algorithm. Algorithm. An algorithm is a procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed.
E N D
Algorithm • An algorithm is a procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed. • An algorithm is merely the sequence of steps taken to solve a problem. The steps are normally "sequence," "selection, " "iteration," and a case-type statement. • In C, "sequence statements" are imperatives. • The "selection" is the "if then else" statement, and the iteration is satisfied by a number of statements, such as the "while," " do," and the "for," while the case-type statement is satisfied by the "switch" statement.
Algorithm • An algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem. • The word derives from the name of the mathematician, Mohammed ibn-Musa al-Khwarizmi. • A computer program can be viewed as an elaborate algorithm. • In mathematics and computer science, an algorithm usually means a small procedure that solves a recurrent problem.
Algorithm • An algorithm is a specific set of instructions for carrying out a procedure or solving a problem. • Specific algorithms sometimes also go by the name method, procedure, or technique. • The process of applying an algorithm to an input to obtain an output is called a computation.