Skip to content
Related Articles

Related Articles

Various Approaches of Partitioning

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 23 Apr, 2020

If the system is having hierarchical architecture, the program structure can easily be partitioned both horizontally and vertically, figure (a), represents this view.

In given figure (a), horizontal division defines the individual branches of the modular hierarchy for every major program function. Control modular (shown by rectangles) are used to coordinate communication between tasks. The three partitions are done in simple horizontal partitions i.e., input, data transformation (processing) and output.

The following benefits are provided by horizontal partitioning

  1. Software, that can easily be tested.
  2. Software, that can easily be maintained.
  3. Propagation of fewer side effects.
  4. Software, that can easily be extended.

On the other hand, vertical segmentation, also known as “factoring”, states that control and function must be distributed across the program structure, top to bottom. The top-level modules have to carry out control functions and perform fewer modules in the structure are laborious, performing all input, processing and output tasks.

Figure (b), represents vertical partitioning. Due to the nature of changes in program structures, vertical segmentation is required. Observing the figure (b), it can be said that a change in the control module would make its subordinates more likely to cause the spread of side effects. Generally, changes are- changes to input, computation or transformation, and output.

The basic behavior of the program is much less likely to change. That is why, vertically partitioned structures are less susceptible to side effects due to changes and thus be more maintainable, which is its key quality factor.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!