Week 5 Flashcards

1
Q

Merge Sort and Quick Sort Big-O?

A

O(n log n)

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

Selection Sort Big-O?

A

O(n^2)

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

Popular techniques in problem solving?

A
–  Greedy method
–  Dynamic Programming
–  Data compression
–  Backtracking
–  Branch and Bound
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A problem has?

A

A problem has:
– Universal solution
• all the possible solutions both right and wrong
– Feasible solution
• all possible correct solutions, but different levels of truth
– Objective function
• the function to measure the solution which is more correct (better)
– Optimal solution
• the most correct solution (best)

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

What is Dynamic Programming?

A

Dynamic Programming is a method of solving a problem that can be used if the solution of a problem can be viewed as a sequence of several decisions.

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