In divide and conquer approach the problem is subdivided into smaller problems, and then the sub problems we solved one by one and then they are integrated at last.
Broadly, we can expand it into a three way process:
Divide/Break
It is the process of breaking the problems into the subproblems so that subproblems are solved independently
Conquer/Solve
Then the subproblems are solved one by one or in parallel
Merge/Combine
After solving all the subproblems we merge it into the single solution at last
Examples
The following computer algorithms are based on divide-and-conquer programming approach −
0 Comment(s)