algorithm list of instructions for carrying out some process step by step. a sequence of...

18
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with a finite amount of effort in a finite length of time. Is a list of instructions for carrying out some process step by step.

Upload: leo-chase

Post on 17-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

ALGORITHMList of instructions for carrying out some

process step by step.A sequence of instructions which has a clear

meaning and can performed with a finite amount of effort in a finite length of time.

Is a list of instructions for carrying out some process step by step.

Page 2: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

History of AlgorithmThe word algorithm comes from the name of

the 9th century mathematician ABU ABDULLAH MUHAMMAD IBN MUSA ALKWARIZMI.

ALOGORISM – referred only to the rules of performing arithmetic using hindu-arabic numerals from the European Latin Translations of AL-Kwarizmi’s name into ALGORITHM by the 18th century.

Page 3: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

EXPRESSIONS OF ALGORITHM1. Natural Languages

- rarely used for complex or technical algorithm.

2. Pseudocode and Flowchart- are structured way to express algorithm

3. Programming Languages- are primarily intended for expressing algorithms in a form that can be executed by a computer.

Page 4: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

PROBLEM SOLVING CONCEPT

Page 5: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

1. Identify the problem2. Understand the problem3. Identify alternative ways to solve the

problem4. Select the best solutions from the

alternatives5. List of instructions that enable you to

solve the problem by the selected method

6. Evaluate the solution

The problem steps:

Page 6: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

Program Development Cycle

Problem Analysis

Program Design

Program Coding

Testing and Debugging

Documentation

Maintenance

Page 7: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with
Page 8: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

FLOWCHARTIt is a diagram representing the logical

sequence in which a combination of steps or operations is to be performed.

It is consists of labeled geometrical symbols that are interconnected to provide pictorial representation of a data processing procedure.

A flowchart is actually a visual representation of an algorithm.

Page 9: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

INPUT/OUTPUT SYMBOL(PARALLELOGRAM)

The input/output

symbol represents an

instruction to an input or an

output device.

Page 10: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

PROCESSING SYMBOL(RECTANGLE)

This symbol is used to represent a group of program instructions

that performs a processing function of the program such as

to perform arithmetic operations, or to compare, sort

etc.

Page 11: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

DECISION SYMBOL(DIAMOND)

This diamond-shape box denotes a

point in the program

where more than one path can be taken.

It is used to document points in the program where, based upon variable conditions, a branch to alternative paths is possible. The particular path that is chosen depends on the answer to a question or the result of a test which is inserted in the symbol.

Page 12: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

PREPARATION SYMBOL(HEXAGON)

This symbol is used to represent an instruction or group of instructions

that will alter, or modify a program’s course of

execution. It is commonly used to specify operations

such as control, index registers, initialization,

setting, and in indicating switch loops.

Page 13: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

TERMINAL SYMBOL(OVAL)

The terminal symbol is used to designate the beginning and the

end of a program, or a point of interruption. It can also be used elsewhere in the flowchart for

specifying error conditions , such as parity error checks or

detection of invalid characters.

Page 14: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

PREDEFINED PROCESS SYMBOL(RECTANGLE WITH TWO VERTICAL BARS)

This symbol is a specialized process symbol that

represents a named operation or programmed step not explicitly detailed in the

program flow. As a subroutine, it can be used when a procedure needs to be

repeated several times. Rather than write the instructions for the procedure each time it is

needed, the predefined process symbol is used.

Page 15: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

ON PAGE CONNECTOR(SMALL CIRCLE)

This is a non- processing

symbol which is used to connect

one part of a flowchart to

another without drawing flow

lines.

Page 16: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

FLOW DIRECTION INDICATORS(ARROWHEADS)

Arrowheads are used to show the direction of processing or data flow. These are added to flow lines if a flowchart appears confusing in its layout.

Page 17: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

OFF-PAGE CONNECTOR(SMALL PENTAGON)

This type of connector is used instead of the on-page

connector to designate entry to or exit from a page when a flowchart requires

more that one page.

Page 18: ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with

FLOW LINES(VERTICAL/HORIZONTAL LINE)

Flow lines are used to show reading order or sequence in which flowchart symbols are to be read.