Week 5 Flashcards
1
Q
Merge Sort and Quick Sort Big-O?
A
O(n log n)
2
Q
Selection Sort Big-O?
A
O(n^2)
3
Q
Popular techniques in problem solving?
A
– Greedy method – Dynamic Programming – Data compression – Backtracking – Branch and Bound
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)
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.