text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
Let's assume we fast
forward to the ending. | 1,483.661 | 1.869 |
And now I have these 13 piles
from Ace all the way up to King. | 1,485.53 | 4.64 |
What do I then do? | 1,490.17 | 0.75 |
What's step 2? | 1,490.92 | 2.24 |
AUDIENCE: Stack them. | 1,493.16 | 0.98 |
SPEAKER 1: So I want to stack them. | 1,494.14 | 1.03 |
So I can take all the 2's,
all the 3's, all the 4's. | 1,495.17 | 2.167 |
And I didn't specify
earlier, one of the things | 1,497.337 | 1.958 |
that complicates this problem with
cards is that you have different suits. | 1,499.295 | 3.115 |
And so if you really
want to be nit-picky, | 1,502.41 | 1.75 |
maybe you want to keep
all the suits the same, | 1,504.16 | 1.916 |
which is like a nested
sorting problem of some sort. | 1,506.076 | 3.114 |
But this general idea of bucketizing
in this way is good intuition, | 1,509.19 | 3.57 |
but it clearly takes some time. | 1,512.76 | 1.915 |
I mean, enough time that I'm not
going to sort of drag this out | 1,514.675 | 2.625 |
by sorting all of those cards myself. | 1,517.3 | 1.88 |
And therein lies the point, though. | 1,519.18 | 1.81 |
Even though in week 0 with Mike
Smith, we had that sorted phone book. | 1,520.99 | 2.95 |
And even though a moment ago,
Derek, albeit with a few numbers, | 1,523.94 | 2.94 |
had them already presorted,
sorting takes time. | 1,526.88 | 3.64 |
And even when we were just sorting
the blue books alphabetically, | 1,530.52 | 3.42 |
even though it felt pretty fast, pretty
obvious, it starts to drag eventually. | 1,533.94 | 3.74 |
And god forbid there
were more than 26 books. | 1,537.68 | 1.92 |
Maybe there were 260 books, or
2,600 books, or 2 million books. | 1,539.6 | 5.32 |
Or web pages. | 1,544.92 | 1.19 |
Or database records. | 1,546.11 | 1.63 |
Any number of problems in this
world now require sorting sometimes. | 1,547.74 | 3.674 |
Whether it's on Google, or
Facebook, or your own computer. | 1,551.414 | 2.416 |
It feels like we need a good algorithm
for actually doing that sorting. | 1,553.83 | 3.36 |
So how can we go about doing that,
not just with blue books, not | 1,557.19 | 3.05 |
just with cards, but more generally? | 1,560.24 | 2.3 |
Well, let's try to frame the
problem first with a simpler world. | 1,562.54 | 3.78 |
In fact, we can generalize
blue books and playing cards | 1,566.32 | 3.92 |
as really just numbers. | 1,570.24 | 1.06 |
Or some piece of data that there is
a defined order or sequence to them. | 1,571.3 | 4.55 |
And suppose I have these numbers here. | 1,575.85 | 1.78 |
How do I actually go about
sorting this many numbers? | 1,577.63 | 3.469 |
Well, for this-- and this
will be our last chance | 1,581.099 | 2.041 |
for audience participation here. | 1,583.14 | 1.62 |
I need eight brave volunteers
to actually come on up. | 1,584.76 | 3.13 |
All right, so 1, 2. | 1,587.89 | 0.863 |
This is what everyone's
been waiting for. | 1,588.753 | 1.708 |
1, 2, 3, 4, 5, 6, 7, and 8. | 1,590.461 | 6.719 |
Thank you. | 1,597.18 | 0.5 |
Come on up. | 1,597.68 | 1.52 |
And I will meet you over here. | 1,599.2 | 1.58 |
All right. | 1,607.46 | 0.73 |
Come on over here. | 1,608.19 | 0.75 |
If you want to grab two music stands. | 1,608.94 | 1.541 |
OK. | 1,613.4 | 0.5 |
So let's go ahead and turn these
around like this if you could, | 1,613.9 | 2.19 |
as though the music's
going to face the audience. | 1,616.09 | 2.041 |
OK. | 1,621.94 | 2.77 |
All right. | 1,624.71 | 0.5 |
And let me go ahead and give you sheets
of paper, and then we'll resume here. | 1,625.21 | 4.01 |
All right. | 1,629.22 | 0.5 |
So here is our eighth music stand. | 1,629.72 | 2.05 |
And what we have here
is 8 pieces of paper. | 1,631.77 | 2.427 |
And each of you guys is going to take on
the role of a certain number right now. | 1,634.197 | 3.333 |
So I'm going to go ahead and give
each of you a number in sorted order | 1,637.53 | 5.17 |
initially, but that would be too easy. | 1,642.7 | 2.59 |
So if you don't mind, let's go ahead and
arrange yourselves behind these music | 1,645.29 | 5.444 |
stands in the same order
that you see on the screen. | 1,650.734 | 2.166 |
So on the left end here near
me should be the number 4. | 1,652.9 | 3.02 |
Then, 2. | 1,655.92 | 1.76 |
Then, 6. | 1,657.68 | 1.7 |
Then, 8. | 1,659.38 | 0.51 |
Good job. | 1,659.89 | 0.84 |
Then, 1. | 1,660.73 | 0.85 |
Then, 3. | 1,661.58 | 1.03 |
Then, 7. | 1,662.61 | 0.92 |
Then, 5. | 1,663.53 | 0.57 |
All right. | 1,664.1 | 0.5 |
And you can put the
numbers on the music stand | 1,664.6 | 1.76 |
there, but just move
them with you as you go. | 1,666.36 | 1.875 |
So now the question is, here
is a seemingly random list | 1,668.235 | 3.435 |
in just some order I came up
with somewhat arbitrarily. | 1,671.67 | 2.3 |
And I want now to sort my list. | 1,673.97 | 3.2 |
How do I go about doing it? | 1,677.17 | 1.3 |
What would you propose? | 1,678.47 | 1.77 |
The goal is to get from 1 to 8. | 1,680.24 | 2.95 |
What are our possible approaches here? | 1,683.19 | 4.74 |
Oh, you want-- sure, OK. | 1,687.93 | 1.28 |
We'll just do it over here. | 1,689.21 | 1.124 |
AUDIENCE: Take out the smallest number. | 1,690.334 | 1.856 |
SPEAKER 1: OK. | 1,692.19 | 0.583 |
AUDIENCE: Take it, shift
everyone else down. | 1,692.773 | 1.858 |
Have the smallest number
in the first place. | 1,694.631 | 1.519 |
SPEAKER 1: OK, good. | 1,696.15 | 0.686 |
AUDIENCE: [INAUDIBLE]. | 1,696.836 | 0.916 |
SPEAKER 1: So let's
go ahead and do that. | 1,697.752 | 1.962 |
For those tuning in at home,
what's your name again? | 1,699.714 | 2.166 |
AUDIENCE: Allison. | 1,701.88 | 0.61 |
SPEAKER 1: Allison. | 1,702.49 | 0.46 |
And? | 1,702.95 | 0.54 |
AUDIENCE: Alex. | 1,703.49 | 0.37 |
SPEAKER 1: Alex. | 1,703.86 | 0.412 |
AUDIENCE: Adam. | 1,704.272 | 0.625 |
SPEAKER 1: Adam. | 1,704.897 | 0.673 |
AUDIENCE: Brandon. | 1,705.57 | 0.75 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.