01 December 2012
ALGORITHM:In Mathematics/computer science, an algorithm is a step-by-step procedure for calculations. Algorithms are essential to the way computers process data. Many computer programs contain algorithms that detail the specific instructions a computer should perform (in a specific order) to carry out a specified task, such as calculating employees' paychecks or printing students' report cards.
SYNTAX:The basic principle here is word order, which is necessary to give a sentence both structure and meaning. The construction of a sentence or phrase is governed by the rules and prevailing principles applied within the syntax of any given natural language, as well as in languages used for computer programming.
An example of a syntactically incorrect sentence would be: Mice cheese eat. The correct form would be: Mice eat cheese. In computer programming, a syntax error would occur if rules of the particular programming language used are broken.