WIPIVERSE All articles

Decomposition (computer science)

In computer science, decomposition is the process of identifying and organising a complex system into smaller components or layers of abstraction. It is the opposite process of composition and is a foundational concept in computational thinking, alongside abstraction, pattern recognition, and algorithmic thinking.

Purpose and Goals

Decomposition is used to manage complexity by breaking down large problems or systems into smaller, more manageable subproblems or parts. This approach simplifies analysis, design, and implementation. Typically, the aim of using a decomposition paradigm is to optimise metrics related to program complexity, such as modularity or maintainability. Most decomposition paradigms suggest breaking down a program into parts to minimise static dependencies between those parts and to maximise each part's cohesiveness.

Types of Decomposition

Functional decomposition is a technique for describing the complexity of the function of a model, describing an overarching function model as the summation of the series of functional models of subsystems.

Object-oriented decomposition breaks a large system down into progressively smaller classes or objects and is often regarded as the first step in the object-oriented programming (OOP) design process.

Algorithmic decomposition breaks a process down into well-defined steps and is used largely in structured programming.

Structured analysis decomposition breaks down a software system from the system context level to system functions and data entities.

Decomposition Paradigms

A decomposition paradigm in software engineering is a strategy for organising a program as a number of parts, usually implying a specific way to organise source code. Popular decomposition paradigms include the procedural, modular, abstract data type, and object-oriented paradigms.

Decomposition Diagram

A decomposition diagram shows a complex process, organisation, data subject area, or other type of object broken down into lower-level, more detailed components. For example, decomposition diagrams may represent organisational structure or functional decomposition into processes. These diagrams provide a logical hierarchical decomposition of a system.

Applications

Decomposition is widely used in software engineering, algorithm design (e.g., merge sort, which recursively divides an array into smaller parts), machine learning, and system analysis. It is a core problem-solving technique taught in computer science education at all levels, from introductory programming to advanced software architecture.

Browse

More topics to explore

    Browse all articles