Logic Development
Logic Development
Syllabus - 2 days
Flowcharts
Pseudo codes
Array 2d arrays
Insert delete op
Searching
Sorting
Cohesion and coupling
Start/end
Arrow
process
Decision
Connector
Modularity :
Design software by dividing into parts (sub problems / modules)
These arrangements are coupling and cohesion
~Low coupling
~High cohesion
logicDevlopment Page 1
Data coupling :
If modules are communicated by passing only data is called data coupled
Stamp coupling :
If ds(structure, objects) is passed to one module to another module then its stamp coupling
Control coupling :
Passing the control of module to another module then its control coupling
Examples:
Sort comparison
Control of sort();
External coupling :
Common coupling :
logicDevlopment Page 2
So if we change in global the effect will be seen modules.. (this can be its disadvantages)
Content coupling :
When a module try to change the data or flow of control of another module.
Cohesion :
Types of cohesion
Functional cohesion :
To execute any function in module if all necessary elements are present then its
Functional cohesion.
Sequential Cohesion:
If element's output in module becomes the input to the other elements within modules
Is called sequential cohesion
It can be seen in most of functional programming lang.
Communicational cohesion :
logicDevlopment Page 3
Communicational cohesion :
Procedural cohesion :
Temporal cohesion :
If the elements of modules are taking same time for executing is called
Temporal cohesion
Logical cohesion :
Coincidental cohesion :
logicDevlopment Page 4