Recursion Flashcards
1
Q
Define
Divide-and-Conquer Algorithms
A
Commonly used with recursion. Big problem is divided into two smaller problems, solve each one separately by dividing again. Continue until get to base case.
2
Q
Define
Merge Sort
A
Merges two already sorted arrays. O(NlogN), more efficient than simple sorting methods. But requires additional memory space equal to array sorting.