Skip to main content

3 docs tagged with "divide-and-conquer"

View all tags

Divide & Conquer

Divide and conquer breaks a problem into independent subproblems of the same kind, solves those

Mergesort

Mergesort splits the array in half, sorts each half recursively, and merges the two sorted halves

Quicksort

Quicksort picks an element as the pivot, rearranges the array so that everything smaller sits to