Save this video free

CS 238 Week 13 Lecture

James Andro-Vasko · 20:53 · Watch on YouTube

Part of University of Nevada, Las Vegas CS 238. See all 12 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

James Andro-Vasko introduces asymptotic complexity as a way to model how algorithm work grows with input size, comparing common classes such as constant, logarithmic, linear, n log n, quadratic, and exponential. He explains Big O as an upper bound and Big Theta as a tight bound, then applies those ideas to Python loops, list membership, set lookups, and a recursive function.

Key takeaways

Chapters

0:00 Input Size and Why Small-Input Runtimes Can Mislead
3:57 Comparing Logarithmic, Linear, n log n, and Quadratic Growth
6:42 Big O Upper Bounds, Big Theta Tight Bounds, and Dominant Terms
13:57 Estimating Python Loop, Membership, Set, and Recursive Runtimes

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Hello CS 238 class. Uh for just a week, we're going to be talking about asymptotic complexity, big O, big data analysis. Um basically this is sort of the um really kind of the method of really modeling run times of algorithms. So um we spend a lot of time on this topic when in our typical CS data structures courses. So this will be a little bit of a kind of a crash course on the fundamental ideas of how to analyze the run time efficiency of various algorithms. So in this talk, we'll discuss small n versus large n. So n typically represents the size of your input. So

0:50 basically what we're going to be talking about asymptotic complexity is how our program scales with respect to the input size. So you've done some programming in Python in one and two and you've had to sometimes write some code that would iterate through a list or perform some kind of a looping structure. So whenever we have repetition, looping, iterating through a list and so forth, that part of your code is scaling as in if the array is bigger or smaller, it will just iterate through it and it will scale to the size of the input. So n could be typically represented like the size of the array is what n could be thought of. So n will be that. And we'll kind of see how we have small and large n, how they kind of differ.

1:39 Then we go over big O and big theta. Those are the two kind of There's also big omega, but we'll stick to just We'll try to condense this a little bit and stick to big O and big theta. And of course, we have asymptotic complexity classes and looking at some

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, James Andro-Vasko.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.