I can come up with many examples. For example, performance.
Imagine a tree in real life. It has a stem and the stem has 3 branches. Each of these inner branches has 3 outer branches. Thus, it has 9 outer branches.
One of the three inner branches is dead, and then its 3 outer branches also disappeared.
Now you want to cut all dead branches. The tree has 13 branches (1 stem 3 internal and 9 external). You must look at them all individually to determine if you want to cut them or not. No
Now imagine that there is a robot that wants to cut all dead branches. In his cuts of software, he looks at the stalk. He is dead? No. Then he looks at the first inner branch, is she dead? Yes! Then he will cut off this branch and at the same time its outer branches will be cut.
Instead of making 13 options, you need to do only 10. (Stock, 2 healthy internal branches, 6 of their external branches and a diseased internal branch)
source share