e01.org

Divide-and-conquer algorithm

In computer science, divide and conquer, originally a political maxim, designates an algorithm design paradigm. A divide-and-conquer algorithm recursively 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 sorting (e.g., quicksort, merge sort), multiplying large numbers (e.g., the Karatsuba algorithm), finding the closest pair of points, syntactic analysis (e.g., top-down parsers), SAT solving, and computing the discrete Fourier transform (FFT). Designing efficient divide-and-conquer algorithms can be difficult. As in mathematical induction, 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...

In computer science, divide and conquer, originally a political maxim, designates an algorithm design paradigm. A divide-and-conquer algorithm recursively 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 sorting (e.g., quicksort, merge sort), multiplying large numbers (e.g., the Karatsuba algorithm), finding the closest pair of points, syntactic analysis (e.g., top-down parsers), SAT solving, and computing the discrete Fourier transform (FFT). Designing efficient divide-and-conquer algorithms can be difficult. As in mathematical induction, 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 recurrence relations.

References

  1. ^ Nicholas J. Higham, " The accuracy of floating-point summation ", SIAM J. Scientific Computing 14 (4), 783–799 (1993). Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  2. ^ Radu Rugina and Martin Rinard, " Recursion unrolling for divide and conquer programs " in Languages and Compilers for Parallel Computing , chapter 3, pp. 34–48. Lecture Notes in Computer Science vol. 2017 (Berlin: Springer, 2001). Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  3. ^ Blahut, Richard (14 May 2014). Fast Algorithms for Signal Processing . Cambridge University Press. pp. 139– 143. ISBN 978-0-511-77637-3 . Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  4. ^ Brassard, G., and Bratley, P. Fundamental of Algorithmics, Prentice-Hall, 1996. Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  5. ^ Anany V. Levitin, Introduction to the Design and Analysis of Algorithms (Addison Wesley, 2002). Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  6. ^ Knuth, Donald (1998). The Art of Computer Programming: Volume 3 Sorting and Searching . Addison-Wesley. p. 159 . ISBN 0-201-89685-0 . Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  7. ^ Karatsuba, Anatolii A. ; Yuri P. Ofman (1962). "Умножение многозначных чисел на автоматах". Doklady Akademii Nauk SSSR . 146 : 293– 294. Translated in Karatsuba, A.; Ofman, Yu. (1963). "Multiplication of Multidigit Numbers on Automata" . Soviet Physics Doklady . 7 : 595– 596. Bibcode : 1963SPhD....7..595K . Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  8. ^ Heule, Marijn J. H. ; Kullmann, Oliver; Wieringa, Siert; Biere, Armin (2012), "Cube and Conquer: Guiding CDCL SAT Solvers by Lookaheads", Hardware and Software: Verification and Testing , Lecture Notes in Computer Science, vol. 7261, Springer Berlin Heidelberg, pp. 50– 65, doi : 10.1007/978-3-642-34188-5_8 , ISBN 978-3-642-34187-8 Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  9. ^ Thomas H. Cormen; Charles E. Leiserson; Ronald L. Rivest; Clifford Stein (31 July 2009). Introduction to Algorithms . MIT Press. ISBN 978-0-262-53305-8 . Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  10. ^ Heideman, M. T., D. H. Johnson, and C. S. Burrus, " Gauss and the history of the fast Fourier transform ", IEEE ASSP Magazine, 1, (4), 14–21 (1984). Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  11. ^ a b c Donald E. Knuth, The Art of Computer Programming: Volume 3, Sorting and Searching , second edition (Addison-Wesley, 1998). Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  12. ^ M. Frigo; C. E. Leiserson; H. Prokop (1999). "Cache-oblivious algorithms" . 40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039) . pp. 285– 297. doi : 10.1109/SFFCS.1999.814600 . ISBN 0-7695-0409-4 . S2CID 62758836 . Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  13. ^ a b Frigo, M.; Johnson, S. G. (February 2005). "The design and implementation of FFTW3" (PDF) . Proceedings of the IEEE . 93 (2): 216– 231. Bibcode : 2005IEEEP..93..216F . CiteSeerX 10.1.1.66.3097 . doi : 10.1109/JPROC.2004.840301 . S2CID 6644892 . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  14. ^ a b Kleinberg, Jon; Tardos, Eva (March 16, 2005). Algorithm Design (1 ed.). Pearson Education . pp. 214– 220. ISBN 9780321295354 . Retrieved 26 January 2025 . Wikipedia revision 1363143428, retrieved 2026-11-21 · 1795215600.0
  15. Introduction to Algorithms . · 1783465200.0
  16. Another ancient decrease-and-conquer algorithm is the Euclidean algorithm to compute the greatest common divisor of two numbers by reducing the numbers to smaller and smaller equivalent subpro . · 1783465200.0
  17. The Art of Computer Programming: Volume 3 Sorting and Searching . · 1783465200.0
  18. == Advantages == === Solving difficult problems === Divide and conquer is a powerful tool for solving conceptually difficult problems: all it requires is a way of breaking the problem into sub-problem . · 1783465200.0
  19. === Parallelism === Divide-and-conquer algorithms are naturally adapted for execution in Multiprocessing|multi-processor machines, especially shared-memory systems where the communication of d . · 1783465200.0
  20. Nicholas J. Higham, "[https://pdfs.semanticscholar.org/5c17/9d447a27c40a54b2bf8b1b2d6819e63c1a69.pdf The accuracy of floating-point summation]", SIAM J. Scientific Computing 14 (4), 783–799 . · 1783465200.0
  21. Frigo, M. The design and implementation of FFTW3 . · 1783465200.0
  22. The generalized version of this idea is known as recursion "unrolling" or "coarsening", and various techniques have been proposed for automating the procedure of enlarging the base case. Radu Rugina a . · 1783465200.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Divide-and-conquer algorithm". 1783495114. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1363143428

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·