# hand2 - ··· + n = ( n-m + 1)( n + m ) 2 Geometric...

This preview shows pages 1–2. Sign up to view the full content.

CMSC 351:Spring 2011 Michelle Hugue CMSC351 Exam 2 Reference Asymptotic Notations. Θ( g ( n )) = { f ( n ): there exist positive constants c 1 , c 2 , and n 0 such that 0 c 1 g ( n ) f ( n ) c 2 g ( n ) for all n n 0 } . O ( g ( n )) = { f ( n ): there exist positive constants c and n 0 such that 0 f ( n ) cg ( n ) for all n n 0 } . Ω( g ( n )) = { f ( n ): there exist positive constants c and n 0 such that 0 cg ( n ) f ( n ) for all n n 0 } . f ( n ) = o ( g ( n )) if lim n →∞ f ( n ) g ( n ) = 0. f ( n ) = ω ( g ( n )) if lim n →∞ f ( n ) g ( n ) = . f ( n ) g ( n ) if f ( n ) = g ( n ) + o ( g ( n )). Logarithms. a = b log b a log c ( ab ) = log c a + log c b log b a n = n log b a log b a = log c a log c b log b (1 /a ) = - log b a log b a = 1 log a b a log b n = n log b a a f ( n ) = e f ( n ) ln a (log a f ( n )) 0 = f 0 ( n ) f ( n )ln a ( a f ( n ) ) 0 = ln af 0 ( n ) a f ( n ) Quadratic Formula. ax 2 + bx + c = 0 x = - b ± b 2 - 4 ac 2 a 1

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

View Full Document
Summations. Simple Arithmetic Series: n X k =1 k = 1 + 2 + ··· + n = n ( n + 1) 2 n X k =1 k 2 = 1 + 4 + ··· + n 2 = n ( n + 1)(2 n + 1) 6 n X k =1 k 3 = 1 + 8 + ··· + n 3 = n 2 ( n + 1) 2 4 General Arithmetic Series: n X k = m k = 1 + 2 +
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ··· + n = ( n-m + 1)( n + m ) 2 Geometric series: n X k =0 x k = 1 + x + + x 2 ··· + x n = x n +1-1 x-1 x 6 = 1 ∞ X k =0 x k = 1 1-x | x | < 1 Recurrences. “AMT: Ambitious Master Theorem”: T ( n ) = ± aT ( n/b ) + cn d n > 1 f n = 1 implies T ( n ) = ² f + c ab-d-1 ³ n log b a-( cn d ab-d-1 ) = ± Θ( n log b a ) a > b d Θ( n d ) a < b d n d ( f + c log b n ) = Θ( n d log b n ) a = b d . Miscelleneous. Stirling’s Approximation: n ! ≥ √ 2 πn ² n e ³ n 2...
View Full Document

## This note was uploaded on 01/13/2012 for the course CMSC 351 taught by Professor Staff during the Fall '11 term at University of Louisville.

### Page1 / 2

hand2 - ··· + n = ( n-m + 1)( n + m ) 2 Geometric...

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

View Full Document
Ask a homework question - tutors are online