WEBVTT
Kind: captions
Language: en

00:00:02.980 --> 00:00:16.480 align:start position:19%
[Music]
Gooden I'm OA and welcome to the 2023

00:00:14.120 --> 00:00:20.720 align:start position:19%
Lori wir Halloween special where I'm
going to rate your sorting algorithms

00:00:18.760 --> 00:00:26.000 align:start position:19%
because you think that you can outdo
Decades of research and come up with an

00:00:22.439 --> 00:00:26.000 align:start position:19%
even more optimal sorting

00:00:26.760 --> 00:00:34.079 align:start position:19%
algorithm let's see at least they've
stuck to the proper

00:00:31.719 --> 00:00:38.840 align:start position:19%
functions but I don't know what I am
looking at

00:00:36.040 --> 00:00:44.000 align:start position:19%
okay so I see you're trying to be clever
and you're trying to use heximal names

00:00:41.440 --> 00:00:48.320 align:start position:19%
of your variables however if this was
production code I would fire you

00:00:46.280 --> 00:00:53.840 align:start position:19%
immediately and I would probably kick
you on your way out this is not how you

00:00:51.320 --> 00:00:57.879 align:start position:19%
code when you're trying to show your
programming skills to another person if

00:00:56.000 --> 00:01:02.199 align:start position:19%
I wanted my variable names to be this
nondescript I probably would have had my

00:01:00.120 --> 00:01:06.840 align:start position:19%
dog write them and just slam his paws on
the keyboard and you think you're being

00:01:04.720 --> 00:01:11.159 align:start position:19%
so clever with all of these pointers and
yeah maybe you know what you're doing

00:01:08.799 --> 00:01:15.479 align:start position:19%
but if I saw this code and I was trying
to use it at work we would probably get

00:01:13.159 --> 00:01:20.600 align:start position:19%
in a fight right then and there also
your indentation is just way too much I

00:01:18.640 --> 00:01:26.280 align:start position:19%
think you're using like three tabs it
looks like let me see I can't tell but

00:01:23.759 --> 00:01:30.520 align:start position:19%
anyway too much I think your program is
going to go off the screen if you keep

00:01:28.200 --> 00:01:34.680 align:start position:19%
tabbing like this let's say have a loop
inside of a loop inside of a loop your

00:01:32.640 --> 00:01:38.759 align:start position:19%
Loop's going to be off the screen once I
actually get to that farthest inner loop

00:01:36.720 --> 00:01:43.240 align:start position:19%
you even included hardcoded memory
addresses and honestly I have no idea

00:01:41.000 --> 00:01:48.680 align:start position:19%
where you got this number from so I'm
going to have to run it and see if this

00:01:44.799 --> 00:01:48.680 align:start position:19%
actually works compiles it

00:01:50.119 --> 00:01:57.079 align:start position:19%
compiles okay it seems to be working
it's still going is this even doing

00:01:54.600 --> 00:02:01.119 align:start position:19%
anything ooh mister I'm so smart I'm
going to use hexadecimal characters as

00:01:59.039 --> 00:02:06.280 align:start position:19%
my variable name Nam they have also
decided to include hardcoded memory

00:02:03.119 --> 00:02:11.720 align:start position:19%
addresses so that this only works on x64
operating systems and then they give me

00:02:09.399 --> 00:02:15.720 align:start position:19%
this sorting algorithm and it is still
going and I don't think that it's doing

00:02:13.959 --> 00:02:19.640 align:start position:19%
anything I'm going to take this sorting
algorithm and start playing this in a

00:02:17.879 --> 00:02:23.440 align:start position:19%
coffee shop so I can drive everybody
crazy around me all right we're done

00:02:21.280 --> 00:02:23.440 align:start position:19%
with

00:02:23.760 --> 00:02:31.760 align:start position:19%
that what am I looking at right now and
why do I hate you so much

00:02:32.040 --> 00:02:39.400 align:start position:19%
this is all the all the digits of
pi in the

00:02:40.200 --> 00:02:49.519 align:start position:19%
universe okay hold on I can't even I
can't even find my mouse because it's

