Early Historical Examples
Binary search, a divide and conquer algorithm in which the original problem is successively broken down into single subproblems of roughly half the original size, has a long history. While a clear description of the algorithm on computers appeared in 1946 in an article by John Mauchly, the idea of using a sorted list of items to facilitate searching dates back at least as far as Babylonia in 200 BC. Another divide and conquer algorithm with a single subproblem is the Euclidean algorithm to compute the greatest common divisor of two numbers (by reducing the numbers to smaller and smaller equivalent subproblems), which dates to several centuries BC.
An early example of a divide-and-conquer algorithm with multiple subproblems is Gauss's 1805 description of what is now called the Cooley-Tukey fast Fourier transform (FFT) algorithm, although he did not analyze its operation count quantitatively and FFTs did not become widespread until they were rediscovered over a century later.
An early two-subproblem D&C algorithm that was specifically developed for computers and properly analyzed is the merge sort algorithm, invented by John von Neumann in 1945.
Another notable example is the algorithm invented by Anatolii A. Karatsuba in 1960 that could multiply two n-digit numbers in operations (in Big O notation). This algorithm disproved Andrey Kolmogorov's 1956 conjecture that operations would be required for that task.
As another example of a divide and conquer algorithm that did not originally involve computers, Knuth gives the method a post office typically uses to route mail: letters are sorted into separate bags for different geographical areas, each of these bags is itself sorted into batches for smaller sub-regions, and so on until they are delivered. This is related to a radix sort, described for punch-card sorting machines as early as 1929.
Read more about this topic: Divide And Conquer Algorithm
Famous quotes containing the words early, historical and/or examples:
“The girl must early be impressed with the idea that she is to be a hand, not a mouth; a worker, and not a drone, in the great hive of human activity. Like the boy, she must be taught to look forward to a life of self-dependence, and early prepare herself for some trade or profession.”
—Elizabeth Cady Stanton (18151902)
“It is hard to believe that England is so near as from your letters it appears; and that this identical piece of paper has lately come all the way from there hither, begrimed with the English dust which made you hesitate to use it; from England, which is only historical fairyland to me, to America, which I have put my spade into, and about which there is no doubt.”
—Henry David Thoreau (18171862)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)