Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 Algorithm

2 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.

3 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.

4 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.

5 Algorithm


Download ppt "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."

Similar presentations


Ads by Google