Wednesday 21 December 2011

ALGORITM AND FLOW CHART


ALGORITHM
The term algorithm may be formally defined as a sequence of precise and unambiguous instruction for solving a problem in a finite number of operations.An algorithm must possess the following characteristics.
  • Each and every instruction should be precise and unambiguous.
  • Each instruction should be effective.
  • One or more instruction should not repeated infinitely.
  • An algorithm may have zero or more inputs,which are externally supplied.
  • An algorithm must produce the desired output(s).

FLOWCHART
Flowchart is the pictorial representation of a data processing procedure. It make the use of geometrical symbols to denote different types of instructions. The actual instructions are written within these symbols using clear and concise statements..These symbols are connected by solid line s having arrow marks to indicate the flow of operation,i.e.,the exact sequence in which the instructions are to be executed.
Terminal start stop
Terminal symbol is used to indicate the beginning (start),ending(stop) and pauses(halt) in the program logic flow.
Input/Output Read Print
The input/output symbol is used to denote any function of an input/output device in the program.
Processing Processing
A processing symbol is used in a flowchart to represent arithmetic and data movement operations.
Flow lines
Floe lines with arrowheads are used to indicate the flow of operations.
Decisions
Is condition No
Yes
A decision symbol is used in floe chart to indicate a point at which a decision has to be made and a branch to one or more alternative points is possible.


Connector A A

Connecter symbols represent an entry from or an exit to another part of the flowchart.A connector symbol is represented by a curcle and a letter or digit is placed within the circle to indicate the link.

Predefined process Function name
The Predefined process symbol is used to show the execution of a function tha is elsewhere in the flowchart or on a separate flowchart.
Magnetic Disk
Access to a file stored
On a magnetic disk

The access to data file stored on a magnetic disk is represented by the following disk symbol.

No comments:

Post a Comment