DS-Unit I
DS-Unit I
John Brown
Tom Jones
Alan Smith
Mary Reed
M. Singh
P. Mathur
Dept.
1 2 3 4
Store
1 Jones 3, 6
2 Ray 2, 4, 7, 9
3 Smith 1, 5, 8
Customer Link Sales Persons Pointer
5 Jones 3 1
1 Adams
4 Ray 2 2
2 Brown
3 Clark 6 Smith 1 3
4 Drew 7
5 Evans 8
6 Farmer 0
7 Geller 9
8 Hill 0
9 Infeld 0
Algorithm: It is a finite step-by –step list of well defined instruction for solving the particular problem
•Identifying number
•Step, control, exit
•Comments
•Variable names
•Assignment statement
•Input Output
•Control structures
•Sequence logic or sequential flow
Algorithm flow chart equivalent
.
.
Module A Module A
.
.
Module B Module B
.
.
Module C Module C
Fig.Sequnece logic
•Multiple alternative
If condition, then:
[Module A1]
Else: If condition(1), then:
[Module A2]
Else: If condition(2), then:
[Module A3]
Else: [Module B]
[End of If structure.]