|
|
|
|
|
Watch and listen as Sarah Bryslinsky, the Assistant Director of Cornell’s Sustainability Office, gives us her top 3 tips for becoming more sustainable heading into the winter months. Watch…
|
|
It looks like quicksort has solved our performance problems. However, we should not be so hasty. In this video, we look at the real performance for quicksort, and why it is not perfect. We also talk…
|
|
In the previous video we saw that insertion sort is not an ideal sorting algorithm. In this video we try our hand at another algorithm: selection sort. This is another simple algorithm that may be…
|
|
Through the course, we have only cared about specifications, and not performance. But as we see in this video, sorting is an application where performance really matters. Little changes to the size…
|
|
In this video we introduce insertion sort, which is one of the simplest sorting algorithms to understand. If you have ever sorted cards in your hand it is likely that you have used this sorting…
|
|
In this video, we look at the different ways we can search a list for an element. In doing so, we see that it helps a lot for our lists to be sorted. Hence that will be our focus for the rest of this…
|
|
In this presentation we will review, generators which lead into the last major topic of the course (coroutines). Once again, this will involve a lot of visualization.We also start off this…
|
|
This video is not optional because the material is advanced. It is optional because this video series has run long and this topic is less important for you to know. When we are done with out…
|
|
In this video we talk about two very famous generators: map and filter. We show how to use these to replace writing code with a for-loop.
|
|
Now that we know how generators work, it is time to write our own. In this video we show how easy it is. We just take out experience with the accumulator pattern and replace the accumulator with a…
|
|
In this video, we show how to make our own iterable and iterator classes. These are actually tightly linked, and you need one to create the other.
|
|
We are familiar with iterables, types that we can use in a for-loop. In this video we introduce the iterator. This is a type that can be used in a for-loop, but we can also manually step through the…
|
|
In this video we show that the one place we typically prefer while-loops is when we are modifying a list or other mutable iterable. While we did see how to do this with for-loops (by looping over…
|
|
Python has a lot of special methods than begin and end with double underscores. Together than make up the Python Data Model. In this video we look at the documentation of these methods and try to…
|