How can you measure efficiency
By the total number of executions of assignments
What is the time complexity of a linear search
O(n)
What is the time complexity of a binary search
O(log(n))
What is the time complexity of a bubble sort
O(n^2)
What is the time complexity of a merge sort
O(nlog(n))
What is a tractable problem
A problem that can be solved in a polynomial time or better
What does intractable mean
The problem cannot be solved within a reasonable amount of time. An example being O(2^n) or O(n!)
What is a heuristic approach
Technique that guides the algorithm into good choices.
It sacrifices accuracy in exchange for a solution within a reasonable time