Skip to main content
BookintermediateFree

Algorithms (Dasgupta, Papadimitriou, Vazirani) — Chapter 2: Divide-and-Conquer Algorithms

by Sanjoy Dasgupta, Christos Papadimitriou, Umesh Vazirani · UC Berkeley

Free author-hosted draft chapter from the Berkeley CS170 textbook. Defines the paradigm, then works through integer multiplication, recurrence relations and the master theorem, mergesort, median finding, matrix multiplication, and the fast Fourier transform, with exercises.

Visit resource

More resources on Divide and Conquer

CourseFree

Algorithms, Part I

This course covers the essential information that every serious programmer needs to know about algorithms and data structures, with emphasis on applications and scientific performance analysis of Java implementations. Part I covers elementary data structures, sorting, and searching algorithms. Part II focuses on graph- and string-processing algorithms. All the features of this course are available for free. People who are interested in digging deeper into the content may wish to obtain the textbook Algorithms, Fourth Edition (upon which the course is based) or visit the website algs4.cs.princeton.edu for a wealth of additional material. This course does not offer a certificate upon completion.

WebsiteFree

LeetCode

Online judge with thousands of algorithm and data-structure problems sorted by difficulty, topic and company, plus timed contests, discussion threads and study plans. Regular practice builds fluency with common interview problem patterns and writing correct, efficient code under time pressure.

WebsiteFree

GeeksforGeeks

Comprehensive Divide and Conquer tutorials and problems

CourseFree

Introduction to Algorithms (MIT 6.006)

Modeling computational problems and solving them with core algorithms and data structures: sorting, hashing, binary trees, heaps, graph search, shortest paths and dynamic programming. 32 lecture videos, notes, problem sets and exams with solutions teach asymptotic analysis and algorithm design.

VideoFree

MIT 6.046J Lecture 2: Divide & Conquer — Convex Hull, Median Finding

Srini Devadas's lecture from MIT's upper-level algorithms course. Applies divide and conquer to two harder problems: a merge-based convex hull algorithm and worst-case linear-time median finding by median of medians. Includes transcript and lecture notes. Next step after the introductory material: assumes mergesort-level familiarity and shows the paradigm on geometry and selection, where the combine step is the hard part.

BookFree

Algorithms by Jeff Erickson — Chapter 1: Recursion

Free 50-page chapter from Erickson's open textbook. Frames divide and conquer as reduction to smaller instances, with correctness by induction, then covers Towers of Hanoi, mergesort, quicksort, recursion trees, linear-time selection, Karatsuba multiplication, and exponentiation, plus many exercises. Differs from DPV chapter 2 in emphasis: it teaches how to think recursively and prove recursive algorithms correct (induction view), uses recursion trees rather than only the master theorem, and has a much larger exercise set.

See all Divide and Conquer resources →