β Divide & Conquer
Last updated
Last updated
In , divide and conquer is an . A divide-and-conquer breaks down a problem into two or more sub-problems of the same or related type, until these become simple enough to be solved directly. The solutions to the sub-problems are then combined to give a solution to the original problem
The divide-and-conquer technique is the basis of efficient algorithms for many problems, such as (e.g., , ), (e.g., the ), finding the , (e.g., ), and computing the ().
Designing efficient divide-and-conquer algorithms can be difficult. As in , it is often necessary to generalize the problem to make it amenable to a recursive solution. The correctness of a divide-and-conquer algorithm is usually proved by mathematical induction, and its computational cost is often determined by solving .
Related
, Transform and Conquer
(introduces Karatsuba & Multiplication)