rec01 - 6.006 Intro to Algorithms Recitation 01 February 2,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 6.006 Intro to Algorithms Recitation 01 February 2, 2011 Asymptotic analysis Asymptotic analysis or big O notation is a way of describing the growth of the runtime of an algorithm without without having to worry about different computers, compilers, or implementa- tions. For functions f ( n ) , g ( n ) , O ( g ( n )) is a class of functions such that f ( n ) O ( g ( n )) if there exist M,x such that | f ( n ) | M | g ( n ) | for all x > x . Similarly, f ( n ) ( g ( n )) if there exist M,x such that | f ( n ) | M | g ( n ) | for all x > x . If f ( n ) O ( g ( n )) and f ( n ) ( g ( n )) , then we write f ( n ) ( g ( n )) . x = ( x 2 ) M = ,x = (1) x = ( log x ) M = ,x = (2) x 3 = (2 x ) M = ,x = (3) 6.006 Intro to Algorithms Recitation 01 February 2, 2011 Python This class uses Python 2.6. Do not use Python 3. If youre not familiar with Python, there are numerous resources available on the Internet: Python tutorial: http://docs.python.org/tutorial/http://docs....
View Full Document

Page1 / 4

rec01 - 6.006 Intro to Algorithms Recitation 01 February 2,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online