If fn 100n for even n and fn n 2 for odd n then fn

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: 100n for even n and f(n) = n 2 for odd n, then f(n) = O(n2). Also f(n) = Ω (n). n is not O(n2). Demonstrate proof styles in class. 6 Guoliang.Xue@asu.edu Properties If f(n) = O(h(n)) and g(n) = O(h(n)), then f(n) +g(n)=O(h(n)). If f(n) = O(g(n)) and g(n) = O(h(n)), then f(n)=O(h(n)). If f(n) = O(g(n)) and c is a nonnegative constant, then c f(n) = O(g(n)). What can you say about Ω ? If f(n)=O(g(n)), then g(n)= Ω (f(n)). 7 Guoliang.Xue@asu.edu Theta Notation θ (g(n)) = { f(n): ∃ positive constants c1, c2 and N s.t. c1• g(...
View Full Document

Ask a homework question - tutors are online