Decomposition

When we are writing a program they often break the code into small chunks. We call this approach ‘decomposition‘ because you are ‘decomposing‘ or breaking down a large problem into smaller problems. Decomposition saves a lot of time: the code for a complex program could run to many lines of code.

Decomposition is one of the four cornerstones of Computer Science. It involves breaking down a complex problem or system into smaller parts that are more manageable and easier to understand. The smaller parts can then be examined and solved, or designed individually, as they are simpler to work with.