00:02:45.879 --> 00:02:52.840 align:start position:19%
stuck in the numbers I got this littley
tiny cursor I'm going to need another

00:02:51.480 --> 00:02:57.640 align:start position:19%
gummy worm if I'm going to get through
all of

00:02:54.000 --> 00:03:03.720 align:start position:19%
this okay pie
short yeah okay I got that all the

00:03:00.319 --> 00:03:07.120 align:start position:19%
digits of pi in a sorting algorithm
sorting algorithm that assumes that

00:03:05.319 --> 00:03:10.519 align:start position:19%
there must be a pattern inside the
digits of pi which

00:03:10.799 --> 00:03:18.680 align:start position:19%
puts which puts the given array in a
sing order so as far as I know there is

00:03:16.200 --> 00:03:22.959 align:start position:19%
not a pattern of Pi that anybody has
discovered this is like mathematicians

00:03:21.040 --> 00:03:29.879 align:start position:19%
from the dawn of
time have been trying to find a

00:03:26.360 --> 00:03:36.480 align:start position:19%
pattern and there isn't one so you're
assuming you can change the universe for

00:03:33.480 --> 00:03:40.799 align:start position:19%
your sorting algorithm oh I found the
code hey and he even stuck to the

00:03:38.879 --> 00:03:45.640 align:start position:19%
methods that I
provided FN print array FN

00:03:45.840 --> 00:03:50.840 align:start position:19%
sort oh my gosh I'm going to have to
scroll all the way up again because I

00:03:49.280 --> 00:03:57.439 align:start position:19%
can't remember what this was even
defined as not that I can read rust

00:03:53.920 --> 00:04:02.760 align:start position:19%
anyway but I'm doing my best this was
defined as a static string because

00:04:00.519 --> 00:04:07.159 align:start position:19%
that's how I want all my integers defin
this is

00:04:03.720 --> 00:04:11.840 align:start position:19%
probably a genius algorithm and honestly
I'm just too impatient to read that so

00:04:09.519 --> 00:04:15.319 align:start position:19%
maybe the fault's on me here but I don't
think so I really think the fault's on

00:04:13.319 --> 00:04:19.000 align:start position:19%
you for just making it too long why
didn't you put the digits of pi in maybe

00:04:17.400 --> 00:04:25.960 align:start position:19%
a separate file then I would have
actually tried to read it maybe

00:04:22.280 --> 00:04:29.400 align:start position:19%
maybe I am still copying now if this one
doesn't compile I'm going to be very

00:04:27.639 --> 00:04:33.600 align:start position:19%
disappointed because I have super super
high hopes for this one because it is

00:04:31.160 --> 00:04:42.039 align:start position:19%
literally just the first million digits
of pi used to sort this list let's build

00:04:37.800 --> 00:04:47.400 align:start position:19%
this oh man you gave me errors this guy
just crashed my notepad Plus+ all right

00:04:44.639 --> 00:04:51.400 align:start position:19%
this is still running now I can't use my
own print function because you've given

00:04:49.160 --> 00:04:59.800 align:start position:19%
me an incompatible type and it's still
printing to the screen I think my hopes

00:04:54.120 --> 00:05:06.320 align:start position:19%
for Port are quickly going down port
done I'm not sold I think P sort

00:05:02.639 --> 00:05:12.520 align:start position:19%
probably runs on Big O of n to the
million digits of pi but not adding the

00:05:09.160 --> 00:05:12.520 align:start position:19%
decimal point next

00:05:13.520 --> 00:05:24.520 align:start position:19%
submission okay we got Halloween wannabe
here trying to be spooky this

00:05:20.680 --> 00:05:29.720 align:start position:19%
person finds certain digits
spooky so we're learning a lot of things

00:05:27.240 --> 00:05:34.360 align:start position:19%
today that we didn't know were spooky so
some digits are inherently spookier than

00:05:31.880 --> 00:05:40.880 align:start position:19%
others even numbers are not spooky at
all odd numbers are spooky in the order

00:05:38.440 --> 00:05:47.000 align:start position:19%
371
95 oh okay so that's the odd

