Lesson 3: Computational Complexity
Outline:
- Questions?
- Recap: classes in Kotlin
- discuss classwork from Lesson 2
- example: Exercise 1
- Counting steps
- exact counting
- as a function
- practice: Exercises 2+3
- Big-O notation
- basics and intuition
- How to prep for Quiz 1
- Wrap-up
What’s next
Upcoming assessments:
- Assignment 1 is due tonight
- Quiz 1 will be next Monday and cover the following Quiz Learning Objectives:
- Core:
- KF 1: variables
- KF 2: conditional statements
- KF 3: loops
- KF 4: functions
- OO 1: objects
- TC 1: core complexity classes
- Advanced:
- KF 6: nested loops
- TC 2: complexity classes
- Core:
What you should do now:
- The readings (see below)
- Complete Parts B-D of Assignment 1 and submit it by tonight
- Read the description of Assignment 2
Reading assignment (to be completed by the next class):
Kotlin basics, cont’d and Big-O notation (from today):
Want more on Big-O and expressions like it? See these:
Kotlin collections (for next time):