Friday, January 1, 2010

Algorithm Introduction

Why are we need algorithm? Algorithm constitutes a working out steps in troubleshoots( problem solving ).Indigenous algorithm says algorism
In programming area, 
algorithm is instruction bulk / instruction / stage that gets until amount the, set down systematically, and is utilized to troubleshoot / logic and mathematics problem with computer's help .

Stipulate good algorithm:
1.      Stage / its correct method
2.      Resulting output that right
3.      Written to utilize default language and with perspicuous format
4.      Operate for defined markedly
5.      All process shall end (there is while for stop).
Algorithm representation can with text— utilizing given lingual structure( pseudocode ) —or with picture— for example flowchart programs , flow's data diagram, chart's diagram , etc. .

Example:
Algorithm to look for far ranging length square
a.       Algorithm is with structured language
1.      Insert tall and elongated
2.      Multiply long with high
3.      Write its result
b.      Algorithm with pseudocode
Input (t,p )
L= p * t
Output (L )
c.      Algorithm is with flowchart programs

No comments:

Post a Comment