00:05:44.720 --> 00:05:53.080 align:start position:19%
digits that are
spooky so I think three is the most

00:05:50.360 --> 00:05:57.759 align:start position:19%
spooky and five is the least spooky or
maybe I have that the other way around

00:05:55.280 --> 00:06:02.639 align:start position:19%
maybe five is the most spooky and three
is the least spooky

00:06:00.039 --> 00:06:08.560 align:start position:19%
I really don't know how you came to this
conclusion so values are sorted normally

00:06:06.160 --> 00:06:14.599 align:start position:19%
then sorted by spookiness based on
digits in the singles Place using this

00:06:11.759 --> 00:06:17.240 align:start position:19%
logic numbers will be sorted from least
to most

00:06:20.400 --> 00:06:28.199 align:start position:19%
spooky you know I think this is on me
because to be fair I did not specify how

00:06:26.240 --> 00:06:31.880 align:start position:19%
I wanted the numbers sorted I just said
I want wanted them sorted

00:06:30.120 --> 00:06:38.720 align:start position:19%
so I think this person is really
thinking outside the box here everybody

00:06:34.680 --> 00:06:43.560 align:start position:19%
else sorted them from least to greatest
in their value but nobody else took the

00:06:41.560 --> 00:06:47.560 align:start position:19%
time to sort them by
spookiness this person is using single

00:06:45.960 --> 00:06:52.560 align:start position:19%
letter variable names but I will let it
slide just because of the creativity of

00:06:49.479 --> 00:06:56.479 align:start position:19%
the submission but I really want to see
what this is going to look like when I'm

00:06:53.919 --> 00:07:01.199 align:start position:19%
running it inside of my sorting
visualizer because if it's not even

00:06:58.520 --> 00:07:05.639 align:start position:19%
sorting it from least to greatest it's
just going to look like craziness I

00:07:03.360 --> 00:07:09.919 align:start position:19%
wonder what a spooky graph looks like
thank you for sticking to my naming

00:07:07.720 --> 00:07:16.080 align:start position:19%
conventions you're one of the few let's
for real see how spooky my numbers are

00:07:12.319 --> 00:07:20.840 align:start position:19%
come on that's not spooky at all oh
wait oh interesting okay so you sort

00:07:19.120 --> 00:07:25.400 align:start position:19%
them
first and then they start going out of

00:07:25.520 --> 00:07:32.720 align:start position:19%
order I really don't think this is very
efficient

00:07:30.360 --> 00:07:37.319 align:start position:19%
kind of makes some cool sounds
though okay this is making some cool

00:07:35.199 --> 00:07:40.440 align:start position:19%
graphs and some cool noises actually
this worked a lot better than I thought

00:07:38.840 --> 00:07:44.560 align:start position:19%
it was going to I thought it was just
going to be totally random numbers all

00:07:42.000 --> 00:07:47.520 align:start position:19%
over the place but it is sort of almost
sorted

00:07:47.919 --> 00:07:57.280 align:start position:19%
okay all right this one is giving me an
entire backstory Tokyo 3

00:07:54.560 --> 00:08:05.720 align:start position:19%
sort Shinji attempts to
defeat israell sort sort the integers

00:08:01.960 --> 00:08:13.120 align:start position:19%
but OA has to finish the job with the
Spear of

00:08:08.240 --> 00:08:18.759 align:start position:19%
Linus build g++ DW wall Tokyo 3
CPP Noe I'm a Noob had to hack in some

00:08:17.080 --> 00:08:24.240 align:start position:19%
printing functionality to track the
array throughout quick swort

00:08:20.720 --> 00:08:29.840 align:start position:19%
Alm okay don't judge this penson too
harshly for poor oh I'm going to

00:08:28.240 --> 00:08:34.680 align:start position:19%
judge
sh Shinji and OA sorting a thousand

00:08:32.800 --> 00:08:41.399 align:start position:19%
random inss OA
single-handedly sorting a th random ins

00:08:38.039 --> 00:08:45.600 align:start position:19%
and then another time estimation you
know what I'm feeling generous so I'm

