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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly