Module 4 Flashcards

1
Q

In this type of approach, the problem is divided into smaller sub-problems and then solved independently.

A

Divide and Conquer

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

In this type of approach, once those “atomic” smallest possible sub-problem (fractions) are solved. The solution of all sub-problems is finally merged in order to obtain the solution of an original problem.

A

Divide and Conquer

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

What are the three steps in the Divide and Conquer process?

A
  • Divide/Break
  • Conquer/Solve
  • Merge/Combine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In this stage of the Divide and Conquer process, the problem is broken into smaller subproblems.

A

Divide/Break

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

In this stage of the Divide and Conquer process, a lot of smaller sub-problems to be solved. Generally, at this level, the problems are considered ‘solved’ on their own.

A

Conquer/Solve

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

This stage of the Divide and Conquer process recursively combines them until they form a solution of the original problem.

A

Merge/Combine

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

This type of sorting algorithm divides the array into equal halves and then combines them in a sorted manner.

A

Merge Sort

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

This sort keeps on dividing the list into equal halves until it can no more be divided. By definition, if it is only one element in the list, it is sorted. Then it combines the smaller sorted lists keeping the new list sorted too.

A

Merge Sort

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

What is the worst-case time complexity of merge sort?

A

Ο(n log n)

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

This is a highly efficient sorting algorithm and is based on
partitioning of array of data into smaller arrays.

A

Quick Sort

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

This type of sorting algorithm partitions an array and then calls itself recursively twice to sort the two resulting subarrays.

A

Quick Sort

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

What is the best/average case time complexity of the Quick Sort technique?

A

O(n log n)

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

What is the worst case time complexity of the Quick sort technique?

A

O(n^2)

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

What is the space complexity of the Quick sort technique?

A

O(log n)

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

This type of algorithm looks for a particular item by comparing the middle most item. Halves the search into subarrays depending on where it is and returns the index if it is a match.

A

Binary Search

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