00:08:44.000 --> 00:08:51.000 align:start position:19%
going to give you like
plus 100 points just for the backstory

00:08:49.040 --> 00:08:54.399 align:start position:19%
because it was really thorough nobody
else gave me a

00:08:52.279 --> 00:08:57.399 align:start position:19%
backstory that was really
good

00:08:58.040 --> 00:09:04.720 align:start position:19%
and and instead of leaving actual
comments in your code you gave me more

00:09:03.279 --> 00:09:09.920 align:start position:19%
parts of the
story this is excellent and I think that

00:09:08.000 --> 00:09:16.040 align:start position:19%
we should use this kind of technique
going forward as all programmers instead

00:09:13.800 --> 00:09:20.399 align:start position:19%
of using actual comments you should
write an entire novel inside of the

00:09:18.279 --> 00:09:24.040 align:start position:19%
comment section of your code and spread
it out between every single different

00:09:22.120 --> 00:09:29.279 align:start position:19%
method that way this is going to be the
most entertaining book ever and you have

00:09:26.399 --> 00:09:32.360 align:start position:19%
to literally write like 30 different
applications just to get through your

00:09:31.240 --> 00:09:37.160 align:start position:19%
entire
novel your method names are also named

00:09:35.320 --> 00:09:42.959 align:start position:19%
based off of the characters of Neon
Genesis I don't even think I can give

00:09:39.680 --> 00:09:48.120 align:start position:19%
you enough points for that this is
perfect you get like plus a million

00:09:45.240 --> 00:09:55.560 align:start position:19%
points OA obviously considers misato
lesser than herself yes OA places

00:09:51.800 --> 00:10:00.200 align:start position:19%
herself above misato in all regards yes
okay so what this has is this has two

00:09:57.920 --> 00:10:06.600 align:start position:19%
different methods we have Shinji sort
and we have OA sort but Shinji sort is

00:10:04.399 --> 00:10:10.640 align:start position:19%
just lazy and doesn't do more than a
third of the

00:10:07.880 --> 00:10:16.240 align:start position:19%
teamwork that's accurate really I hold
up the entire team OA aggressive quick

00:10:13.600 --> 00:10:22.440 align:start position:19%
sort yes this is
accurate using the Spear of Linus to

00:10:19.399 --> 00:10:22.440 align:start position:19%
track the erase

00:10:23.000 --> 00:10:28.040 align:start position:19%
State okay this this was that was a
really good one I got to move on to the

00:10:26.959 --> 00:10:33.200 align:start position:19%
next
one

00:10:30.519 --> 00:10:33.200 align:start position:19%
Enterprise

00:10:33.480 --> 00:10:41.760 align:start position:19%
sort Enterprise IR dedicated for custom
sorting algorithms

00:10:42.320 --> 00:10:50.440 align:start position:19%
highly highly versatile and jit
friendly a Cloud

00:10:52.240 --> 00:10:59.880 align:start position:19%
solution the saddest part is is I know
you could totally sell this in real life

00:10:57.120 --> 00:11:04.200 align:start position:19%
a Cloud solution is available for users
without the Enterprise Pro license you

00:11:02.399 --> 00:11:09.000 align:start position:19%
know I've always wanted an Enterprise
solution for my sorting algorithms

00:11:06.440 --> 00:11:13.160 align:start position:19%
because this is actually really genius
and this is how you can charge customers

00:11:10.880 --> 00:11:18.560 align:start position:19%
even more inside of your cloud-based
solution you can charge them for the

00:11:15.839 --> 00:11:23.760 align:start position:19%
more efficient and faster programming
sorting algorithms this way if the

00:11:21.720 --> 00:11:29.079 align:start position:19%
customers are not paying enough they
have to run a big O of N squared the

00:11:26.200 --> 00:11:34.360 align:start position:19%
main selling point of this is that it's
highly versatile and Gip friendly LC

00:11:32.399 --> 00:11:39.760 align:start position:19%
deprecated can't remember what this one
does okay I appreciate the

00:11:37.800 --> 00:11:43.760 align:start position:19%
honesty that's exactly what I want to
see in my Enterprise code can't remember

00:11:42.000 --> 00:11:48.920 align:start position:19%
what this one does yeah this does look
like real Enterprise code because of the

00:11:45.920 --> 00:11:55.320 align:start position:19%
amount of constants inside of this and
just the amount of else

00:11:51.800 --> 00:12:00.079 align:start position:19%
ifs and the lack of spacing and the lack
of comments yes this evaluates the

00:11:57.959 --> 00:12:04.279 align:start position:19%
custom sort algor algorithm currently
faster than all other sorting algorithms

00:12:02.560 --> 00:12:09.639 align:start position:19%
highspeed jit
API you're definitely a Salesman aren't

00:12:07.079 --> 00:12:12.639 align:start position:19%
you because like the code could do
absolutely nothing but the way that

00:12:11.279 --> 00:12:19.760 align:start position:19%
you're selling this inside of the
comments is really making me want to buy

00:12:14.639 --> 00:12:25.880 align:start position:19%
this jit API has been deprecated since
13.02 based on how this is written is

00:12:23.320 --> 00:12:30.800 align:start position:19%
this actually part of a real application
did you really I don't know steal code

00:12:29.000 --> 00:12:38.160 align:start position:19%
from somewhere and submit this to the
Lorry wire 2023 Halloween sorting

00:12:35.600 --> 00:12:41.720 align:start position:19%
challenge because it's written exactly
like all of these Enterprise Solutions

00:12:40.160 --> 00:12:46.399 align:start position:19%
are normally
written please I really hope that you

00:12:44.480 --> 00:12:51.519 align:start position:19%
just made this up because if this is
real I'm going to be really sad and

00:12:48.600 --> 00:12:56.519 align:start position:19%
there's a to-do inside of it this has to
be real all Enterprise sort variables

00:12:54.519 --> 00:13:01.800 align:start position:19%
must be prefixed with
lcore why why are there random magic

00:12:59.600 --> 00:13:09.360 align:start position:19%
numbers inside of this what is this
array lore sort with lookup. params and

00:13:06.360 --> 00:13:16.360 align:start position:19%
then it's just an array that has
1,427 818 356

00:13:13.360 --> 00:13:20.399 align:start position:19%
196 what does that even mean and there's
more there's like a million of these

00:13:18.680 --> 00:13:24.199 align:start position:19%
different arrays that are just full of
magic numbers you don't even explain

00:13:22.160 --> 00:13:27.839 align:start position:19%
what they are what are they doing are
these supposed to be example cases that

00:13:26.240 --> 00:13:32.279 align:start position:19%
you're going to practice sorting I don't
think so based off your variable names

00:13:29.959 --> 00:13:35.680 align:start position:19%
also you didn't even use underscores or
camel case inside of these variable

00:13:34.079 --> 00:13:42.440 align:start position:19%
names so it just looks like a jumbled
mesh if I like spoilers here's what the

00:13:38.639 --> 00:13:45.959 align:start position:19%
D enterpris algorithm looks like I'm
going to follow the bait and that's how

00:13:44.240 --> 00:13:49.199 align:start position:19%
Lori wire accidentally installed
ransomware oh my

00:13:53.800 --> 00:13:56.800 align:start position:19%
God

00:13:57.759 --> 00:14:00.759 align:start position:19%
it's

00:14:04.959 --> 00:14:16.920 align:start position:19%
it's like this big versus this
big and it's going to some sketchy IP

00:14:13.839 --> 00:14:23.320 align:start position:19%
address who knows what this is doing I
am not going to that IP address no

00:14:20.360 --> 00:14:30.639 align:start position:19%
matter no matter how much I want to it's
going to the IP address and opening the

00:14:25.959 --> 00:14:35.959 align:start position:19%
URL and then importing whatever data is
returned from the URL and reading that

00:14:33.560 --> 00:14:42.040 align:start position:19%
and then printing that you're literally
just copying your own data from your own

00:14:39.440 --> 00:14:46.560 align:start position:19%
random IP address and then printing that
data to the screen well you're going to

