Detour: Divide-and-Conquer Algorithms
Learn the divide and conquer technique.
We'll cover the following
We’ll use the problem of sorting a list of integers as an example of a divide-and-conquer algorithm. We begin from the problem of merging, in which we want to combine two sorted lists and into a single sorted list (figure below). The Merge algorithm combines two sorted lists into a single sorted list in time by iteratively choosing the smallest remaining element in and and moving it to the growing sorted list.
Get hands-on with 1200+ tech skills courses.