CS 162 Lecture Notes - Lecture 25: Polynomial, Selection Sort, Insertion Sort

53 views3 pages
CS 162 Lecture 25 Runtime Complexity
Runtime Complexity
o Algorithms take time to run
o Clock time varies
Can vary based on input
Can vary based on number and kind of steps
o Typically talk about runtime in an abstract sense
Big O
Worst case
Big omega
Best case
Big theta
Average case
Different Times
o O(1)
Constanst
o O(log n)
Logarithmic
o O(n)
Linear
o O(n log n)
n log n
o O(n^2)
Quadratic
o O(n^3)
Cubic
o N^(O(1))
Polynomial
o 2^(O(n))
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents