Chapter 3 Flashcards
How is time efficiency calculated?
We measure time efficiency by checking the amount of work an algorithm has to do in terms of the size of the problem.
How do we measure efficiency?
Using best cases (fewest comparisons) and worst cases (most comparisons).
What is O(n)?
The number of comparisons made of the order of n
What is the notation of a simplified analysis of an algorithm’s efficiency?
Big O Notation.
What exactly does Big O Notation do?
It gives us the algorithm’s complexity in terms of N.
What are the three types of measurements?
Worst-Case
Best-Case
Average-Case
Big O Notation uses Running Time Complexity.
What is the hierarchy of algorithms from least intense to most intense performance?
Least Intense
O(1)
O(logn)
O(n)
O(nlogn)
O(n^2)
O(2^n)
O(n!)
Most Intense
What algorithm has the task of putting a list of values into a specific order?
Sorting algorithm.