Lecture 3 - Complexity Analysis Cont
Lecture 3 - Complexity Analysis Cont
By
Ritwik M
Based on the reference materials by Prof. Goodrich, OCW METU and Dr. Vidhya Balasubramanian
̶ Calling a method
̶ Comparing two numbers
̶ Indexing into an array
̶ Following an object reference
̶ Returning from a method
• 8(1)+5<=c(1)
• 8+5<=c
• c>=13
• Asymptotic Analysis
• Big Oh
• Rules for Big Oh
• Verification of Big Oh
• Examples
• Exercises
Sorting Algorithms