00:14:43.800 --> 00:14:50.399 align:start position:19%
fail the visualization challenge I guess
I need to buy the Enterprise version to

00:14:48.800 --> 00:14:55.480 align:start position:19%
use
it all

00:14:52.560 --> 00:15:01.480 align:start position:19%
right that was good I'll give you that
one I think that one might win for

00:14:58.199 --> 00:15:01.480 align:start position:19%
creative ity I don't

00:15:01.920 --> 00:15:11.639 align:start position:19%
know note at the top this sorting
algorithm does not handle duplicates and

00:15:08.720 --> 00:15:11.639 align:start position:19%
negative numbers

00:15:12.360 --> 00:15:15.639 align:start position:19%
correctly next

00:15:16.600 --> 00:15:25.800 align:start position:19%
one so now let's move on to Pancake sort
this is yet again another rust

00:15:23.199 --> 00:15:31.079 align:start position:19%
submission and it looks like the person
who wrote this took a severe dislike to

00:15:28.959 --> 00:15:36.800 align:start position:19%
how I wrote my print array function and
decided to comment the entire thing out

00:15:33.720 --> 00:15:42.440 align:start position:19%
and reimplement their own version in a
proper rust mannerism well I'm sorry but

00:15:39.720 --> 00:15:47.399 align:start position:19%
I'm a C++ developer so I don't know the
proper rust fashion that you decide to

00:15:44.920 --> 00:15:52.279 align:start position:19%
write your 60,000 different ways of
using a print statement they have even

00:15:49.480 --> 00:15:56.319 align:start position:19%
commented out my print array function
that is supposed to work iteratively and

00:15:54.160 --> 00:16:02.759 align:start position:19%
print out every single iteration of the
loop and just said no Petty point I'm

00:16:00.639 --> 00:16:08.639 align:start position:19%
sorry but your ooo speak is not helping
your case here your algorithm is running

00:16:05.759 --> 00:16:14.079 align:start position:19%
pancakes sort so it's basically breaking
up the array into a ton of different

00:16:10.560 --> 00:16:20.319 align:start position:19%
pancakes of continuously decreasing size
and sorting by the max number first now

00:16:17.160 --> 00:16:25.240 align:start position:19%
this will run on Big O of N squ I think
if Shinji was a sorting algorithm he'd

00:16:22.600 --> 00:16:29.639 align:start position:19%
be pancake sort takes forever and
constantly flips back and forth I have

00:16:28.079 --> 00:16:34.560 align:start position:19%
gone to to the
trouble of fixing your

00:16:32.040 --> 00:16:38.000 align:start position:19%
code you told me that you would not
write the print function for every

00:16:36.279 --> 00:16:44.000 align:start position:19%
iteration but you know what I say to
that I can comment out your code and

00:16:40.199 --> 00:16:48.160 align:start position:19%
comment mine back in yeah it's
okay but it's not really any better than

00:16:46.240 --> 00:16:53.440 align:start position:19%
the bubble sort implementation that I
added by default here's my verdict of

00:16:50.959 --> 00:16:53.440 align:start position:19%
pancake

00:16:54.959 --> 00:17:02.360 align:start position:19%
sort well even though not everybody can
be an expert in sorting algorithms like

00:16:59.920 --> 00:17:06.720 align:start position:19%
I am in fact some of you put in almost
no effort at all I still really

00:17:04.400 --> 00:17:10.640 align:start position:19%
appreciated all of the submissions now
some of you did submit really creative

00:17:08.839 --> 00:17:16.160 align:start position:19%
and unique submissions that actually had
a pretty good time complexity so only

00:17:13.280 --> 00:17:20.319 align:start position:19%
because of that I'm feeling generous so
all of the featured submissions are

00:17:17.760 --> 00:17:24.120 align:start position:19%
going to receive prizes Cheo everyone
and I hope you have some new creative

00:17:21.919 --> 00:17:30.400 align:start position:19%
sorting algorithm ideas so that's all
for today work on your sorting

00:17:27.400 --> 00:17:30.400 align:start position:19%
algorithms

00:17:32.580 --> 00:17:35.780 align:start position:19%
[Music]

