DOC PREVIEW
ASU CSE 310 - L02

This preview shows page 1-2-3-4 out of 11 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CSE310 Lecture02: The Computing Model and Asymptotic NotationsTopics of this lectureRAM: Random Access MachineCounting Techniques and Proof by InductionBig Oh And Big Omega NotationsExamplesPropertiesTheta NotationProperties and Useful FunctionsSummaryReadings and [email protected] Lecture02:CSE310 Lecture02:The Computing Model and Asymptotic NotationsThe Computing Model and Asymptotic NotationsGuoliang (Larry) XueDepartment of CSEArizona State Universityhttp://optimization.asu.edu/[email protected] of this lectureTopics of this lectureThe RAMconstant access of memoryconstant time for basic operationsCounting and Four Important SummationsBig Oh, Big Omega, Theta Notationsdefinitionsexamples[email protected]: Random Access MachineRAM: Random Access MachineRAM stands for Random Access Machine, which is a very useful model of computation.basic instruction can be performed in one unit of time.running time is equivalent to the number of operations required.We will study function f(n) that is asymptotically positive, i.e., f(n)>0 for n large [email protected] Techniques and Proof by InductionCounting Techniques and Proof by Induction1+2+3+4+...+n=?12+22+32+...+n2=?1+1/2+1/4+1/8+...+(1/2)n=?1+1/2+1/3+1/4+...+1/[email protected] Oh And Big Omega NotationsBig Oh And Big Omega NotationsO(g(n)) = { f(n):  constants c and N s.t. f(n)  c-g(n) for n  N }. We also write f(n)=O(g(n)) when f(n) is a member of O(g(n)).(g(n)) = { f(n):  constants c and N s.t. f(n)  c-g(n) for n  N }. We also write f(n)= (g(n)) when f(n) is a member of (g(n)).O-notation is used to determine an upper bound on the order of growth of a function. -notation is used to determine a lower bound on the order of growth of a [email protected]If f(n) = 2n + 3, then f(n) = O(n).If f(n) = n4 + 100n, then f(n) = O(n4).If f(n) = 1 + 2 + ... + n, then f(n) = O(n2).If f(n) = 100n for even n and f(n) = n2 for odd n, then f(n) = O(n2). Also f(n) = (n).n is not O(n2).Demonstrate proof styles in [email protected]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))[email protected] NotationTheta Notation(g(n)) = { f(n):  positive constants c1, c2 and N s.t. c1-g(n)  f(n)  c2-g(n) for n  N }. We also write f(n)= (g(n)) when f(n) is a member of (g(n)).f(n)= (g(n)) iff f(n)=O(g(n)) and g(n)=O(f(n)).f(n)= (g(n)) iff f(n)= (g(n)) and g(n)= (f(n)).Proofs and [email protected] and Useful FunctionsProperties and Useful FunctionsProperties on pp. 51-52.Exercises on pp. 52-53.The ceiling and floor functions.Other functions on pp. 54—[email protected]The Random Access Machine.Big-Oh, Big-Omega, Theta notations.Properties and Commonly Used [email protected] and ExercisesReadings and ExercisesThe materials covered in this lecture can be found in Section 3.1, Section 3.2. You need to read both sections.Exercises 3.1-1 to 3.1-6.Exercises 3.2-1, 3.2-2, and 3.2-3 (first part), 3.2-8.Problems 3-1 to3-4.Lecture 03 will be on recurrence equations. To preview, read Sections 4.1 to


View Full Document

ASU CSE 310 - L02

Documents in this Course
Load more
Download L02
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view L02 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view L02 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?