WEBVTT
Kind: captions
Language: en

00:00:00.560 --> 00:00:02.310 align:start position:0%
 
Say<00:00:00.920><c> you</c><00:00:01.040><c> want</c><00:00:01.160><c> to</c><00:00:01.240><c> drive</c><00:00:01.520><c> from</c><00:00:01.760><c> New</c><00:00:01.920><c> York</c><00:00:02.200><c> to</c>

00:00:02.310 --> 00:00:02.320 align:start position:0%
Say you want to drive from New York to
 

00:00:02.320 --> 00:00:04.630 align:start position:0%
Say you want to drive from New York to
San<00:00:02.480><c> Francisco.</c><00:00:03.600><c> How</c><00:00:03.880><c> could</c><00:00:04.040><c> you</c><00:00:04.120><c> calculate</c>

00:00:04.630 --> 00:00:04.640 align:start position:0%
San Francisco. How could you calculate
 

00:00:04.640 --> 00:00:07.590 align:start position:0%
San Francisco. How could you calculate
the<00:00:04.880><c> absolute</c><00:00:05.440><c> shortest</c><00:00:05.880><c> path?</c>

00:00:07.590 --> 00:00:07.600 align:start position:0%
the absolute shortest path?
 

00:00:07.600 --> 00:00:10.030 align:start position:0%
the absolute shortest path?
There<00:00:07.800><c> are</c><00:00:08.000><c> over</c><00:00:08.240><c> 64</c><00:00:08.840><c> million</c><00:00:09.400><c> intersections</c>

00:00:10.030 --> 00:00:10.040 align:start position:0%
There are over 64 million intersections
 

00:00:10.040 --> 00:00:12.230 align:start position:0%
There are over 64 million intersections
in<00:00:10.160><c> the</c><00:00:10.240><c> North</c><00:00:10.440><c> American</c><00:00:10.840><c> road</c><00:00:11.080><c> system,</c><00:00:11.720><c> so</c><00:00:12.200><c> a</c>

00:00:12.230 --> 00:00:12.240 align:start position:0%
in the North American road system, so a
 

00:00:12.240 --> 00:00:14.270 align:start position:0%
in the North American road system, so a
simplified<00:00:12.760><c> estimate</c><00:00:13.200><c> gives</c><00:00:13.440><c> around</c><00:00:13.840><c> 10</c><00:00:14.160><c> to</c>

00:00:14.270 --> 00:00:14.280 align:start position:0%
simplified estimate gives around 10 to
 

00:00:14.280 --> 00:00:17.430 align:start position:0%
simplified estimate gives around 10 to
the<00:00:14.440><c> 220</c><00:00:15.520><c> possible</c><00:00:16.200><c> routes.</c><00:00:16.880><c> Even</c><00:00:17.240><c> if</c><00:00:17.360><c> you</c>

00:00:17.430 --> 00:00:17.440 align:start position:0%
the 220 possible routes. Even if you
 

00:00:17.440 --> 00:00:19.670 align:start position:0%
the 220 possible routes. Even if you
could<00:00:17.560><c> check</c><00:00:17.920><c> a</c><00:00:18.000><c> billion</c><00:00:18.680><c> routes</c><00:00:19.040><c> per</c><00:00:19.200><c> second,</c>

00:00:19.670 --> 00:00:19.680 align:start position:0%
could check a billion routes per second,
 

00:00:19.680 --> 00:00:21.550 align:start position:0%
could check a billion routes per second,
testing<00:00:20.200><c> all</c><00:00:20.400><c> of</c><00:00:20.480><c> them</c><00:00:20.880><c> would</c><00:00:21.040><c> still</c><00:00:21.280><c> take</c>

00:00:21.550 --> 00:00:21.560 align:start position:0%
testing all of them would still take
 

00:00:21.560 --> 00:00:25.310 align:start position:0%
testing all of them would still take
over<00:00:21.840><c> 10</c><00:00:22.240><c> to</c><00:00:22.360><c> the</c><00:00:22.520><c> 200</c><00:00:23.280><c> years.</c><00:00:24.480><c> And</c><00:00:24.760><c> this</c><00:00:25.040><c> isn't</c>

00:00:25.310 --> 00:00:25.320 align:start position:0%
over 10 to the 200 years. And this isn't
 

00:00:25.320 --> 00:00:27.390 align:start position:0%
over 10 to the 200 years. And this isn't
just<00:00:25.480><c> a</c><00:00:25.520><c> problem</c><00:00:25.880><c> for</c><00:00:26.080><c> navigation</c><00:00:26.600><c> software.</c>

00:00:27.390 --> 00:00:27.400 align:start position:0%
just a problem for navigation software.
 

00:00:27.400 --> 00:00:29.630 align:start position:0%
just a problem for navigation software.
Any<00:00:27.720><c> independent</c><00:00:28.320><c> system</c><00:00:28.720><c> like</c><00:00:28.920><c> a</c><00:00:29.000><c> robot</c><00:00:29.480><c> or</c><00:00:29.600><c> a</c>

00:00:29.630 --> 00:00:29.640 align:start position:0%
Any independent system like a robot or a
 

00:00:29.640 --> 00:00:31.150 align:start position:0%
Any independent system like a robot or a
video<00:00:30.000><c> game</c><00:00:30.200><c> character</c><00:00:30.600><c> that</c><00:00:30.800><c> needs</c><00:00:31.080><c> to</c>

00:00:31.150 --> 00:00:31.160 align:start position:0%
video game character that needs to
 

00:00:31.160 --> 00:00:34.070 align:start position:0%
video game character that needs to
navigate<00:00:31.640><c> a</c><00:00:31.720><c> maze</c><00:00:32.240><c> or</c><00:00:32.480><c> obstacle</c><00:00:32.960><c> course</c><00:00:33.560><c> faces</c>

00:00:34.070 --> 00:00:34.080 align:start position:0%
navigate a maze or obstacle course faces
 

00:00:34.080 --> 00:00:35.830 align:start position:0%
navigate a maze or obstacle course faces
the<00:00:34.240><c> same</c><00:00:34.600><c> problem.</c>

00:00:35.830 --> 00:00:35.840 align:start position:0%
the same problem.
 

00:00:35.840 --> 00:00:38.150 align:start position:0%
the same problem.
And<00:00:35.960><c> yet</c><00:00:36.360><c> Google</c><00:00:36.840><c> or</c><00:00:37.080><c> Apple</c><00:00:37.320><c> Maps</c><00:00:37.680><c> will</c><00:00:37.880><c> find</c>

00:00:38.150 --> 00:00:38.160 align:start position:0%
And yet Google or Apple Maps will find
 

00:00:38.160 --> 00:00:41.230 align:start position:0%
And yet Google or Apple Maps will find
you<00:00:38.240><c> the</c><00:00:38.360><c> route</c><00:00:38.600><c> in</c><00:00:38.840><c> only</c><00:00:39.160><c> 4</c><00:00:39.480><c> seconds.</c>

00:00:41.230 --> 00:00:41.240 align:start position:0%
you the route in only 4 seconds.
 

00:00:41.240 --> 00:00:44.550 align:start position:0%
you the route in only 4 seconds.
So,<00:00:41.520><c> how</c><00:00:42.040><c> is</c><00:00:42.200><c> that</c><00:00:42.440><c> possible?</c>

00:00:44.550 --> 00:00:44.560 align:start position:0%
So, how is that possible?
 

00:00:44.560 --> 00:00:46.030 align:start position:0%
So, how is that possible?
Well,<00:00:44.720><c> we</c><00:00:44.840><c> teamed</c><00:00:45.120><c> up</c><00:00:45.280><c> with</c><00:00:45.400><c> the</c><00:00:45.480><c> channel</c><00:00:45.800><c> Two</c>

00:00:46.030 --> 00:00:46.040 align:start position:0%
Well, we teamed up with the channel Two
 

00:00:46.040 --> 00:00:47.630 align:start position:0%
Well, we teamed up with the channel Two
Minute<00:00:46.120><c> Papers</c><00:00:46.360><c> who</c><00:00:46.680><c> creates</c><00:00:47.080><c> incredible</c>

00:00:47.630 --> 00:00:47.640 align:start position:0%
Minute Papers who creates incredible
 

00:00:47.640 --> 00:00:49.590 align:start position:0%
Minute Papers who creates incredible
simulations<00:00:48.240><c> and</c><00:00:48.400><c> animations</c><00:00:49.080><c> to</c><00:00:49.200><c> show</c><00:00:49.400><c> you</c>

00:00:49.590 --> 00:00:49.600 align:start position:0%
simulations and animations to show you
 

00:00:49.600 --> 00:00:53.070 align:start position:0%
simulations and animations to show you
step-by-step<00:00:50.520><c> how</c><00:00:50.640><c> these</c><00:00:50.920><c> algorithms</c><00:00:51.520><c> work.</c>

00:00:53.070 --> 00:00:53.080 align:start position:0%
step-by-step how these algorithms work.
 

00:00:53.080 --> 00:00:54.950 align:start position:0%
step-by-step how these algorithms work.
They<00:00:53.280><c> trace</c><00:00:53.600><c> their</c><00:00:53.800><c> origins</c><00:00:54.320><c> back</c><00:00:54.600><c> to</c><00:00:54.880><c> a</c>

00:00:54.950 --> 00:00:54.960 align:start position:0%
They trace their origins back to a
 

00:00:54.960 --> 00:00:59.595 align:start position:0%
They trace their origins back to a
shopping<00:00:55.360><c> trip</c><00:00:55.600><c> in</c><00:00:55.760><c> Amsterdam</c><00:00:56.520><c> in</c><00:00:56.680><c> 1956.</c>

00:00:59.595 --> 00:00:59.605 align:start position:0%
shopping trip in Amsterdam in 1956.
 

00:00:59.605 --> 00:01:01.990 align:start position:0%
shopping trip in Amsterdam in 1956.
&gt;&gt; [music]

00:01:01.990 --> 00:01:02.000 align:start position:0%
 
 

00:01:02.000 --> 00:01:04.390 align:start position:0%
 
&gt;&gt; Edsger<00:01:02.360><c> Dijkstra</c><00:01:02.840><c> needed</c><00:01:03.160><c> a</c><00:01:03.200><c> problem.</c><00:01:03.960><c> He</c><00:01:04.080><c> was</c>

00:01:04.390 --> 00:01:04.400 align:start position:0%
&gt;&gt; Edsger Dijkstra needed a problem. He was
 

00:01:04.400 --> 00:01:06.670 align:start position:0%
&gt;&gt; Edsger Dijkstra needed a problem. He was
working<00:01:04.760><c> on</c><00:01:04.879><c> software</c><00:01:05.400><c> for</c><00:01:05.600><c> ARMAC,</c><00:01:06.120><c> an</c><00:01:06.440><c> early</c>

00:01:06.670 --> 00:01:06.680 align:start position:0%
working on software for ARMAC, an early
 

00:01:06.680 --> 00:01:08.150 align:start position:0%
working on software for ARMAC, an early
computer<00:01:07.040><c> developed</c><00:01:07.480><c> at</c><00:01:07.560><c> the</c><00:01:07.640><c> Mathematical</c>

00:01:08.150 --> 00:01:08.160 align:start position:0%
computer developed at the Mathematical
 

00:01:08.160 --> 00:01:10.070 align:start position:0%
computer developed at the Mathematical
Center<00:01:08.440><c> in</c><00:01:08.520><c> the</c><00:01:08.600><c> Netherlands.</c><00:01:09.560><c> And</c><00:01:09.800><c> it</c><00:01:09.880><c> was</c>

00:01:10.070 --> 00:01:10.080 align:start position:0%
Center in the Netherlands. And it was
 

00:01:10.080 --> 00:01:12.150 align:start position:0%
Center in the Netherlands. And it was
almost<00:01:10.400><c> ready</c><00:01:10.640><c> to</c><00:01:10.760><c> debut.</c><00:01:11.600><c> But</c><00:01:11.760><c> at</c><00:01:11.800><c> the</c><00:01:11.880><c> time,</c>

00:01:12.150 --> 00:01:12.160 align:start position:0%
almost ready to debut. But at the time,
 

00:01:12.160 --> 00:01:13.750 align:start position:0%
almost ready to debut. But at the time,
the<00:01:12.240><c> general</c><00:01:12.600><c> public</c><00:01:12.920><c> considered</c><00:01:13.360><c> computers</c>

00:01:13.750 --> 00:01:13.760 align:start position:0%
the general public considered computers
 

00:01:13.760 --> 00:01:15.950 align:start position:0%
the general public considered computers
to<00:01:13.840><c> be</c><00:01:14.000><c> practically</c><00:01:14.560><c> useless.</c>

00:01:15.950 --> 00:01:15.960 align:start position:0%
to be practically useless.
 

00:01:15.960 --> 00:01:17.510 align:start position:0%
to be practically useless.
So<00:01:16.200><c> useless,</c><00:01:16.560><c> in</c><00:01:16.680><c> fact,</c><00:01:16.880><c> that</c><00:01:17.000><c> Dijkstra</c><00:01:17.360><c> ran</c>

00:01:17.510 --> 00:01:17.520 align:start position:0%
So useless, in fact, that Dijkstra ran
 

00:01:17.520 --> 00:01:20.150 align:start position:0%
So useless, in fact, that Dijkstra ran
into<00:01:17.720><c> issues</c><00:01:18.120><c> filing</c><00:01:18.400><c> his</c><00:01:18.560><c> marriage</c><00:01:18.880><c> license.</c>

00:01:20.150 --> 00:01:20.160 align:start position:0%
into issues filing his marriage license.
 

00:01:20.160 --> 00:01:22.310 align:start position:0%
into issues filing his marriage license.
&gt;&gt; Dutch<00:01:20.480><c> marriage</c><00:01:20.880><c> rights</c><00:01:21.360><c> require</c><00:01:21.920><c> you</c><00:01:22.160><c> to</c>

00:01:22.310 --> 00:01:22.320 align:start position:0%
&gt;&gt; Dutch marriage rights require you to
 

00:01:22.320 --> 00:01:25.030 align:start position:0%
&gt;&gt; Dutch marriage rights require you to
state<00:01:22.600><c> your</c><00:01:22.720><c> profession,</c><00:01:23.760><c> and</c><00:01:24.040><c> I</c><00:01:24.200><c> said</c><00:01:24.680><c> that</c><00:01:24.960><c> I</c>

00:01:25.030 --> 00:01:25.040 align:start position:0%
state your profession, and I said that I
 

00:01:25.040 --> 00:01:27.230 align:start position:0%
state your profession, and I said that I
was<00:01:25.240><c> a</c><00:01:25.320><c> programmer.</c>

00:01:27.230 --> 00:01:27.240 align:start position:0%
was a programmer.
 

00:01:27.240 --> 00:01:29.510 align:start position:0%
was a programmer.
But<00:01:27.560><c> the</c><00:01:27.680><c> municipal</c><00:01:28.520><c> authorities</c><00:01:29.280><c> of</c><00:01:29.400><c> the</c>

00:01:29.510 --> 00:01:29.520 align:start position:0%
But the municipal authorities of the
 

00:01:29.520 --> 00:01:31.870 align:start position:0%
But the municipal authorities of the
town<00:01:29.800><c> of</c><00:01:30.000><c> Amsterdam</c><00:01:30.720><c> didn't</c><00:01:31.040><c> accept</c><00:01:31.520><c> it</c><00:01:31.760><c> on</c>

00:01:31.870 --> 00:01:31.880 align:start position:0%
town of Amsterdam didn't accept it on
 

00:01:31.880 --> 00:01:33.470 align:start position:0%
town of Amsterdam didn't accept it on
the<00:01:31.960><c> ground</c><00:01:32.400><c> that</c><00:01:32.720><c> there</c><00:01:32.920><c> was</c><00:01:33.080><c> no</c><00:01:33.200><c> such</c>

00:01:33.470 --> 00:01:33.480 align:start position:0%
the ground that there was no such
 

00:01:33.480 --> 00:01:35.270 align:start position:0%
the ground that there was no such
profession.

00:01:35.270 --> 00:01:35.280 align:start position:0%
profession.
 

00:01:35.280 --> 00:01:37.310 align:start position:0%
profession.
And<00:01:35.600><c> believe</c><00:01:35.920><c> it</c><00:01:36.040><c> or</c><00:01:36.160><c> not,</c><00:01:36.680><c> that</c><00:01:36.920><c> under</c><00:01:37.160><c> the</c>

00:01:37.310 --> 00:01:37.320 align:start position:0%
And believe it or not, that under the
 

00:01:37.320 --> 00:01:39.870 align:start position:0%
And believe it or not, that under the
heading<00:01:37.640><c> profession,</c><00:01:38.640><c> my</c><00:01:38.840><c> marriage</c><00:01:39.280><c> act</c>

00:01:39.870 --> 00:01:39.880 align:start position:0%
heading profession, my marriage act
 

00:01:39.880 --> 00:01:42.590 align:start position:0%
heading profession, my marriage act
shows<00:01:40.160><c> the</c><00:01:40.280><c> ridiculous</c><00:01:41.000><c> entry</c><00:01:41.720><c> theoretical</c>

00:01:42.590 --> 00:01:42.600 align:start position:0%
shows the ridiculous entry theoretical
 

00:01:42.600 --> 00:01:44.136 align:start position:0%
shows the ridiculous entry theoretical
physicist.

00:01:44.136 --> 00:01:44.146 align:start position:0%
physicist.
 

00:01:44.146 --> 00:01:45.990 align:start position:0%
physicist.
&gt;&gt; [music]

00:01:45.990 --> 00:01:46.000 align:start position:0%
&gt;&gt; [music]
 

00:01:46.000 --> 00:01:47.750 align:start position:0%
&gt;&gt; [music]
&gt;&gt; And<00:01:46.160><c> so,</c><00:01:46.640><c> Dijkstra</c><00:01:47.120><c> was</c><00:01:47.320><c> looking</c><00:01:47.520><c> for</c><00:01:47.720><c> a</c>

00:01:47.750 --> 00:01:47.760 align:start position:0%
&gt;&gt; And so, Dijkstra was looking for a
 

00:01:47.760 --> 00:01:49.910 align:start position:0%
&gt;&gt; And so, Dijkstra was looking for a
specific<00:01:48.240><c> demo</c><00:01:48.560><c> to</c><00:01:48.720><c> prove</c><00:01:49.040><c> just</c><00:01:49.240><c> how</c><00:01:49.360><c> powerful</c>

00:01:49.910 --> 00:01:49.920 align:start position:0%
specific demo to prove just how powerful
 

00:01:49.920 --> 00:01:52.710 align:start position:0%
specific demo to prove just how powerful
ARMAC<00:01:50.320><c> was,</c><00:01:50.920><c> even</c><00:01:51.240><c> to</c><00:01:51.320><c> the</c><00:01:51.400><c> layperson.</c>

00:01:52.710 --> 00:01:52.720 align:start position:0%
ARMAC was, even to the layperson.
 

00:01:52.720 --> 00:01:54.630 align:start position:0%
ARMAC was, even to the layperson.
&gt;&gt; The<00:01:52.840><c> problem,</c><00:01:53.440><c> of</c><00:01:53.600><c> course,</c><00:01:54.040><c> is</c><00:01:54.160><c> that</c><00:01:54.320><c> for</c><00:01:54.560><c> a</c>

00:01:54.630 --> 00:01:54.640 align:start position:0%
&gt;&gt; The problem, of course, is that for a
 

00:01:54.640 --> 00:01:57.510 align:start position:0%
&gt;&gt; The problem, of course, is that for a
demonstration<00:01:55.640><c> for</c><00:01:55.960><c> non-computing</c><00:01:56.720><c> people,</c>

00:01:57.510 --> 00:01:57.520 align:start position:0%
demonstration for non-computing people,
 

00:01:57.520 --> 00:01:59.230 align:start position:0%
demonstration for non-computing people,
you<00:01:57.640><c> have</c><00:01:57.920><c> to</c><00:01:58.000><c> have</c><00:01:58.120><c> a</c><00:01:58.200><c> problem</c><00:01:58.640><c> statement</c>

00:01:59.230 --> 00:01:59.240 align:start position:0%
you have to have a problem statement
 

00:01:59.240 --> 00:02:02.390 align:start position:0%
you have to have a problem statement
that<00:01:59.440><c> non-mathematicians</c><00:02:00.480><c> can</c><00:02:00.640><c> understand.</c>

00:02:02.390 --> 00:02:02.400 align:start position:0%
that non-mathematicians can understand.
 

00:02:02.400 --> 00:02:05.430 align:start position:0%
that non-mathematicians can understand.
And<00:02:02.560><c> they</c><00:02:02.680><c> have</c><00:02:02.920><c> to</c><00:02:03.040><c> understand</c><00:02:03.520><c> the</c><00:02:03.680><c> answer.</c>

00:02:05.430 --> 00:02:05.440 align:start position:0%
And they have to understand the answer.
 

00:02:05.440 --> 00:02:06.990 align:start position:0%
And they have to understand the answer.
&gt;&gt; And<00:02:05.840><c> during</c><00:02:06.120><c> that</c><00:02:06.280><c> shopping</c><00:02:06.640><c> trip,</c><00:02:06.840><c> he</c>

00:02:06.990 --> 00:02:07.000 align:start position:0%
&gt;&gt; And during that shopping trip, he
 

00:02:07.000 --> 00:02:09.630 align:start position:0%
&gt;&gt; And during that shopping trip, he
thought<00:02:07.400><c> of</c><00:02:07.479><c> the</c><00:02:07.600><c> perfect</c><00:02:07.960><c> problem.</c>

00:02:09.630 --> 00:02:09.640 align:start position:0%
thought of the perfect problem.
 

00:02:09.640 --> 00:02:11.510 align:start position:0%
thought of the perfect problem.
&gt;&gt; What's<00:02:09.880><c> the</c><00:02:10.039><c> shortest</c><00:02:10.520><c> way</c><00:02:10.720><c> to</c><00:02:10.880><c> travel</c><00:02:11.240><c> from</c>

00:02:11.510 --> 00:02:11.520 align:start position:0%
&gt;&gt; What's the shortest way to travel from
 

00:02:11.520 --> 00:02:13.470 align:start position:0%
&gt;&gt; What's the shortest way to travel from
Rotterdam<00:02:12.200><c> to</c><00:02:12.360><c> Groningen?</c>

00:02:13.470 --> 00:02:13.480 align:start position:0%
Rotterdam to Groningen?
 

00:02:13.480 --> 00:02:15.190 align:start position:0%
Rotterdam to Groningen?
&gt;&gt; In<00:02:13.600><c> other</c><00:02:13.760><c> words,</c><00:02:14.200><c> a</c><00:02:14.320><c> shortest</c><00:02:14.800><c> path</c>

00:02:15.190 --> 00:02:15.200 align:start position:0%
&gt;&gt; In other words, a shortest path
 

00:02:15.200 --> 00:02:16.670 align:start position:0%
&gt;&gt; In other words, a shortest path
algorithm.

00:02:16.670 --> 00:02:16.680 align:start position:0%
algorithm.
 

00:02:16.680 --> 00:02:18.310 align:start position:0%
algorithm.
Here's<00:02:17.080><c> a</c><00:02:17.160><c> simplified</c><00:02:17.760><c> graph</c><00:02:18.120><c> of</c><00:02:18.240><c> the</c>

00:02:18.310 --> 00:02:18.320 align:start position:0%
Here's a simplified graph of the
 

00:02:18.320 --> 00:02:20.310 align:start position:0%
Here's a simplified graph of the
Netherlands.<00:02:19.240><c> The</c><00:02:19.520><c> nodes</c><00:02:19.880><c> represent</c><00:02:20.240><c> the</c>

00:02:20.310 --> 00:02:20.320 align:start position:0%
Netherlands. The nodes represent the
 

00:02:20.320 --> 00:02:22.150 align:start position:0%
Netherlands. The nodes represent the
cities<00:02:20.840><c> and</c><00:02:20.959><c> the</c><00:02:21.160><c> edges</c><00:02:21.480><c> connecting</c><00:02:21.800><c> them</c><00:02:22.040><c> are</c>

00:02:22.150 --> 00:02:22.160 align:start position:0%
cities and the edges connecting them are
 

00:02:22.160 --> 00:02:23.430 align:start position:0%
cities and the edges connecting them are
the<00:02:22.280><c> roads.</c>

00:02:23.430 --> 00:02:23.440 align:start position:0%
the roads.
 

00:02:23.440 --> 00:02:24.790 align:start position:0%
the roads.
The<00:02:23.520><c> simplest</c><00:02:23.880><c> way</c><00:02:23.959><c> to</c><00:02:24.080><c> find</c><00:02:24.360><c> the</c><00:02:24.440><c> shortest</c>

00:02:24.790 --> 00:02:24.800 align:start position:0%
The simplest way to find the shortest
 

00:02:24.800 --> 00:02:26.949 align:start position:0%
The simplest way to find the shortest
path<00:02:25.120><c> from</c><00:02:25.400><c> Rotterdam</c><00:02:25.920><c> to</c><00:02:26.120><c> Groningen</c><00:02:26.760><c> looks</c>

00:02:26.949 --> 00:02:26.959 align:start position:0%
path from Rotterdam to Groningen looks
 

00:02:26.959 --> 00:02:28.110 align:start position:0%
path from Rotterdam to Groningen looks
like<00:02:27.160><c> this.</c>

00:02:28.110 --> 00:02:28.120 align:start position:0%
like this.
 

00:02:28.120 --> 00:02:29.750 align:start position:0%
like this.
Starting<00:02:28.480><c> from</c><00:02:28.720><c> Rotterdam,</c><00:02:29.320><c> we're</c><00:02:29.480><c> first</c>

00:02:29.750 --> 00:02:29.760 align:start position:0%
Starting from Rotterdam, we're first
 

00:02:29.760 --> 00:02:31.630 align:start position:0%
Starting from Rotterdam, we're first
going<00:02:29.920><c> to</c><00:02:30.000><c> explore</c><00:02:30.560><c> all</c><00:02:30.880><c> its</c><00:02:31.040><c> neighbors</c>

00:02:31.630 --> 00:02:31.640 align:start position:0%
going to explore all its neighbors
 

00:02:31.640 --> 00:02:33.630 align:start position:0%
going to explore all its neighbors
looking<00:02:31.920><c> for</c><00:02:32.080><c> Groningen.</c><00:02:32.720><c> Since</c><00:02:33.080><c> Groningen</c>

00:02:33.630 --> 00:02:33.640 align:start position:0%
looking for Groningen. Since Groningen
 

00:02:33.640 --> 00:02:35.230 align:start position:0%
looking for Groningen. Since Groningen
isn't<00:02:34.000><c> one</c><00:02:34.120><c> of</c><00:02:34.200><c> these</c><00:02:34.440><c> neighboring</c><00:02:34.840><c> nodes,</c>

00:02:35.230 --> 00:02:35.240 align:start position:0%
isn't one of these neighboring nodes,
 

00:02:35.240 --> 00:02:37.390 align:start position:0%
isn't one of these neighboring nodes,
we'll<00:02:35.480><c> mark</c><00:02:35.760><c> Rotterdam</c><00:02:36.280><c> as</c><00:02:36.440><c> explored</c><00:02:37.120><c> and</c>

00:02:37.390 --> 00:02:37.400 align:start position:0%
we'll mark Rotterdam as explored and
 

00:02:37.400 --> 00:02:38.949 align:start position:0%
we'll mark Rotterdam as explored and
keep<00:02:37.600><c> searching.</c>

00:02:38.949 --> 00:02:38.959 align:start position:0%
keep searching.
 

00:02:38.959 --> 00:02:41.110 align:start position:0%
keep searching.
So,<00:02:39.240><c> now</c><00:02:39.560><c> we'll</c><00:02:39.800><c> branch</c><00:02:40.160><c> out</c><00:02:40.320><c> from</c><00:02:40.560><c> these</c><00:02:40.920><c> four</c>

00:02:41.110 --> 00:02:41.120 align:start position:0%
So, now we'll branch out from these four
 

00:02:41.120 --> 00:02:43.870 align:start position:0%
So, now we'll branch out from these four
nodes<00:02:41.440><c> to</c><00:02:41.640><c> explore</c><00:02:42.160><c> all</c><00:02:42.320><c> of</c><00:02:42.480><c> their</c><00:02:42.760><c> neighbors.</c>

00:02:43.870 --> 00:02:43.880 align:start position:0%
nodes to explore all of their neighbors.
 

00:02:43.880 --> 00:02:45.710 align:start position:0%
nodes to explore all of their neighbors.
And<00:02:44.120><c> we</c><00:02:44.240><c> keep</c><00:02:44.560><c> branching</c><00:02:45.040><c> out</c><00:02:45.280><c> this</c><00:02:45.480><c> way</c>

00:02:45.710 --> 00:02:45.720 align:start position:0%
And we keep branching out this way
 

00:02:45.720 --> 00:02:47.990 align:start position:0%
And we keep branching out this way
exploring<00:02:46.320><c> all</c><00:02:46.600><c> neighboring</c><00:02:47.000><c> nodes</c><00:02:47.360><c> until</c><00:02:47.840><c> we</c>

00:02:47.990 --> 00:02:48.000 align:start position:0%
exploring all neighboring nodes until we
 

00:02:48.000 --> 00:02:50.750 align:start position:0%
exploring all neighboring nodes until we
stumble<00:02:48.400><c> upon</c><00:02:48.760><c> Groningen.</c>

00:02:50.750 --> 00:02:50.760 align:start position:0%
stumble upon Groningen.
 

00:02:50.760 --> 00:02:52.590 align:start position:0%
stumble upon Groningen.
This<00:02:51.040><c> algorithm</c><00:02:51.440><c> is</c><00:02:51.520><c> known</c><00:02:51.760><c> as</c><00:02:51.959><c> breadth-first</c>

00:02:52.590 --> 00:02:52.600 align:start position:0%
This algorithm is known as breadth-first
 

00:02:52.600 --> 00:02:54.510 align:start position:0%
This algorithm is known as breadth-first
search.<00:02:53.200><c> It</c><00:02:53.320><c> will</c><00:02:53.640><c> always</c><00:02:53.959><c> find</c><00:02:54.160><c> the</c><00:02:54.240><c> shortest</c>

00:02:54.510 --> 00:02:54.520 align:start position:0%
search. It will always find the shortest
 

00:02:54.520 --> 00:02:56.710 align:start position:0%
search. It will always find the shortest
path<00:02:54.840><c> because</c><00:02:55.160><c> it</c><00:02:55.280><c> checks</c><00:02:55.720><c> all</c><00:02:55.959><c> nodes</c><00:02:56.400><c> one</c>

00:02:56.710 --> 00:02:56.720 align:start position:0%
path because it checks all nodes one
 

00:02:56.720 --> 00:02:59.430 align:start position:0%
path because it checks all nodes one
step<00:02:56.920><c> away</c><00:02:57.400><c> and</c><00:02:57.480><c> then</c><00:02:57.800><c> two</c><00:02:58.000><c> steps</c><00:02:58.320><c> away</c><00:02:58.720><c> and</c><00:02:59.160><c> so</c>

00:02:59.430 --> 00:02:59.440 align:start position:0%
step away and then two steps away and so
 

00:02:59.440 --> 00:03:00.670 align:start position:0%
step away and then two steps away and so
on.

00:03:00.670 --> 00:03:00.680 align:start position:0%
on.
 

00:03:00.680 --> 00:03:02.750 align:start position:0%
on.
So,<00:03:00.959><c> if</c><00:03:01.080><c> there</c><00:03:01.320><c> were</c><00:03:01.600><c> a</c><00:03:01.680><c> path</c><00:03:02.000><c> from</c><00:03:02.280><c> Rotterdam</c>

00:03:02.750 --> 00:03:02.760 align:start position:0%
So, if there were a path from Rotterdam
 

00:03:02.760 --> 00:03:04.550 align:start position:0%
So, if there were a path from Rotterdam
to<00:03:02.880><c> Groningen</c><00:03:03.320><c> in</c><00:03:03.440><c> four</c><00:03:03.680><c> steps,</c><00:03:04.200><c> we</c><00:03:04.400><c> would</c>

00:03:04.550 --> 00:03:04.560 align:start position:0%
to Groningen in four steps, we would
 

00:03:04.560 --> 00:03:07.430 align:start position:0%
to Groningen in four steps, we would
have<00:03:04.680><c> found</c><00:03:04.959><c> it</c><00:03:05.080><c> on</c><00:03:05.160><c> the</c><00:03:05.280><c> fourth</c><00:03:05.640><c> iteration.</c>

00:03:07.430 --> 00:03:07.440 align:start position:0%
have found it on the fourth iteration.
 

00:03:07.440 --> 00:03:09.229 align:start position:0%
have found it on the fourth iteration.
But<00:03:07.560><c> we</c><00:03:07.680><c> didn't.</c><00:03:08.280><c> So,</c><00:03:08.440><c> the</c><00:03:08.560><c> shortest</c><00:03:08.840><c> path</c>

00:03:09.229 --> 00:03:09.239 align:start position:0%
But we didn't. So, the shortest path
 

00:03:09.239 --> 00:03:11.830 align:start position:0%
But we didn't. So, the shortest path
must<00:03:09.800><c> be</c><00:03:10.000><c> five</c><00:03:10.239><c> steps.</c><00:03:11.200><c> But</c><00:03:11.480><c> there's</c><00:03:11.720><c> a</c>

00:03:11.830 --> 00:03:11.840 align:start position:0%
must be five steps. But there's a
 

00:03:11.840 --> 00:03:13.229 align:start position:0%
must be five steps. But there's a
problem<00:03:12.320><c> with</c><00:03:12.440><c> this</c><00:03:12.560><c> approach.</c><00:03:13.200><c> I</c><00:03:13.227><c> [music]</c>

00:03:13.229 --> 00:03:13.239 align:start position:0%
problem with this approach. I [music]
 

00:03:13.239 --> 00:03:15.070 align:start position:0%
problem with this approach. I [music]
mean,<00:03:13.480><c> the</c><00:03:13.760><c> algorithm</c><00:03:14.239><c> considers</c><00:03:14.760><c> all</c><00:03:14.880><c> these</c>

00:03:15.070 --> 00:03:15.080 align:start position:0%
mean, the algorithm considers all these
 

00:03:15.080 --> 00:03:16.910 align:start position:0%
mean, the algorithm considers all these
roads<00:03:15.360><c> to</c><00:03:15.480><c> be</c><00:03:15.560><c> the</c><00:03:15.640><c> same</c><00:03:15.880><c> length,</c><00:03:16.400><c> which</c><00:03:16.640><c> is</c>

00:03:16.910 --> 00:03:16.920 align:start position:0%
roads to be the same length, which is
 

00:03:16.920 --> 00:03:19.229 align:start position:0%
roads to be the same length, which is
obviously<00:03:17.360><c> not</c><00:03:17.600><c> true.</c>

00:03:19.229 --> 00:03:19.239 align:start position:0%
obviously not true.
 

00:03:19.239 --> 00:03:21.110 align:start position:0%
obviously not true.
So,<00:03:19.480><c> let's</c><00:03:19.800><c> add</c><00:03:20.040><c> weights</c><00:03:20.440><c> to</c><00:03:20.640><c> represent</c>

00:03:21.110 --> 00:03:21.120 align:start position:0%
So, let's add weights to represent
 

00:03:21.120 --> 00:03:23.509 align:start position:0%
So, let's add weights to represent
distances<00:03:21.640><c> between</c><00:03:22.000><c> these</c><00:03:22.200><c> nodes.</c><00:03:23.080><c> Now,</c><00:03:23.400><c> the</c>

00:03:23.509 --> 00:03:23.519 align:start position:0%
distances between these nodes. Now, the
 

00:03:23.519 --> 00:03:25.430 align:start position:0%
distances between these nodes. Now, the
shortest<00:03:23.840><c> path</c><00:03:24.160><c> is</c><00:03:24.440><c> much</c><00:03:24.720><c> harder</c><00:03:25.040><c> to</c><00:03:25.120><c> figure</c>

00:03:25.430 --> 00:03:25.440 align:start position:0%
shortest path is much harder to figure
 

00:03:25.440 --> 00:03:27.670 align:start position:0%
shortest path is much harder to figure
out.<00:03:26.200><c> So,</c><00:03:26.519><c> Dijkstra</c><00:03:26.959><c> needed</c><00:03:27.400><c> a</c><00:03:27.440><c> better</c>

00:03:27.670 --> 00:03:27.680 align:start position:0%
out. So, Dijkstra needed a better
 

00:03:27.680 --> 00:03:29.310 align:start position:0%
out. So, Dijkstra needed a better
method.

00:03:29.310 --> 00:03:29.320 align:start position:0%
method.
 

00:03:29.320 --> 00:03:31.630 align:start position:0%
method.
&gt;&gt; One<00:03:29.480><c> morning,</c><00:03:29.959><c> I</c><00:03:30.040><c> was</c><00:03:30.239><c> shopping</c><00:03:30.760><c> in</c><00:03:31.000><c> Amsterdam</c>

00:03:31.630 --> 00:03:31.640 align:start position:0%
&gt;&gt; One morning, I was shopping in Amsterdam
 

00:03:31.640 --> 00:03:34.630 align:start position:0%
&gt;&gt; One morning, I was shopping in Amsterdam
with<00:03:31.880><c> my</c><00:03:32.040><c> young</c><00:03:32.280><c> fiance</c><00:03:33.280><c> and</c><00:03:33.640><c> tired,</c><00:03:34.200><c> we</c><00:03:34.360><c> sat</c>

00:03:34.630 --> 00:03:34.640 align:start position:0%
with my young fiance and tired, we sat
 

00:03:34.640 --> 00:03:36.790 align:start position:0%
with my young fiance and tired, we sat
down<00:03:34.760><c> on</c><00:03:34.880><c> the</c><00:03:34.959><c> cafe</c><00:03:35.280><c> terrace</c><00:03:36.000><c> to</c><00:03:36.120><c> drink</c><00:03:36.480><c> a</c><00:03:36.560><c> cup</c>

00:03:36.790 --> 00:03:36.800 align:start position:0%
down on the cafe terrace to drink a cup
 

00:03:36.800 --> 00:03:39.310 align:start position:0%
down on the cafe terrace to drink a cup
of<00:03:36.920><c> coffee.</c><00:03:37.560><c> And</c><00:03:37.840><c> I</c><00:03:37.920><c> was</c><00:03:38.120><c> just</c><00:03:38.400><c> thinking</c><00:03:38.920><c> about</c>

00:03:39.310 --> 00:03:39.320 align:start position:0%
of coffee. And I was just thinking about
 

00:03:39.320 --> 00:03:41.910 align:start position:0%
of coffee. And I was just thinking about
whether<00:03:39.680><c> I</c><00:03:39.800><c> could</c><00:03:40.000><c> do</c><00:03:40.120><c> this.</c>

00:03:41.910 --> 00:03:41.920 align:start position:0%
whether I could do this.
 

00:03:41.920 --> 00:03:44.110 align:start position:0%
whether I could do this.
&gt;&gt; His<00:03:42.080><c> idea</c><00:03:42.360><c> was</c><00:03:42.519><c> this.</c><00:03:43.280><c> First,</c><00:03:43.640><c> he</c><00:03:43.760><c> wanted</c><00:03:44.040><c> to</c>

00:03:44.110 --> 00:03:44.120 align:start position:0%
&gt;&gt; His idea was this. First, he wanted to
 

00:03:44.120 --> 00:03:45.870 align:start position:0%
&gt;&gt; His idea was this. First, he wanted to
keep<00:03:44.320><c> track</c><00:03:44.640><c> of</c><00:03:44.720><c> the</c><00:03:44.840><c> shortest</c><00:03:45.280><c> distance</c><00:03:45.720><c> from</c>

00:03:45.870 --> 00:03:45.880 align:start position:0%
keep track of the shortest distance from
 

00:03:45.880 --> 00:03:47.830 align:start position:0%
keep track of the shortest distance from
the<00:03:45.959><c> source</c><00:03:45.980><c> [music]</c><00:03:46.320><c> to</c><00:03:46.440><c> each</c><00:03:46.680><c> node.</c><00:03:47.440><c> This</c><00:03:47.720><c> is</c>

00:03:47.830 --> 00:03:47.840 align:start position:0%
the source [music] to each node. This is
 

00:03:47.840 --> 00:03:50.430 align:start position:0%
the source [music] to each node. This is
also<00:03:48.120><c> known</c><00:03:48.440><c> as</c><00:03:48.600><c> its</c><00:03:48.800><c> cost.</c>

00:03:50.430 --> 00:03:50.440 align:start position:0%
also known as its cost.
 

00:03:50.440 --> 00:03:52.270 align:start position:0%
also known as its cost.
His<00:03:50.560><c> goal?</c><00:03:51.239><c> Well,</c><00:03:51.560><c> if</c><00:03:51.680><c> he</c><00:03:51.760><c> could</c><00:03:51.920><c> find</c><00:03:52.200><c> the</c>

00:03:52.270 --> 00:03:52.280 align:start position:0%
His goal? Well, if he could find the
 

00:03:52.280 --> 00:03:54.030 align:start position:0%
His goal? Well, if he could find the
shortest<00:03:52.720><c> path</c><00:03:53.040><c> from</c><00:03:53.160><c> the</c><00:03:53.280><c> source</c><00:03:53.680><c> to</c><00:03:53.840><c> one</c>

00:03:54.030 --> 00:03:54.040 align:start position:0%
shortest path from the source to one
 

00:03:54.040 --> 00:03:55.790 align:start position:0%
shortest path from the source to one
node,<00:03:54.720><c> then</c><00:03:54.920><c> he</c><00:03:55.040><c> could</c><00:03:55.200><c> build</c><00:03:55.400><c> up</c><00:03:55.600><c> other</c>

00:03:55.790 --> 00:03:55.800 align:start position:0%
node, then he could build up other
 

00:03:55.800 --> 00:03:57.310 align:start position:0%
node, then he could build up other
shortest<00:03:56.160><c> paths</c><00:03:56.480><c> starting</c><00:03:56.840><c> from</c><00:03:56.960><c> this</c><00:03:57.120><c> new</c>

00:03:57.310 --> 00:03:57.320 align:start position:0%
shortest paths starting from this new
 

00:03:57.320 --> 00:04:01.190 align:start position:0%
shortest paths starting from this new
node,<00:03:58.000><c> and</c><00:03:58.240><c> then</c><00:03:58.400><c> the</c><00:03:58.480><c> next,</c><00:03:59.000><c> and</c><00:03:59.160><c> on</c><00:03:59.520><c> and</c><00:03:59.680><c> on.</c>

00:04:01.190 --> 00:04:01.200 align:start position:0%
node, and then the next, and on and on.
 

00:04:01.200 --> 00:04:02.790 align:start position:0%
node, and then the next, and on and on.
Now,<00:04:01.360><c> the</c><00:04:01.480><c> cost</c><00:04:01.800><c> of</c><00:04:01.880><c> the</c><00:04:01.960><c> starting</c><00:04:02.360><c> node</c><00:04:02.640><c> was</c>

00:04:02.790 --> 00:04:02.800 align:start position:0%
Now, the cost of the starting node was
 

00:04:02.800 --> 00:04:04.590 align:start position:0%
Now, the cost of the starting node was
zero,<00:04:03.440><c> but</c><00:04:03.680><c> since</c><00:04:03.920><c> he</c><00:04:04.000><c> hadn't</c><00:04:04.280><c> actually</c>

00:04:04.590 --> 00:04:04.600 align:start position:0%
zero, but since he hadn't actually
 

00:04:04.600 --> 00:04:06.310 align:start position:0%
zero, but since he hadn't actually
explored<00:04:05.040><c> the</c><00:04:05.120><c> rest</c><00:04:05.400><c> of</c><00:04:05.480><c> the</c><00:04:05.520><c> graph</c><00:04:05.880><c> yet,</c><00:04:06.160><c> he</c>

00:04:06.310 --> 00:04:06.320 align:start position:0%
explored the rest of the graph yet, he
 

00:04:06.320 --> 00:04:08.110 align:start position:0%
explored the rest of the graph yet, he
set<00:04:06.520><c> all</c><00:04:06.720><c> the</c><00:04:06.840><c> other</c><00:04:07.040><c> nodes</c><00:04:07.440><c> to</c><00:04:07.560><c> a</c><00:04:07.640><c> cost</c><00:04:08.000><c> of</c>

00:04:08.110 --> 00:04:08.120 align:start position:0%
set all the other nodes to a cost of
 

00:04:08.120 --> 00:04:09.630 align:start position:0%
set all the other nodes to a cost of
infinity.

00:04:09.630 --> 00:04:09.640 align:start position:0%
infinity.
 

00:04:09.640 --> 00:04:11.430 align:start position:0%
infinity.
Then,<00:04:10.040><c> just</c><00:04:10.320><c> like</c><00:04:10.520><c> breadth-first</c><00:04:10.959><c> search,</c>

00:04:11.430 --> 00:04:11.440 align:start position:0%
Then, just like breadth-first search,
 

00:04:11.440 --> 00:04:12.870 align:start position:0%
Then, just like breadth-first search,
Dijkstra<00:04:11.800><c> started</c><00:04:12.160><c> from</c><00:04:12.280><c> the</c><00:04:12.360><c> source</c><00:04:12.760><c> and</c>

00:04:12.870 --> 00:04:12.880 align:start position:0%
Dijkstra started from the source and
 

00:04:12.880 --> 00:04:14.350 align:start position:0%
Dijkstra started from the source and
explored<00:04:13.400><c> each</c><00:04:13.640><c> of</c><00:04:13.720><c> its</c><00:04:13.920><c> neighboring</c><00:04:14.142><c> [music]</c>

00:04:14.350 --> 00:04:14.360 align:start position:0%
explored each of its neighboring [music]
 

00:04:14.360 --> 00:04:15.510 align:start position:0%
explored each of its neighboring [music]
nodes.

00:04:15.510 --> 00:04:15.520 align:start position:0%
nodes.
 

00:04:15.520 --> 00:04:17.470 align:start position:0%
nodes.
At<00:04:15.560><c> every</c><00:04:15.760><c> step,</c><00:04:16.079><c> he'd</c><00:04:16.239><c> ask,</c><00:04:16.880><c> "Is</c><00:04:17.040><c> the</c><00:04:17.160><c> current</c>

00:04:17.470 --> 00:04:17.480 align:start position:0%
At every step, he'd ask, "Is the current
 

00:04:17.480 --> 00:04:18.949 align:start position:0%
At every step, he'd ask, "Is the current
path<00:04:17.799><c> to</c><00:04:17.880><c> this</c><00:04:18.079><c> node</c><00:04:18.440><c> the</c><00:04:18.519><c> shortest</c><00:04:18.727><c> [music]</c>

00:04:18.949 --> 00:04:18.959 align:start position:0%
path to this node the shortest [music]
 

00:04:18.959 --> 00:04:20.670 align:start position:0%
path to this node the shortest [music]
we've<00:04:19.160><c> seen</c><00:04:19.480><c> so</c><00:04:19.640><c> far?"</c>

00:04:20.670 --> 00:04:20.680 align:start position:0%
we've seen so far?"
 

00:04:20.680 --> 00:04:22.350 align:start position:0%
we've seen so far?"
For<00:04:20.799><c> example,</c><00:04:21.239><c> this</c><00:04:21.519><c> edge</c><00:04:21.760><c> only</c><00:04:21.959><c> has</c><00:04:22.120><c> a</c><00:04:22.160><c> weight</c>

00:04:22.350 --> 00:04:22.360 align:start position:0%
For example, this edge only has a weight
 

00:04:22.360 --> 00:04:24.150 align:start position:0%
For example, this edge only has a weight
of<00:04:22.480><c> one,</c><00:04:22.919><c> while</c><00:04:23.080><c> the</c><00:04:23.160><c> node's</c><00:04:23.480><c> current</c><00:04:23.760><c> cost</c><00:04:24.080><c> is</c>

00:04:24.150 --> 00:04:24.160 align:start position:0%
of one, while the node's current cost is
 

00:04:24.160 --> 00:04:25.310 align:start position:0%
of one, while the node's current cost is
infinity.

00:04:25.310 --> 00:04:25.320 align:start position:0%
infinity.
 

00:04:25.320 --> 00:04:26.830 align:start position:0%
infinity.
So,<00:04:25.440><c> this</c><00:04:25.640><c> path</c><00:04:25.960><c> is</c><00:04:26.080><c> the</c><00:04:26.160><c> shortest</c><00:04:26.560><c> yet</c><00:04:26.760><c> to</c>

00:04:26.830 --> 00:04:26.840 align:start position:0%
So, this path is the shortest yet to
 

00:04:26.840 --> 00:04:27.990 align:start position:0%
So, this path is the shortest yet to
that<00:04:27.080><c> node.</c>

00:04:27.990 --> 00:04:28.000 align:start position:0%
that node.
 

00:04:28.000 --> 00:04:31.990 align:start position:0%
that node.
So,<00:04:28.200><c> Dijkstra</c><00:04:28.560><c> updated</c><00:04:28.919><c> its</c><00:04:29.080><c> cost</c><00:04:29.440><c> to</c><00:04:29.560><c> one.</c>

00:04:31.990 --> 00:04:32.000 align:start position:0%
 
 

00:04:32.000 --> 00:04:33.870 align:start position:0%
 
Likewise,<00:04:32.720><c> these</c><00:04:32.919><c> nodes</c><00:04:33.200><c> were</c><00:04:33.320><c> updated</c><00:04:33.760><c> to</c>

00:04:33.870 --> 00:04:33.880 align:start position:0%
Likewise, these nodes were updated to
 

00:04:33.880 --> 00:04:36.990 align:start position:0%
Likewise, these nodes were updated to
three,<00:04:34.360><c> two,</c><00:04:34.760><c> and</c><00:04:34.960><c> four.</c>

00:04:36.990 --> 00:04:37.000 align:start position:0%
three, two, and four.
 

00:04:37.000 --> 00:04:38.430 align:start position:0%
three, two, and four.
After<00:04:37.240><c> checking</c><00:04:37.600><c> all</c><00:04:37.760><c> of</c><00:04:37.880><c> Rotterdam's</c>

00:04:38.430 --> 00:04:38.440 align:start position:0%
After checking all of Rotterdam's
 

00:04:38.440 --> 00:04:40.270 align:start position:0%
After checking all of Rotterdam's
neighboring<00:04:38.800><c> nodes,</c><00:04:39.400><c> Dijkstra</c><00:04:39.760><c> marked</c><00:04:40.040><c> it</c><00:04:40.160><c> as</c>

00:04:40.270 --> 00:04:40.280 align:start position:0%
neighboring nodes, Dijkstra marked it as
 

00:04:40.280 --> 00:04:41.710 align:start position:0%
neighboring nodes, Dijkstra marked it as
explored.

00:04:41.710 --> 00:04:41.720 align:start position:0%
explored.
 

00:04:41.720 --> 00:04:43.310 align:start position:0%
explored.
Then,<00:04:42.040><c> since</c><00:04:42.360><c> this</c><00:04:42.560><c> node</c><00:04:42.840><c> had</c><00:04:42.960><c> the</c><00:04:43.040><c> lowest</c>

00:04:43.310 --> 00:04:43.320 align:start position:0%
Then, since this node had the lowest
 

00:04:43.320 --> 00:04:45.230 align:start position:0%
Then, since this node had the lowest
cost<00:04:43.680><c> out</c><00:04:43.760><c> of</c><00:04:43.880><c> all</c><00:04:44.080><c> the</c><00:04:44.200><c> unexplored</c><00:04:44.760><c> nodes,</c>

00:04:45.230 --> 00:04:45.240 align:start position:0%
cost out of all the unexplored nodes,
 

00:04:45.240 --> 00:04:47.750 align:start position:0%
cost out of all the unexplored nodes,
Dijkstra<00:04:45.560><c> explored</c><00:04:46.040><c> it</c><00:04:46.240><c> next.</c>

00:04:47.750 --> 00:04:47.760 align:start position:0%
Dijkstra explored it next.
 

00:04:47.760 --> 00:04:49.350 align:start position:0%
Dijkstra explored it next.
Like<00:04:47.919><c> before,</c><00:04:48.360><c> he</c><00:04:48.480><c> checked</c><00:04:48.880><c> each</c><00:04:49.080><c> of</c><00:04:49.200><c> its</c>

00:04:49.350 --> 00:04:49.360 align:start position:0%
Like before, he checked each of its
 

00:04:49.360 --> 00:04:51.830 align:start position:0%
Like before, he checked each of its
edges<00:04:49.720><c> to</c><00:04:49.800><c> reduce</c><00:04:50.200><c> the</c><00:04:50.280><c> neighbors'</c><00:04:50.680><c> costs.</c>

00:04:51.830 --> 00:04:51.840 align:start position:0%
edges to reduce the neighbors' costs.
 

00:04:51.840 --> 00:04:53.350 align:start position:0%
edges to reduce the neighbors' costs.
Dijkstra<00:04:52.160><c> could</c><00:04:52.320><c> update</c><00:04:52.640><c> this</c><00:04:52.840><c> neighbor</c><00:04:53.200><c> from</c>

00:04:53.350 --> 00:04:53.360 align:start position:0%
Dijkstra could update this neighbor from
 

00:04:53.360 --> 00:04:55.630 align:start position:0%
Dijkstra could update this neighbor from
infinity<00:04:53.880><c> down</c><00:04:54.160><c> to</c><00:04:54.280><c> six,</c><00:04:54.960><c> a</c><00:04:55.040><c> total</c><00:04:55.320><c> path</c>

00:04:55.630 --> 00:04:55.640 align:start position:0%
infinity down to six, a total path
 

00:04:55.640 --> 00:04:58.030 align:start position:0%
infinity down to six, a total path
length<00:04:55.880><c> of</c><00:04:56.000><c> five</c><00:04:56.440><c> plus</c><00:04:56.760><c> one.</c><00:04:57.640><c> But,</c><00:04:57.919><c> he</c>

00:04:58.030 --> 00:04:58.040 align:start position:0%
length of five plus one. But, he
 

00:04:58.040 --> 00:04:59.790 align:start position:0%
length of five plus one. But, he
couldn't<00:04:58.280><c> update</c><00:04:58.640><c> this</c><00:04:58.840><c> one.</c><00:04:59.440><c> The</c><00:04:59.520><c> current</c>

00:04:59.790 --> 00:04:59.800 align:start position:0%
couldn't update this one. The current
 

00:04:59.800 --> 00:05:01.790 align:start position:0%
couldn't update this one. The current
path<00:05:00.080><c> has</c><00:05:00.200><c> a</c><00:05:00.240><c> cost</c><00:05:00.600><c> of</c><00:05:00.680><c> five,</c><00:05:01.160><c> but</c><00:05:01.400><c> the</c><00:05:01.480><c> node's</c>

00:05:01.790 --> 00:05:01.800 align:start position:0%
path has a cost of five, but the node's
 

00:05:01.800 --> 00:05:03.430 align:start position:0%
path has a cost of five, but the node's
cost<00:05:02.200><c> was</c><00:05:02.360><c> three.</c>

00:05:03.430 --> 00:05:03.440 align:start position:0%
cost was three.
 

00:05:03.440 --> 00:05:04.909 align:start position:0%
cost was three.
That<00:05:03.600><c> meant</c><00:05:03.840><c> there</c><00:05:03.960><c> was</c><00:05:04.160><c> already</c><00:05:04.520><c> a</c><00:05:04.560><c> shorter</c>

00:05:04.909 --> 00:05:04.919 align:start position:0%
That meant there was already a shorter
 

00:05:04.919 --> 00:05:07.790 align:start position:0%
That meant there was already a shorter
path,<00:05:05.640><c> this</c><00:05:05.840><c> one</c><00:05:06.080><c> directly</c><00:05:06.480><c> from</c><00:05:06.680><c> the</c><00:05:06.760><c> source.</c>

00:05:07.790 --> 00:05:07.800 align:start position:0%
path, this one directly from the source.
 

00:05:07.800 --> 00:05:09.110 align:start position:0%
path, this one directly from the source.
So,<00:05:07.960><c> there</c><00:05:08.120><c> was</c><00:05:08.240><c> no</c><00:05:08.400><c> need</c><00:05:08.600><c> to</c><00:05:08.680><c> update</c><00:05:09.040><c> the</c>

00:05:09.110 --> 00:05:09.120 align:start position:0%
So, there was no need to update the
 

00:05:09.120 --> 00:05:11.150 align:start position:0%
So, there was no need to update the
cost.

00:05:11.150 --> 00:05:11.160 align:start position:0%
cost.
 

00:05:11.160 --> 00:05:12.990 align:start position:0%
cost.
The<00:05:11.240><c> next</c><00:05:11.520><c> node</c><00:05:11.760><c> to</c><00:05:11.840><c> explore</c><00:05:12.360><c> is</c><00:05:12.520><c> this</c><00:05:12.760><c> one</c>

00:05:12.990 --> 00:05:13.000 align:start position:0%
The next node to explore is this one
 

00:05:13.000 --> 00:05:15.150 align:start position:0%
The next node to explore is this one
with<00:05:13.120><c> a</c><00:05:13.200><c> cost</c><00:05:13.560><c> of</c><00:05:13.720><c> two,</c><00:05:14.560><c> which</c><00:05:14.760><c> would</c><00:05:14.880><c> update</c>

00:05:15.150 --> 00:05:15.160 align:start position:0%
with a cost of two, which would update
 

00:05:15.160 --> 00:05:17.430 align:start position:0%
with a cost of two, which would update
its<00:05:15.320><c> neighbor</c><00:05:15.640><c> to</c><00:05:15.800><c> five.</c><00:05:16.800><c> Then,</c><00:05:16.960><c> this</c><00:05:17.160><c> one</c>

00:05:17.430 --> 00:05:17.440 align:start position:0%
its neighbor to five. Then, this one
 

00:05:17.440 --> 00:05:19.030 align:start position:0%
its neighbor to five. Then, this one
with<00:05:17.560><c> a</c><00:05:17.600><c> cost</c><00:05:17.880><c> of</c><00:05:18.000><c> three</c><00:05:18.400><c> would</c><00:05:18.600><c> update</c><00:05:18.880><c> its</c>

00:05:19.030 --> 00:05:19.040 align:start position:0%
with a cost of three would update its
 

00:05:19.040 --> 00:05:21.150 align:start position:0%
with a cost of three would update its
neighbors,<00:05:19.640><c> and</c><00:05:19.840><c> so</c><00:05:20.040><c> on.</c><00:05:20.600><c> Sometimes,</c>

00:05:21.150 --> 00:05:21.160 align:start position:0%
neighbors, and so on. Sometimes,
 

00:05:21.160 --> 00:05:22.830 align:start position:0%
neighbors, and so on. Sometimes,
Dijkstra<00:05:21.560><c> had</c><00:05:21.720><c> to</c><00:05:21.800><c> update</c><00:05:22.120><c> a</c><00:05:22.160><c> node's</c><00:05:22.480><c> cost</c><00:05:22.760><c> a</c>

00:05:22.830 --> 00:05:22.840 align:start position:0%
Dijkstra had to update a node's cost a
 

00:05:22.840 --> 00:05:25.070 align:start position:0%
Dijkstra had to update a node's cost a
few<00:05:23.000><c> times.</c><00:05:23.720><c> For</c><00:05:23.840><c> example,</c><00:05:24.360><c> he</c><00:05:24.520><c> first</c><00:05:24.840><c> reached</c>

00:05:25.070 --> 00:05:25.080 align:start position:0%
few times. For example, he first reached
 

00:05:25.080 --> 00:05:26.710 align:start position:0%
few times. For example, he first reached
this<00:05:25.280><c> node</c><00:05:25.600><c> through</c><00:05:25.760><c> this</c><00:05:25.960><c> path</c><00:05:26.320><c> with</c><00:05:26.480><c> edge</c>

00:05:26.710 --> 00:05:26.720 align:start position:0%
this node through this path with edge
 

00:05:26.720 --> 00:05:28.830 align:start position:0%
this node through this path with edge
weights<00:05:27.080><c> four</c><00:05:27.520><c> and</c><00:05:27.640><c> then</c><00:05:27.840><c> three,</c><00:05:28.360><c> for</c><00:05:28.480><c> a</c><00:05:28.520><c> total</c>

00:05:28.830 --> 00:05:28.840 align:start position:0%
weights four and then three, for a total
 

00:05:28.840 --> 00:05:31.270 align:start position:0%
weights four and then three, for a total
cost<00:05:29.160><c> of</c><00:05:29.240><c> seven.</c><00:05:29.919><c> But,</c><00:05:30.280><c> later</c><00:05:30.600><c> he</c><00:05:30.760><c> found</c><00:05:31.080><c> this</c>

00:05:31.270 --> 00:05:31.280 align:start position:0%
cost of seven. But, later he found this
 

00:05:31.280 --> 00:05:33.550 align:start position:0%
cost of seven. But, later he found this
path<00:05:31.600><c> with</c><00:05:31.760><c> cost</c><00:05:32.080><c> six,</c><00:05:32.760><c> so</c><00:05:32.919><c> he</c><00:05:33.040><c> updated</c><00:05:33.480><c> the</c>

00:05:33.550 --> 00:05:33.560 align:start position:0%
path with cost six, so he updated the
 

00:05:33.560 --> 00:05:38.510 align:start position:0%
path with cost six, so he updated the
node's<00:05:33.840><c> cost</c><00:05:34.160><c> again.</c>

00:05:38.510 --> 00:05:38.520 align:start position:0%
 
 

00:05:38.520 --> 00:05:39.670 align:start position:0%
 
The<00:05:38.560><c> first</c><00:05:38.840><c> time</c><00:05:39.120><c> Dijkstra</c><00:05:39.480><c> reached</c>

00:05:39.670 --> 00:05:39.680 align:start position:0%
The first time Dijkstra reached
 

00:05:39.680 --> 00:05:42.270 align:start position:0%
The first time Dijkstra reached
Groningen,<00:05:40.200><c> it</c><00:05:40.280><c> had</c><00:05:40.400><c> a</c><00:05:40.440><c> cost</c><00:05:40.840><c> of</c><00:05:40.919><c> 19,</c><00:05:41.880><c> but</c><00:05:42.160><c> it</c>

00:05:42.270 --> 00:05:42.280 align:start position:0%
Groningen, it had a cost of 19, but it
 

00:05:42.280 --> 00:05:43.710 align:start position:0%
Groningen, it had a cost of 19, but it
didn't<00:05:42.520><c> have</c><00:05:42.640><c> the</c><00:05:42.760><c> lowest</c><00:05:43.040><c> cost</c><00:05:43.400><c> out</c><00:05:43.480><c> of</c><00:05:43.600><c> all</c>

00:05:43.710 --> 00:05:43.720 align:start position:0%
didn't have the lowest cost out of all
 

00:05:43.720 --> 00:05:45.870 align:start position:0%
didn't have the lowest cost out of all
the<00:05:43.840><c> unexplored</c><00:05:44.400><c> nodes.</c><00:05:45.400><c> There</c><00:05:45.480><c> was</c><00:05:45.600><c> still</c>

00:05:45.870 --> 00:05:45.880 align:start position:0%
the unexplored nodes. There was still
 

00:05:45.880 --> 00:05:48.310 align:start position:0%
the unexplored nodes. There was still
this<00:05:46.120><c> node</c><00:05:46.440><c> with</c><00:05:46.600><c> a</c><00:05:46.640><c> cost</c><00:05:47.000><c> of</c><00:05:47.120><c> 16,</c><00:05:47.840><c> which</c><00:05:48.120><c> could</c>

00:05:48.310 --> 00:05:48.320 align:start position:0%
this node with a cost of 16, which could
 

00:05:48.320 --> 00:05:51.350 align:start position:0%
this node with a cost of 16, which could
be<00:05:48.440><c> hiding</c><00:05:48.760><c> a</c><00:05:48.800><c> shorter</c><00:05:49.120><c> path</c><00:05:49.400><c> to</c><00:05:49.520><c> our</c><00:05:49.640><c> goal.</c>

00:05:51.350 --> 00:05:51.360 align:start position:0%
be hiding a shorter path to our goal.
 

00:05:51.360 --> 00:05:53.550 align:start position:0%
be hiding a shorter path to our goal.
So,<00:05:51.560><c> he</c><00:05:51.760><c> continued</c><00:05:52.200><c> exploring</c><00:05:52.680><c> nodes</c><00:05:53.040><c> in</c><00:05:53.160><c> cost</c>

00:05:53.550 --> 00:05:53.560 align:start position:0%
So, he continued exploring nodes in cost
 

00:05:53.560 --> 00:05:56.390 align:start position:0%
So, he continued exploring nodes in cost
order<00:05:53.920><c> and</c><00:05:54.040><c> found</c><00:05:54.280><c> this</c><00:05:54.480><c> path</c><00:05:54.840><c> with</c><00:05:55.000><c> cost</c><00:05:55.360><c> 18.</c>

00:05:56.390 --> 00:05:56.400 align:start position:0%
order and found this path with cost 18.
 

00:05:56.400 --> 00:05:58.190 align:start position:0%
order and found this path with cost 18.
Now,<00:05:56.680><c> out</c><00:05:56.760><c> of</c><00:05:56.880><c> all</c><00:05:57.040><c> the</c><00:05:57.160><c> unexplored</c><00:05:57.720><c> nodes,</c>

00:05:58.190 --> 00:05:58.200 align:start position:0%
Now, out of all the unexplored nodes,
 

00:05:58.200 --> 00:06:00.710 align:start position:0%
Now, out of all the unexplored nodes,
Kloninga<00:05:58.680><c> had</c><00:05:58.840><c> the</c><00:05:58.960><c> next</c><00:05:59.280><c> lowest</c><00:05:59.560><c> cost.</c><00:06:00.600><c> So,</c>

00:06:00.710 --> 00:06:00.720 align:start position:0%
Kloninga had the next lowest cost. So,
 

00:06:00.720 --> 00:06:02.310 align:start position:0%
Kloninga had the next lowest cost. So,
Dijkstra<00:06:01.120><c> was</c><00:06:01.280><c> confident</c><00:06:01.760><c> that</c><00:06:01.880><c> he'd</c><00:06:02.000><c> found</c>

00:06:02.310 --> 00:06:02.320 align:start position:0%
Dijkstra was confident that he'd found
 

00:06:02.320 --> 00:06:04.430 align:start position:0%
Dijkstra was confident that he'd found
the<00:06:02.400><c> shortest</c><00:06:02.760><c> path.</c>

00:06:04.430 --> 00:06:04.440 align:start position:0%
the shortest path.
 

00:06:04.440 --> 00:06:05.790 align:start position:0%
the shortest path.
Here's<00:06:04.600><c> why.</c>

00:06:05.790 --> 00:06:05.800 align:start position:0%
Here's why.
 

00:06:05.800 --> 00:06:07.630 align:start position:0%
Here's why.
If<00:06:05.920><c> the</c><00:06:06.040><c> lowest</c><00:06:06.400><c> cost</c><00:06:06.760><c> among</c><00:06:07.000><c> the</c><00:06:07.080><c> unexplored</c>

00:06:07.630 --> 00:06:07.640 align:start position:0%
If the lowest cost among the unexplored
 

00:06:07.640 --> 00:06:09.990 align:start position:0%
If the lowest cost among the unexplored
nodes<00:06:07.920><c> is</c><00:06:08.040><c> 18,</c><00:06:09.000><c> then</c><00:06:09.120><c> Dijkstra</c><00:06:09.640><c> must</c><00:06:09.880><c> have</c>

00:06:09.990 --> 00:06:10.000 align:start position:0%
nodes is 18, then Dijkstra must have
 

00:06:10.000 --> 00:06:12.910 align:start position:0%
nodes is 18, then Dijkstra must have
explored<00:06:10.400><c> all</c><00:06:10.560><c> the</c><00:06:10.680><c> paths</c><00:06:11.120><c> with</c><00:06:11.280><c> cost</c><00:06:11.560><c> 16,</c><00:06:12.240><c> 14,</c>

00:06:12.910 --> 00:06:12.920 align:start position:0%
explored all the paths with cost 16, 14,
 

00:06:12.920 --> 00:06:13.910 align:start position:0%
explored all the paths with cost 16, 14,
13,<00:06:13.354><c> [music]</c>

00:06:13.910 --> 00:06:13.920 align:start position:0%
13, [music]
 

00:06:13.920 --> 00:06:16.270 align:start position:0%
13, [music]
every<00:06:14.240><c> path</c><00:06:14.640><c> less</c><00:06:14.960><c> than</c><00:06:15.160><c> 18.</c>

00:06:16.270 --> 00:06:16.280 align:start position:0%
every path less than 18.
 

00:06:16.280 --> 00:06:18.750 align:start position:0%
every path less than 18.
And<00:06:16.520><c> none</c><00:06:16.680><c> of</c><00:06:16.760><c> those</c><00:06:17.000><c> paths</c><00:06:17.560><c> reach</c><00:06:17.840><c> Kloninga.</c>

00:06:18.750 --> 00:06:18.760 align:start position:0%
And none of those paths reach Kloninga.
 

00:06:18.760 --> 00:06:20.390 align:start position:0%
And none of those paths reach Kloninga.
It's<00:06:18.960><c> just</c><00:06:19.240><c> like</c><00:06:19.440><c> breadth-first</c><00:06:19.919><c> search,</c>

00:06:20.390 --> 00:06:20.400 align:start position:0%
It's just like breadth-first search,
 

00:06:20.400 --> 00:06:21.870 align:start position:0%
It's just like breadth-first search,
searching<00:06:20.800><c> every</c><00:06:21.040><c> step</c><00:06:21.320><c> away</c><00:06:21.600><c> from</c><00:06:21.800><c> the</c>

00:06:21.870 --> 00:06:21.880 align:start position:0%
searching every step away from the
 

00:06:21.880 --> 00:06:23.990 align:start position:0%
searching every step away from the
source.<00:06:22.720><c> By</c><00:06:22.840><c> exploring</c><00:06:23.400><c> from</c><00:06:23.600><c> lowest</c><00:06:23.919><c> to</c>

00:06:23.990 --> 00:06:24.000 align:start position:0%
source. By exploring from lowest to
 

00:06:24.000 --> 00:06:25.830 align:start position:0%
source. By exploring from lowest to
highest<00:06:24.280><c> cost,</c><00:06:24.840><c> Dijkstra's</c><00:06:25.320><c> algorithm</c>

00:06:25.830 --> 00:06:25.840 align:start position:0%
highest cost, Dijkstra's algorithm
 

00:06:25.840 --> 00:06:27.590 align:start position:0%
highest cost, Dijkstra's algorithm
guaranteed<00:06:26.480><c> the</c><00:06:26.600><c> shortest</c><00:06:27.000><c> path</c><00:06:27.280><c> to</c><00:06:27.400><c> any</c>

00:06:27.590 --> 00:06:27.600 align:start position:0%
guaranteed the shortest path to any
 

00:06:27.600 --> 00:06:30.230 align:start position:0%
guaranteed the shortest path to any
target.

00:06:30.230 --> 00:06:30.240 align:start position:0%
target.
 

00:06:30.240 --> 00:06:33.110 align:start position:0%
target.
&gt;&gt; It<00:06:30.400><c> was</c><00:06:30.720><c> a</c><00:06:30.840><c> 20-minute</c><00:06:31.600><c> invention.</c><00:06:32.600><c> I</c><00:06:32.680><c> designed</c>

00:06:33.110 --> 00:06:33.120 align:start position:0%
&gt;&gt; It was a 20-minute invention. I designed
 

00:06:33.120 --> 00:06:35.550 align:start position:0%
&gt;&gt; It was a 20-minute invention. I designed
it<00:06:33.240><c> without</c><00:06:33.600><c> pencil</c><00:06:34.040><c> and</c><00:06:34.200><c> paper.</c><00:06:35.200><c> I</c><00:06:35.280><c> learned</c>

00:06:35.550 --> 00:06:35.560 align:start position:0%
it without pencil and paper. I learned
 

00:06:35.560 --> 00:06:37.830 align:start position:0%
it without pencil and paper. I learned
later<00:06:36.040><c> that</c><00:06:36.360><c> one</c><00:06:36.520><c> of</c><00:06:36.600><c> the</c><00:06:36.720><c> advantages</c><00:06:37.520><c> of</c>

00:06:37.830 --> 00:06:37.840 align:start position:0%
later that one of the advantages of
 

00:06:37.840 --> 00:06:40.390 align:start position:0%
later that one of the advantages of
designing<00:06:38.440><c> without</c><00:06:38.840><c> pencil</c><00:06:39.280><c> and</c><00:06:39.440><c> paper</c><00:06:40.280><c> is</c>

00:06:40.390 --> 00:06:40.400 align:start position:0%
designing without pencil and paper is
 

00:06:40.400 --> 00:06:42.950 align:start position:0%
designing without pencil and paper is
that<00:06:40.560><c> you're</c><00:06:40.840><c> almost</c><00:06:41.320><c> forced</c><00:06:41.919><c> to</c><00:06:42.040><c> avoid</c><00:06:42.600><c> all</c>

00:06:42.950 --> 00:06:42.960 align:start position:0%
that you're almost forced to avoid all
 

00:06:42.960 --> 00:06:45.030 align:start position:0%
that you're almost forced to avoid all
avoidable<00:06:43.520><c> complexities.</c>

00:06:45.030 --> 00:06:45.040 align:start position:0%
avoidable complexities.
 

00:06:45.040 --> 00:06:46.830 align:start position:0%
avoidable complexities.
&gt;&gt; During<00:06:45.440><c> ARMAC's</c><00:06:45.800><c> official</c><00:06:46.160><c> inauguration</c><00:06:46.760><c> in</c>

00:06:46.830 --> 00:06:46.840 align:start position:0%
&gt;&gt; During ARMAC's official inauguration in
 

00:06:46.840 --> 00:06:49.270 align:start position:0%
&gt;&gt; During ARMAC's official inauguration in
1956,<00:06:48.000><c> Dijkstra</c><00:06:48.560><c> asked</c><00:06:48.800><c> the</c><00:06:48.960><c> audience</c>

00:06:49.270 --> 00:06:49.280 align:start position:0%
1956, Dijkstra asked the audience
 

00:06:49.280 --> 00:06:50.670 align:start position:0%
1956, Dijkstra asked the audience
members<00:06:49.379><c> [music]</c><00:06:49.640><c> for</c><00:06:49.840><c> two</c><00:06:50.120><c> towns</c><00:06:50.480><c> on</c><00:06:50.600><c> a</c>

00:06:50.670 --> 00:06:50.680 align:start position:0%
members [music] for two towns on a
 

00:06:50.680 --> 00:06:52.909 align:start position:0%
members [music] for two towns on a
simplified<00:06:51.160><c> map</c><00:06:51.520><c> of</c><00:06:51.680><c> the</c><00:06:51.760><c> Netherlands.</c>

00:06:52.909 --> 00:06:52.919 align:start position:0%
simplified map of the Netherlands.
 

00:06:52.919 --> 00:06:54.870 align:start position:0%
simplified map of the Netherlands.
ARMAC<00:06:53.360><c> then</c><00:06:53.600><c> printed</c><00:06:53.960><c> the</c><00:06:54.040><c> shortest</c><00:06:54.480><c> route</c>

00:06:54.870 --> 00:06:54.880 align:start position:0%
ARMAC then printed the shortest route
 

00:06:54.880 --> 00:06:58.230 align:start position:0%
ARMAC then printed the shortest route
town<00:06:55.160><c> by</c><00:06:55.274><c> [music]</c><00:06:55.320><c> town.</c><00:06:56.160><c> It</c><00:06:56.360><c> ran</c><00:06:57.160><c> perfectly.</c>

00:06:58.230 --> 00:06:58.240 align:start position:0%
town by [music] town. It ran perfectly.
 

00:06:58.240 --> 00:07:00.070 align:start position:0%
town by [music] town. It ran perfectly.
The<00:06:58.280><c> computer</c><00:06:58.760><c> was</c><00:06:59.040><c> such</c><00:06:59.320><c> a</c><00:06:59.360><c> success</c><00:06:59.880><c> that</c><00:07:00.000><c> the</c>

00:07:00.070 --> 00:07:00.080 align:start position:0%
The computer was such a success that the
 

00:07:00.080 --> 00:07:01.670 align:start position:0%
The computer was such a success that the
center<00:07:00.400><c> immediately</c><00:07:00.919><c> started</c><00:07:01.280><c> the</c><00:07:01.360><c> next</c>

00:07:01.670 --> 00:07:01.680 align:start position:0%
center immediately started the next
 

00:07:01.680 --> 00:07:03.430 align:start position:0%
center immediately started the next
generation.

00:07:03.430 --> 00:07:03.440 align:start position:0%
generation.
 

00:07:03.440 --> 00:07:05.390 align:start position:0%
generation.
And<00:07:03.760><c> as</c><00:07:03.789><c> [music]</c><00:07:03.919><c> for</c><00:07:04.040><c> his</c><00:07:04.200><c> algorithm,</c><00:07:05.040><c> well,</c>

00:07:05.390 --> 00:07:05.400 align:start position:0%
And as [music] for his algorithm, well,
 

00:07:05.400 --> 00:07:08.030 align:start position:0%
And as [music] for his algorithm, well,
it<00:07:05.680><c> just</c><00:07:05.960><c> sat</c><00:07:06.240><c> in</c><00:07:06.320><c> his</c><00:07:06.480><c> papers</c><00:07:06.960><c> for</c><00:07:07.120><c> years.</c>

00:07:08.030 --> 00:07:08.040 align:start position:0%
it just sat in his papers for years.
 

00:07:08.040 --> 00:07:10.230 align:start position:0%
it just sat in his papers for years.
Algorithms<00:07:08.600><c> weren't</c><00:07:09.000><c> respectable</c><00:07:09.880><c> enough</c>

00:07:10.230 --> 00:07:10.240 align:start position:0%
Algorithms weren't respectable enough
 

00:07:10.240 --> 00:07:11.870 align:start position:0%
Algorithms weren't respectable enough
for<00:07:10.480><c> mathematics</c><00:07:11.000><c> journals,</c><00:07:11.640><c> and</c><00:07:11.760><c> there</c>

00:07:11.870 --> 00:07:11.880 align:start position:0%
for mathematics journals, and there
 

00:07:11.880 --> 00:07:13.310 align:start position:0%
for mathematics journals, and there
weren't<00:07:12.120><c> very</c><00:07:12.320><c> many</c><00:07:12.560><c> computing</c><00:07:13.000><c> journals</c>

00:07:13.310 --> 00:07:13.320 align:start position:0%
weren't very many computing journals
 

00:07:13.320 --> 00:07:14.470 align:start position:0%
weren't very many computing journals
yet.

00:07:14.470 --> 00:07:14.480 align:start position:0%
yet.
 

00:07:14.480 --> 00:07:16.790 align:start position:0%
yet.
But<00:07:14.560><c> in</c><00:07:14.640><c> 1959,</c><00:07:15.440><c> he</c><00:07:15.600><c> published</c><00:07:16.000><c> his</c><00:07:16.160><c> work</c><00:07:16.480><c> in</c>

00:07:16.790 --> 00:07:16.800 align:start position:0%
But in 1959, he published his work in
 

00:07:16.800 --> 00:07:18.950 align:start position:0%
But in 1959, he published his work in
Numerische<00:07:17.280><c> Mathematik,</c><00:07:18.160><c> or</c><00:07:18.440><c> Numerical</c>

00:07:18.950 --> 00:07:18.960 align:start position:0%
Numerische Mathematik, or Numerical
 

00:07:18.960 --> 00:07:20.870 align:start position:0%
Numerische Mathematik, or Numerical
Mathematics,<00:07:19.760><c> a</c><00:07:19.840><c> brand</c><00:07:20.120><c> new</c><00:07:20.320><c> German</c><00:07:20.600><c> journal</c>

00:07:20.870 --> 00:07:20.880 align:start position:0%
Mathematics, a brand new German journal
 

00:07:20.880 --> 00:07:22.190 align:start position:0%
Mathematics, a brand new German journal
that<00:07:21.280><c> needed</c><00:07:21.560><c> some</c><00:07:21.720><c> help</c><00:07:22.000><c> getting</c>

00:07:22.190 --> 00:07:22.200 align:start position:0%
that needed some help getting
 

00:07:22.200 --> 00:07:23.670 align:start position:0%
that needed some help getting
established.

00:07:23.670 --> 00:07:23.680 align:start position:0%
established.
 

00:07:23.680 --> 00:07:25.830 align:start position:0%
established.
And<00:07:23.800><c> that</c><00:07:24.280><c> was</c><00:07:24.440><c> the</c><00:07:24.520><c> beginning.</c>

00:07:25.830 --> 00:07:25.840 align:start position:0%
And that was the beginning.
 

00:07:25.840 --> 00:07:28.150 align:start position:0%
And that was the beginning.
&gt;&gt; Eventually,<00:07:26.480><c> that</c><00:07:26.760><c> algorithm</c><00:07:27.280><c> became,</c><00:07:27.919><c> to</c><00:07:28.040><c> my</c>

00:07:28.150 --> 00:07:28.160 align:start position:0%
&gt;&gt; Eventually, that algorithm became, to my
 

00:07:28.160 --> 00:07:30.950 align:start position:0%
&gt;&gt; Eventually, that algorithm became, to my
great<00:07:28.480><c> amazement,</c><00:07:29.560><c> one</c><00:07:29.840><c> of</c><00:07:29.960><c> the</c><00:07:30.080><c> cornerstones</c>

00:07:30.950 --> 00:07:30.960 align:start position:0%
great amazement, one of the cornerstones
 

00:07:30.960 --> 00:07:32.430 align:start position:0%
great amazement, one of the cornerstones
of<00:07:31.080><c> my</c><00:07:31.240><c> fame.</c>

00:07:32.430 --> 00:07:32.440 align:start position:0%
of my fame.
 

00:07:32.440 --> 00:07:34.670 align:start position:0%
of my fame.
I<00:07:32.520><c> found</c><00:07:32.840><c> it</c><00:07:33.000><c> in</c><00:07:33.120><c> the</c><00:07:33.240><c> early</c><00:07:33.520><c> '60s</c><00:07:34.120><c> in</c><00:07:34.240><c> a</c><00:07:34.280><c> German</c>

00:07:34.670 --> 00:07:34.680 align:start position:0%
I found it in the early '60s in a German
 

00:07:34.680 --> 00:07:36.630 align:start position:0%
I found it in the early '60s in a German
book<00:07:35.000><c> on</c><00:07:35.200><c> management</c><00:07:35.680><c> science,</c><00:07:36.320><c> thus</c>

00:07:36.630 --> 00:07:36.640 align:start position:0%
book on management science, thus
 

00:07:36.640 --> 00:07:39.150 align:start position:0%
book on management science, thus
Dijkstra's<00:07:37.480><c> Verfahren.</c>

00:07:39.150 --> 00:07:39.160 align:start position:0%
Dijkstra's Verfahren.
 

00:07:39.160 --> 00:07:41.270 align:start position:0%
Dijkstra's Verfahren.
Suddenly,<00:07:39.760><c> there</c><00:07:39.960><c> was</c><00:07:40.120><c> a</c><00:07:40.200><c> method</c><00:07:40.760><c> named</c><00:07:41.040><c> after</c>

00:07:41.270 --> 00:07:41.280 align:start position:0%
Suddenly, there was a method named after
 

00:07:41.280 --> 00:07:42.190 align:start position:0%
Suddenly, there was a method named after
me.

00:07:42.190 --> 00:07:42.200 align:start position:0%
me.
 

00:07:42.200 --> 00:07:43.990 align:start position:0%
me.
&gt;&gt; Dijkstra's<00:07:42.720><c> algorithm</c><00:07:43.240><c> is</c><00:07:43.360><c> still</c><00:07:43.600><c> regarded</c>

00:07:43.990 --> 00:07:44.000 align:start position:0%
&gt;&gt; Dijkstra's algorithm is still regarded
 

00:07:44.000 --> 00:07:45.710 align:start position:0%
&gt;&gt; Dijkstra's algorithm is still regarded
as<00:07:44.160><c> one</c><00:07:44.280><c> of</c><00:07:44.360><c> the</c><00:07:44.400><c> most</c><00:07:44.640><c> elegant</c><00:07:45.120><c> shortest</c><00:07:45.440><c> path</c>

00:07:45.710 --> 00:07:45.720 align:start position:0%
as one of the most elegant shortest path
 

00:07:45.720 --> 00:07:48.230 align:start position:0%
as one of the most elegant shortest path
algorithms.<00:07:46.920><c> But,</c><00:07:47.240><c> it</c><00:07:47.520><c> isn't</c><00:07:47.840><c> good</c><00:07:48.000><c> enough</c>

00:07:48.230 --> 00:07:48.240 align:start position:0%
algorithms. But, it isn't good enough
 

00:07:48.240 --> 00:07:50.470 align:start position:0%
algorithms. But, it isn't good enough
for<00:07:48.360><c> Google</c><00:07:48.600><c> Maps.</c>

00:07:50.470 --> 00:07:50.480 align:start position:0%
for Google Maps.
 

00:07:50.480 --> 00:07:51.750 align:start position:0%
for Google Maps.
&gt;&gt; Let's<00:07:50.680><c> say</c><00:07:50.800><c> I</c><00:07:50.840><c> want</c><00:07:51.000><c> to</c><00:07:51.080><c> get</c><00:07:51.240><c> from</c><00:07:51.400><c> Newark</c>

00:07:51.750 --> 00:07:51.760 align:start position:0%
&gt;&gt; Let's say I want to get from Newark
 

00:07:51.760 --> 00:07:53.430 align:start position:0%
&gt;&gt; Let's say I want to get from Newark
Airport<00:07:52.200><c> in</c><00:07:52.280><c> New</c><00:07:52.440><c> Jersey</c><00:07:53.000><c> over</c><00:07:53.240><c> to</c><00:07:53.320><c> the</c>

00:07:53.430 --> 00:07:53.440 align:start position:0%
Airport in New Jersey over to the
 

00:07:53.440 --> 00:07:55.510 align:start position:0%
Airport in New Jersey over to the
Central<00:07:53.840><c> Park</c><00:07:54.120><c> Zoo.</c><00:07:54.760><c> First,</c><00:07:55.120><c> Dijkstra's</c>

00:07:55.510 --> 00:07:55.520 align:start position:0%
Central Park Zoo. First, Dijkstra's
 

00:07:55.520 --> 00:07:58.110 align:start position:0%
Central Park Zoo. First, Dijkstra's
algorithm<00:07:55.960><c> checks</c><00:07:56.280><c> all</c><00:07:56.400><c> the</c><00:07:56.520><c> 10</c><00:07:56.720><c> km</c><00:07:57.200><c> journeys,</c>

00:07:58.110 --> 00:07:58.120 align:start position:0%
algorithm checks all the 10 km journeys,
 

00:07:58.120 --> 00:08:00.350 align:start position:0%
algorithm checks all the 10 km journeys,
and<00:07:58.280><c> then</c><00:07:58.440><c> all</c><00:07:58.560><c> the</c><00:07:58.680><c> 20</c><00:07:58.920><c> km</c><00:07:59.360><c> journeys,</c><00:07:59.960><c> and</c><00:08:00.120><c> so</c>

00:08:00.350 --> 00:08:00.360 align:start position:0%
and then all the 20 km journeys, and so
 

00:08:00.360 --> 00:08:02.550 align:start position:0%
and then all the 20 km journeys, and so
on<00:08:00.560><c> until</c><00:08:00.920><c> it</c><00:08:01.000><c> reaches</c><00:08:01.360><c> all</c><00:08:01.480><c> the</c><00:08:01.600><c> 28</c><00:08:02.120><c> km</c>

00:08:02.550 --> 00:08:02.560 align:start position:0%
on until it reaches all the 28 km
 

00:08:02.560 --> 00:08:05.350 align:start position:0%
on until it reaches all the 28 km
journeys,<00:08:03.120><c> which</c><00:08:03.280><c> includes</c><00:08:03.720><c> the</c><00:08:03.800><c> zoo.</c>

00:08:05.350 --> 00:08:05.360 align:start position:0%
journeys, which includes the zoo.
 

00:08:05.360 --> 00:08:07.750 align:start position:0%
journeys, which includes the zoo.
The<00:08:05.440><c> search</c><00:08:05.680><c> frontier</c><00:08:06.040><c> covers</c><00:08:06.360><c> over</c><00:08:06.560><c> 65,000</c>

00:08:07.750 --> 00:08:07.760 align:start position:0%
The search frontier covers over 65,000
 

00:08:07.760 --> 00:08:09.750 align:start position:0%
The search frontier covers over 65,000
nodes<00:08:08.360><c> and</c><00:08:08.480><c> includes</c><00:08:08.920><c> places</c><00:08:09.280><c> that</c><00:08:09.440><c> are</c><00:08:09.520><c> way</c>

00:08:09.750 --> 00:08:09.760 align:start position:0%
nodes and includes places that are way
 

00:08:09.760 --> 00:08:12.070 align:start position:0%
nodes and includes places that are way
off,<00:08:10.240><c> like</c><00:08:10.440><c> Staten</c><00:08:10.920><c> Island</c><00:08:11.360><c> and</c><00:08:11.520><c> large</c><00:08:11.800><c> swaths</c>

00:08:12.070 --> 00:08:12.080 align:start position:0%
off, like Staten Island and large swaths
 

00:08:12.080 --> 00:08:14.270 align:start position:0%
off, like Staten Island and large swaths
of<00:08:12.200><c> New</c><00:08:12.320><c> Jersey.</c>

00:08:14.270 --> 00:08:14.280 align:start position:0%
of New Jersey.
 

00:08:14.280 --> 00:08:15.470 align:start position:0%
of New Jersey.
But,<00:08:14.600><c> even</c><00:08:14.840><c> though</c><00:08:14.960><c> it</c><00:08:15.080><c> searched</c><00:08:15.400><c> in</c>

00:08:15.470 --> 00:08:15.480 align:start position:0%
But, even though it searched in
 

00:08:15.480 --> 00:08:17.750 align:start position:0%
But, even though it searched in
illogical<00:08:16.000><c> directions,</c><00:08:16.800><c> the</c><00:08:16.919><c> run</c><00:08:17.120><c> time</c><00:08:17.480><c> was</c>

00:08:17.750 --> 00:08:17.760 align:start position:0%
illogical directions, the run time was
 

00:08:17.760 --> 00:08:19.830 align:start position:0%
illogical directions, the run time was
about<00:08:18.000><c> a</c><00:08:18.080><c> tenth</c><00:08:18.440><c> of</c><00:08:18.560><c> a</c><00:08:18.600><c> second,</c><00:08:19.640><c> which</c><00:08:19.760><c> is</c>

00:08:19.830 --> 00:08:19.840 align:start position:0%
about a tenth of a second, which is
 

00:08:19.840 --> 00:08:21.830 align:start position:0%
about a tenth of a second, which is
incredibly<00:08:20.400><c> fast.</c>

00:08:21.830 --> 00:08:21.840 align:start position:0%
incredibly fast.
 

00:08:21.840 --> 00:08:23.190 align:start position:0%
incredibly fast.
&gt;&gt; And<00:08:22.040><c> for</c><00:08:22.160><c> anyone</c><00:08:22.480><c> wanting</c><00:08:22.720><c> to</c><00:08:22.800><c> set</c><00:08:22.960><c> up</c><00:08:23.080><c> their</c>

00:08:23.190 --> 00:08:23.200 align:start position:0%
&gt;&gt; And for anyone wanting to set up their
 

00:08:23.200 --> 00:08:24.909 align:start position:0%
&gt;&gt; And for anyone wanting to set up their
own<00:08:23.360><c> pathfinding</c><00:08:23.919><c> tests,</c><00:08:24.400><c> we</c><00:08:24.520><c> were</c><00:08:24.640><c> able</c><00:08:24.840><c> to</c>

00:08:24.909 --> 00:08:24.919 align:start position:0%
own pathfinding tests, we were able to
 

00:08:24.919 --> 00:08:26.550 align:start position:0%
own pathfinding tests, we were able to
get<00:08:25.040><c> a</c><00:08:25.080><c> feel</c><00:08:25.400><c> for</c><00:08:25.520><c> these</c><00:08:25.680><c> algorithms</c><00:08:26.280><c> using</c>

00:08:26.550 --> 00:08:26.560 align:start position:0%
get a feel for these algorithms using
 

00:08:26.560 --> 00:08:28.710 align:start position:0%
get a feel for these algorithms using
some<00:08:26.720><c> Python</c><00:08:27.160><c> scripts</c><00:08:27.560><c> and</c><00:08:27.760><c> actual</c><00:08:28.120><c> maps</c><00:08:28.480><c> from</c>

00:08:28.710 --> 00:08:28.720 align:start position:0%
some Python scripts and actual maps from
 

00:08:28.720 --> 00:08:30.870 align:start position:0%
some Python scripts and actual maps from
OpenStreetMap.<00:08:29.919><c> Solving</c><00:08:30.280><c> problems</c><00:08:30.640><c> using</c>

00:08:30.870 --> 00:08:30.880 align:start position:0%
OpenStreetMap. Solving problems using
 

00:08:30.880 --> 00:08:32.310 align:start position:0%
OpenStreetMap. Solving problems using
code<00:08:31.120><c> like</c><00:08:31.320><c> this</c><00:08:31.520><c> is</c><00:08:31.640><c> as</c><00:08:31.760><c> much</c><00:08:32.000><c> about</c><00:08:32.200><c> the</c>

00:08:32.310 --> 00:08:32.320 align:start position:0%
code like this is as much about the
 

00:08:32.320 --> 00:08:33.515 align:start position:0%
code like this is as much about the
journey<00:08:32.719><c> as</c><00:08:32.840><c> it</c><00:08:32.960><c> is</c><00:08:33.080><c> about</c><00:08:33.280><c> the</c><00:08:33.360><c> destination.</c>

00:08:33.515 --> 00:08:33.525 align:start position:0%
journey as it is about the destination.
 

00:08:33.525 --> 00:08:34.510 align:start position:0%
journey as it is about the destination.
[music]

00:08:34.510 --> 00:08:34.520 align:start position:0%
[music]
 

00:08:34.520 --> 00:08:36.110 align:start position:0%
[music]
You<00:08:34.599><c> get</c><00:08:34.719><c> to</c><00:08:34.800><c> understand</c><00:08:35.240><c> how</c><00:08:35.360><c> Dijkstra</c><00:08:35.760><c> works</c>

00:08:36.110 --> 00:08:36.120 align:start position:0%
You get to understand how Dijkstra works
 

00:08:36.120 --> 00:08:37.950 align:start position:0%
You get to understand how Dijkstra works
under<00:08:36.400><c> the</c><00:08:36.520><c> hood,</c><00:08:37.120><c> but</c><00:08:37.240><c> along</c><00:08:37.479><c> the</c><00:08:37.599><c> way</c><00:08:37.840><c> you</c>

00:08:37.950 --> 00:08:37.960 align:start position:0%
under the hood, but along the way you
 

00:08:37.960 --> 00:08:39.990 align:start position:0%
under the hood, but along the way you
also<00:08:38.200><c> brush</c><00:08:38.479><c> up</c><00:08:38.599><c> on</c><00:08:38.719><c> your</c><00:08:38.800><c> coding</c><00:08:39.080><c> skills.</c>

00:08:39.990 --> 00:08:40.000 align:start position:0%
also brush up on your coding skills.
 

00:08:40.000 --> 00:08:41.350 align:start position:0%
also brush up on your coding skills.
&gt;&gt; If<00:08:40.159><c> that's</c><00:08:40.360><c> something</c><00:08:40.560><c> you</c><00:08:40.640><c> want</c><00:08:40.760><c> to</c><00:08:40.840><c> try</c><00:08:41.080><c> out,</c>

00:08:41.350 --> 00:08:41.360 align:start position:0%
&gt;&gt; If that's something you want to try out,
 

00:08:41.360 --> 00:08:42.990 align:start position:0%
&gt;&gt; If that's something you want to try out,
I<00:08:41.440><c> strongly</c><00:08:41.840><c> recommend</c><00:08:42.240><c> today's</c><00:08:42.560><c> sponsor</c>

00:08:42.990 --> 00:08:43.000 align:start position:0%
I strongly recommend today's sponsor
 

00:08:43.000 --> 00:08:44.829 align:start position:0%
I strongly recommend today's sponsor
boot.dev.<00:08:43.960><c> Instead</c><00:08:44.120><c> of</c><00:08:44.200><c> blinding</c><00:08:44.560><c> you</c><00:08:44.680><c> with</c>

00:08:44.829 --> 00:08:44.839 align:start position:0%
boot.dev. Instead of blinding you with
 

00:08:44.839 --> 00:08:46.310 align:start position:0%
boot.dev. Instead of blinding you with
code,<00:08:45.240><c> their</c><00:08:45.400><c> courses</c><00:08:45.839><c> drill</c><00:08:46.120><c> in</c><00:08:46.240><c> the</c>

00:08:46.310 --> 00:08:46.320 align:start position:0%
code, their courses drill in the
 

00:08:46.320 --> 00:08:48.070 align:start position:0%
code, their courses drill in the
fundamentals<00:08:47.120><c> by</c><00:08:47.240><c> giving</c><00:08:47.480><c> you</c><00:08:47.640><c> actual</c>

00:08:48.070 --> 00:08:48.080 align:start position:0%
fundamentals by giving you actual
 

00:08:48.080 --> 00:08:50.070 align:start position:0%
fundamentals by giving you actual
problems<00:08:48.520><c> to</c><00:08:48.600><c> solve.</c><00:08:49.120><c> Designing</c><00:08:49.520><c> an</c><00:08:49.640><c> RPG</c>

00:08:50.070 --> 00:08:50.080 align:start position:0%
problems to solve. Designing an RPG
 

00:08:50.080 --> 00:08:52.710 align:start position:0%
problems to solve. Designing an RPG
game,<00:08:50.560><c> building</c><00:08:50.880><c> a</c><00:08:50.960><c> payment</c><00:08:51.360><c> app,</c><00:08:51.880><c> or</c><00:08:52.040><c> yes,</c>

00:08:52.710 --> 00:08:52.720 align:start position:0%
game, building a payment app, or yes,
 

00:08:52.720 --> 00:08:54.350 align:start position:0%
game, building a payment app, or yes,
running<00:08:53.000><c> Dijkstra's</c><00:08:53.400><c> algorithm.</c><00:08:54.200><c> Their</c>

00:08:54.350 --> 00:08:54.360 align:start position:0%
running Dijkstra's algorithm. Their
 

00:08:54.360 --> 00:08:56.190 align:start position:0%
running Dijkstra's algorithm. Their
courses<00:08:54.720><c> start</c><00:08:54.920><c> with</c><00:08:55.080><c> overview</c><00:08:55.440><c> videos</c><00:08:56.000><c> and</c>

00:08:56.190 --> 00:08:56.200 align:start position:0%
courses start with overview videos and
 

00:08:56.200 --> 00:08:57.790 align:start position:0%
courses start with overview videos and
steadily<00:08:56.560><c> feed</c><00:08:56.760><c> in</c><00:08:56.880><c> terminology</c><00:08:57.560><c> to</c><00:08:57.640><c> make</c>

00:08:57.790 --> 00:08:57.800 align:start position:0%
steadily feed in terminology to make
 

00:08:57.800 --> 00:08:59.670 align:start position:0%
steadily feed in terminology to make
sure<00:08:57.920><c> that</c><00:08:58.040><c> you</c><00:08:58.240><c> actually</c><00:08:58.600><c> understand</c><00:08:59.080><c> it.</c>

00:08:59.670 --> 00:08:59.680 align:start position:0%
sure that you actually understand it.
 

00:08:59.680 --> 00:09:01.510 align:start position:0%
sure that you actually understand it.
They<00:08:59.760><c> even</c><00:08:59.920><c> cover</c><00:09:00.160><c> pronunciation.</c><00:09:01.360><c> You</c><00:09:01.400><c> ever</c>

00:09:01.510 --> 00:09:01.520 align:start position:0%
They even cover pronunciation. You ever
 

00:09:01.520 --> 00:09:03.350 align:start position:0%
They even cover pronunciation. You ever
heard<00:09:01.680><c> of</c><00:09:01.800><c> squeal?</c>

00:09:03.350 --> 00:09:03.360 align:start position:0%
heard of squeal?
 

00:09:03.360 --> 00:09:04.710 align:start position:0%
heard of squeal?
Okay,<00:09:03.400><c> it's</c><00:09:03.560><c> sequel.</c>

00:09:04.710 --> 00:09:04.720 align:start position:0%
Okay, it's sequel.
 

00:09:04.720 --> 00:09:06.230 align:start position:0%
Okay, it's sequel.
Well,<00:09:04.960><c> it's</c><00:09:05.120><c> a</c><00:09:05.160><c> programming</c><00:09:05.680><c> language</c><00:09:06.040><c> that's</c>

00:09:06.230 --> 00:09:06.240 align:start position:0%
Well, it's a programming language that's
 

00:09:06.240 --> 00:09:07.576 align:start position:0%
Well, it's a programming language that's
become<00:09:06.440><c> a</c><00:09:06.520><c> bottleneck</c><00:09:07.000><c> for</c><00:09:07.120><c> certain</c><00:09:07.360><c> jobs.</c>

00:09:07.576 --> 00:09:07.586 align:start position:0%
become a bottleneck for certain jobs.
 

00:09:07.586 --> 00:09:10.230 align:start position:0%
become a bottleneck for certain jobs.
[music]<00:09:08.040><c> Take</c><00:09:08.240><c> data</c><00:09:08.480><c> science.</c><00:09:08.960><c> 60%</c><00:09:09.600><c> of</c><00:09:09.680><c> US</c><00:09:10.000><c> job</c>

00:09:10.230 --> 00:09:10.240 align:start position:0%
[music] Take data science. 60% of US job
 

00:09:10.240 --> 00:09:11.670 align:start position:0%
[music] Take data science. 60% of US job
listings<00:09:10.600><c> last</c><00:09:10.839><c> year</c><00:09:11.000><c> required</c><00:09:11.400><c> you</c><00:09:11.480><c> to</c><00:09:11.560><c> know</c>

00:09:11.670 --> 00:09:11.680 align:start position:0%
listings last year required you to know
 

00:09:11.680 --> 00:09:13.490 align:start position:0%
listings last year required you to know
sequel.<00:09:12.480><c> That's</c><00:09:12.600><c> almost</c><00:09:12.880><c> 80%</c><00:09:13.360><c> for</c><00:09:13.480><c> Python.</c>

00:09:13.490 --> 00:09:13.500 align:start position:0%
sequel. That's almost 80% for Python.
 

00:09:13.500 --> 00:09:14.150 align:start position:0%
sequel. That's almost 80% for Python.
[music]

00:09:14.150 --> 00:09:14.160 align:start position:0%
[music]
 

00:09:14.160 --> 00:09:16.110 align:start position:0%
[music]
boot.dev<00:09:14.760><c> is</c><00:09:14.880><c> geared</c><00:09:15.120><c> up</c><00:09:15.280><c> to</c><00:09:15.400><c> teach</c><00:09:15.720><c> you</c><00:09:16.000><c> the</c>

00:09:16.110 --> 00:09:16.120 align:start position:0%
boot.dev is geared up to teach you the
 

00:09:16.120 --> 00:09:17.630 align:start position:0%
boot.dev is geared up to teach you the
languages<00:09:16.560><c> and</c><00:09:16.680><c> tools</c><00:09:17.000><c> that</c><00:09:17.120><c> you'll</c><00:09:17.240><c> need</c><00:09:17.520><c> for</c>

00:09:17.630 --> 00:09:17.640 align:start position:0%
languages and tools that you'll need for
 

00:09:17.640 --> 00:09:19.990 align:start position:0%
languages and tools that you'll need for
back<00:09:17.920><c> end</c><00:09:18.080><c> and</c><00:09:18.160><c> devops</c><00:09:18.600><c> roles,</c><00:09:19.360><c> from</c><00:09:19.600><c> go</c><00:09:19.880><c> and</c>

00:09:19.990 --> 00:09:20.000 align:start position:0%
back end and devops roles, from go and
 

00:09:20.000 --> 00:09:22.350 align:start position:0%
back end and devops roles, from go and
docker<00:09:20.440><c> to</c><00:09:20.600><c> Linux</c><00:09:21.000><c> and</c><00:09:21.120><c> AWS.</c><00:09:21.341><c> [music]</c>

00:09:22.350 --> 00:09:22.360 align:start position:0%
docker to Linux and AWS. [music]
 

00:09:22.360 --> 00:09:23.829 align:start position:0%
docker to Linux and AWS. [music]
You<00:09:22.400><c> can</c><00:09:22.520><c> start</c><00:09:22.720><c> from</c><00:09:22.880><c> scratch</c><00:09:23.320><c> or</c><00:09:23.480><c> jump</c><00:09:23.680><c> into</c>

00:09:23.829 --> 00:09:23.839 align:start position:0%
You can start from scratch or jump into
 

00:09:23.839 --> 00:09:25.670 align:start position:0%
You can start from scratch or jump into
more<00:09:23.960><c> advanced</c><00:09:24.280><c> topics.</c><00:09:25.080><c> See,</c><00:09:25.200><c> devops</c>

00:09:25.670 --> 00:09:25.680 align:start position:0%
more advanced topics. See, devops
 

00:09:25.680 --> 00:09:27.270 align:start position:0%
more advanced topics. See, devops
engineers<00:09:26.160><c> in</c><00:09:26.240><c> the</c><00:09:26.320><c> US</c><00:09:26.680><c> are</c><00:09:26.760><c> still</c><00:09:27.040><c> some</c><00:09:27.200><c> of</c>

00:09:27.270 --> 00:09:27.280 align:start position:0%
engineers in the US are still some of
 

00:09:27.280 --> 00:09:28.630 align:start position:0%
engineers in the US are still some of
the<00:09:27.360><c> highest</c><00:09:27.760><c> paid</c><00:09:28.000><c> tech</c><00:09:28.200><c> roles</c><00:09:28.546><c> [music]</c>

00:09:28.630 --> 00:09:28.640 align:start position:0%
the highest paid tech roles [music]
 

00:09:28.640 --> 00:09:30.110 align:start position:0%
the highest paid tech roles [music]
because<00:09:28.880><c> these</c><00:09:29.040><c> skills</c><00:09:29.360><c> are</c><00:09:29.440><c> genuinely</c><00:09:29.920><c> hard</c>

00:09:30.110 --> 00:09:30.120 align:start position:0%
because these skills are genuinely hard
 

00:09:30.120 --> 00:09:31.110 align:start position:0%
because these skills are genuinely hard
to<00:09:30.200><c> learn.</c>

00:09:31.110 --> 00:09:31.120 align:start position:0%
to learn.
 

00:09:31.120 --> 00:09:32.790 align:start position:0%
to learn.
And<00:09:31.160><c> that's</c><00:09:31.320><c> the</c><00:09:31.400><c> point.</c><00:09:32.080><c> To</c><00:09:32.160><c> get</c><00:09:32.320><c> started,</c><00:09:32.680><c> go</c>

00:09:32.790 --> 00:09:32.800 align:start position:0%
And that's the point. To get started, go
 

00:09:32.800 --> 00:09:34.950 align:start position:0%
And that's the point. To get started, go
to<00:09:32.920><c> boot.dev</c><00:09:33.680><c> and</c><00:09:33.800><c> use</c><00:09:33.960><c> our</c><00:09:34.080><c> code</c><00:09:34.320><c> veritasium</c>

00:09:34.950 --> 00:09:34.960 align:start position:0%
to boot.dev and use our code veritasium
 

00:09:34.960 --> 00:09:37.310 align:start position:0%
to boot.dev and use our code veritasium
to<00:09:35.040><c> get</c><00:09:35.160><c> 25%</c><00:09:35.960><c> off</c><00:09:36.200><c> your</c><00:09:36.280><c> entire</c><00:09:36.640><c> first</c><00:09:36.920><c> year</c><00:09:37.160><c> on</c>

00:09:37.310 --> 00:09:37.320 align:start position:0%
to get 25% off your entire first year on
 

00:09:37.320 --> 00:09:38.990 align:start position:0%
to get 25% off your entire first year on
the<00:09:37.440><c> annual</c><00:09:37.720><c> plan.</c><00:09:38.480><c> I</c><00:09:38.520><c> want</c><00:09:38.640><c> to</c><00:09:38.720><c> thank</c>

00:09:38.990 --> 00:09:39.000 align:start position:0%
the annual plan. I want to thank
 

00:09:39.000 --> 00:09:40.630 align:start position:0%
the annual plan. I want to thank
boot.dev<00:09:39.600><c> for</c><00:09:39.720><c> sponsoring</c><00:09:40.160><c> this</c><00:09:40.320><c> part</c><00:09:40.520><c> of</c><00:09:40.560><c> the</c>

00:09:40.630 --> 00:09:40.640 align:start position:0%
boot.dev for sponsoring this part of the
 

00:09:40.640 --> 00:09:42.830 align:start position:0%
boot.dev for sponsoring this part of the
video.<00:09:41.160><c> Now,</c><00:09:41.560><c> less</c><00:09:41.800><c> than</c><00:09:41.920><c> 100</c><00:09:42.240><c> milliseconds</c>

00:09:42.830 --> 00:09:42.840 align:start position:0%
video. Now, less than 100 milliseconds
 

00:09:42.840 --> 00:09:44.910 align:start position:0%
video. Now, less than 100 milliseconds
seems<00:09:43.200><c> pretty</c><00:09:43.440><c> fast.</c><00:09:44.240><c> So,</c><00:09:44.640><c> what's</c><00:09:44.840><c> the</c>

00:09:44.910 --> 00:09:44.920 align:start position:0%
seems pretty fast. So, what's the
 

00:09:44.920 --> 00:09:46.670 align:start position:0%
seems pretty fast. So, what's the
problem?

00:09:46.670 --> 00:09:46.680 align:start position:0%
problem?
 

00:09:46.680 --> 00:09:48.630 align:start position:0%
problem?
Well,<00:09:47.120><c> things</c><00:09:47.400><c> slow</c><00:09:47.640><c> down</c><00:09:47.880><c> a</c><00:09:47.920><c> lot</c><00:09:48.200><c> with</c><00:09:48.360><c> bigger</c>

00:09:48.630 --> 00:09:48.640 align:start position:0%
Well, things slow down a lot with bigger
 

00:09:48.640 --> 00:09:50.150 align:start position:0%
Well, things slow down a lot with bigger
and<00:09:48.760><c> bigger</c><00:09:49.000><c> graphs,</c><00:09:49.680><c> like</c><00:09:49.880><c> the</c><00:09:49.960><c> North</c>

00:09:50.150 --> 00:09:50.160 align:start position:0%
and bigger graphs, like the North
 

00:09:50.160 --> 00:09:51.750 align:start position:0%
and bigger graphs, like the North
American<00:09:50.520><c> network.</c>

00:09:51.750 --> 00:09:51.760 align:start position:0%
American network.
 

00:09:51.760 --> 00:09:53.470 align:start position:0%
American network.
One<00:09:51.920><c> way</c><00:09:52.080><c> we</c><00:09:52.200><c> can</c><00:09:52.320><c> compare</c><00:09:52.680><c> search</c><00:09:52.960><c> algorithms</c>

00:09:53.470 --> 00:09:53.480 align:start position:0%
One way we can compare search algorithms
 

00:09:53.480 --> 00:09:55.470 align:start position:0%
One way we can compare search algorithms
is<00:09:53.600><c> by</c><00:09:53.720><c> their</c><00:09:53.920><c> average</c><00:09:54.280><c> query</c><00:09:54.600><c> speed.</c><00:09:55.160><c> First,</c>

00:09:55.470 --> 00:09:55.480 align:start position:0%
is by their average query speed. First,
 

00:09:55.480 --> 00:09:57.510 align:start position:0%
is by their average query speed. First,
we<00:09:55.600><c> pick</c><00:09:55.840><c> lots</c><00:09:56.080><c> of</c><00:09:56.200><c> random</c><00:09:56.480><c> points.</c><00:09:57.240><c> Then</c><00:09:57.400><c> we</c>

00:09:57.510 --> 00:09:57.520 align:start position:0%
we pick lots of random points. Then we
 

00:09:57.520 --> 00:09:59.510 align:start position:0%
we pick lots of random points. Then we
run<00:09:57.760><c> Dijkstra's</c><00:09:58.160><c> algorithm</c><00:09:58.720><c> on</c><00:09:59.000><c> each</c><00:09:59.240><c> pair</c><00:09:59.440><c> of</c>

00:09:59.510 --> 00:09:59.520 align:start position:0%
run Dijkstra's algorithm on each pair of
 

00:09:59.520 --> 00:10:01.870 align:start position:0%
run Dijkstra's algorithm on each pair of
points<00:09:59.960><c> and</c><00:10:00.120><c> average</c><00:10:00.440><c> all</c><00:10:00.560><c> the</c><00:10:00.640><c> run</c><00:10:00.840><c> times.</c><00:10:01.760><c> On</c>

00:10:01.870 --> 00:10:01.880 align:start position:0%
points and average all the run times. On
 

00:10:01.880 --> 00:10:03.550 align:start position:0%
points and average all the run times. On
the<00:10:01.960><c> North</c><00:10:02.160><c> American</c><00:10:02.520><c> network,</c><00:10:03.040><c> a</c><00:10:03.080><c> well-tuned</c>

00:10:03.550 --> 00:10:03.560 align:start position:0%
the North American network, a well-tuned
 

00:10:03.560 --> 00:10:05.390 align:start position:0%
the North American network, a well-tuned
Dijkstra<00:10:03.960><c> takes</c><00:10:04.200><c> around</c><00:10:04.480><c> 7</c><00:10:04.840><c> seconds</c><00:10:05.240><c> per</c>

00:10:05.390 --> 00:10:05.400 align:start position:0%
Dijkstra takes around 7 seconds per
 

00:10:05.400 --> 00:10:07.230 align:start position:0%
Dijkstra takes around 7 seconds per
path.

00:10:07.230 --> 00:10:07.240 align:start position:0%
path.
 

00:10:07.240 --> 00:10:08.430 align:start position:0%
path.
And<00:10:07.400><c> for</c><00:10:07.520><c> a</c><00:10:07.560><c> lot</c><00:10:07.720><c> of</c><00:10:07.800><c> these</c><00:10:07.920><c> searches,</c><00:10:08.320><c> the</c>

00:10:08.430 --> 00:10:08.440 align:start position:0%
And for a lot of these searches, the
 

00:10:08.440 --> 00:10:10.390 align:start position:0%
And for a lot of these searches, the
algorithm<00:10:08.840><c> has</c><00:10:09.000><c> to</c><00:10:09.080><c> explore</c><00:10:09.600><c> most</c><00:10:10.080><c> of</c><00:10:10.160><c> those</c>

00:10:10.390 --> 00:10:10.400 align:start position:0%
algorithm has to explore most of those
 

00:10:10.400 --> 00:10:12.830 align:start position:0%
algorithm has to explore most of those
64<00:10:11.080><c> million</c><00:10:11.520><c> nodes.</c>

00:10:12.830 --> 00:10:12.840 align:start position:0%
64 million nodes.
 

00:10:12.840 --> 00:10:14.510 align:start position:0%
64 million nodes.
One<00:10:13.000><c> note,</c><00:10:13.320><c> most</c><00:10:13.640><c> of</c><00:10:13.760><c> the</c><00:10:13.840><c> queries</c><00:10:14.280><c> in</c><00:10:14.360><c> this</c>

00:10:14.510 --> 00:10:14.520 align:start position:0%
One note, most of the queries in this
 

00:10:14.520 --> 00:10:16.390 align:start position:0%
One note, most of the queries in this
average<00:10:14.920><c> are</c><00:10:15.000><c> for</c><00:10:15.160><c> very</c><00:10:15.440><c> long</c><00:10:15.720><c> journeys,</c>

00:10:16.390 --> 00:10:16.400 align:start position:0%
average are for very long journeys,
 

00:10:16.400 --> 00:10:18.070 align:start position:0%
average are for very long journeys,
since<00:10:16.560><c> it's</c><00:10:16.680><c> unlikely</c><00:10:17.200><c> that</c><00:10:17.400><c> two</c><00:10:17.600><c> randomly</c>

00:10:18.070 --> 00:10:18.080 align:start position:0%
since it's unlikely that two randomly
 

00:10:18.080 --> 00:10:20.470 align:start position:0%
since it's unlikely that two randomly
picked<00:10:18.320><c> points</c><00:10:18.720><c> will</c><00:10:18.840><c> be</c><00:10:18.920><c> close</c><00:10:19.200><c> together.</c>

00:10:20.470 --> 00:10:20.480 align:start position:0%
picked points will be close together.
 

00:10:20.480 --> 00:10:22.030 align:start position:0%
picked points will be close together.
Now,<00:10:20.600><c> we've</c><00:10:20.800><c> seen</c><00:10:21.040><c> that</c><00:10:21.160><c> Dijkstra</c><00:10:21.520><c> runs</c><00:10:21.800><c> much</c>

00:10:22.030 --> 00:10:22.040 align:start position:0%
Now, we've seen that Dijkstra runs much
 

00:10:22.040 --> 00:10:24.270 align:start position:0%
Now, we've seen that Dijkstra runs much
faster<00:10:22.440><c> within</c><00:10:22.800><c> one</c><00:10:23.000><c> city,</c><00:10:23.440><c> but</c><00:10:23.760><c> this</c><00:10:23.960><c> average</c>

00:10:24.270 --> 00:10:24.280 align:start position:0%
faster within one city, but this average
 

00:10:24.280 --> 00:10:25.910 align:start position:0%
faster within one city, but this average
is<00:10:24.400><c> a</c><00:10:24.440><c> good</c><00:10:24.680><c> way</c><00:10:24.840><c> to</c><00:10:24.920><c> compare</c><00:10:25.320><c> pathfinding</c>

00:10:25.910 --> 00:10:25.920 align:start position:0%
is a good way to compare pathfinding
 

00:10:25.920 --> 00:10:27.110 align:start position:0%
is a good way to compare pathfinding
algorithms.

00:10:27.110 --> 00:10:27.120 align:start position:0%
algorithms.
 

00:10:27.120 --> 00:10:28.870 align:start position:0%
algorithms.
But<00:10:27.240><c> still,</c><00:10:27.497><c> [music]</c><00:10:27.680><c> I</c><00:10:27.760><c> can</c><00:10:27.880><c> wait</c><00:10:28.080><c> 7</c><00:10:28.320><c> seconds.</c>

00:10:28.870 --> 00:10:28.880 align:start position:0%
But still, [music] I can wait 7 seconds.
 

00:10:28.880 --> 00:10:30.190 align:start position:0%
But still, [music] I can wait 7 seconds.
I<00:10:28.920><c> mean,</c><00:10:29.040><c> it</c><00:10:29.120><c> took</c><00:10:29.240><c> about</c><00:10:29.440><c> 4</c><00:10:29.640><c> seconds</c><00:10:29.960><c> on</c><00:10:30.080><c> my</c>

00:10:30.190 --> 00:10:30.200 align:start position:0%
I mean, it took about 4 seconds on my
 

00:10:30.200 --> 00:10:31.150 align:start position:0%
I mean, it took about 4 seconds on my
phone.

00:10:31.150 --> 00:10:31.160 align:start position:0%
phone.
 

00:10:31.160 --> 00:10:33.110 align:start position:0%
phone.
But<00:10:31.400><c> the</c><00:10:31.520><c> thing</c><00:10:31.720><c> is,</c><00:10:31.920><c> it's</c><00:10:32.040><c> not</c><00:10:32.240><c> just</c><00:10:32.440><c> me.</c><00:10:32.920><c> I'm</c>

00:10:33.110 --> 00:10:33.120 align:start position:0%
But the thing is, it's not just me. I'm
 

00:10:33.120 --> 00:10:35.470 align:start position:0%
But the thing is, it's not just me. I'm
waiting<00:10:33.320><c> in</c><00:10:33.440><c> a</c><00:10:33.480><c> line</c><00:10:33.800><c> behind</c><00:10:34.160><c> Derek,</c><00:10:34.800><c> Greg,</c>

00:10:35.470 --> 00:10:35.480 align:start position:0%
waiting in a line behind Derek, Greg,
 

00:10:35.480 --> 00:10:37.350 align:start position:0%
waiting in a line behind Derek, Greg,
Casper,<00:10:36.160><c> and</c><00:10:36.400><c> all</c><00:10:36.600><c> of</c><00:10:36.720><c> you.</c><00:10:37.080><c> There</c><00:10:37.160><c> could</c><00:10:37.280><c> be</c>

00:10:37.350 --> 00:10:37.360 align:start position:0%
Casper, and all of you. There could be
 

00:10:37.360 --> 00:10:38.950 align:start position:0%
Casper, and all of you. There could be
millions<00:10:37.720><c> of</c><00:10:37.800><c> people</c><00:10:38.080><c> asking</c><00:10:38.360><c> for</c><00:10:38.440><c> directions</c>

00:10:38.950 --> 00:10:38.960 align:start position:0%
millions of people asking for directions
 

00:10:38.960 --> 00:10:40.550 align:start position:0%
millions of people asking for directions
all<00:10:39.200><c> at</c><00:10:39.320><c> once.</c>

00:10:40.550 --> 00:10:40.560 align:start position:0%
all at once.
 

00:10:40.560 --> 00:10:42.350 align:start position:0%
all at once.
And<00:10:40.800><c> while</c><00:10:40.960><c> Google</c><00:10:41.240><c> has</c><00:10:41.440><c> a</c><00:10:41.480><c> lot</c><00:10:41.640><c> of</c><00:10:41.720><c> servers,</c>

00:10:42.350 --> 00:10:42.360 align:start position:0%
And while Google has a lot of servers,
 

00:10:42.360 --> 00:10:44.710 align:start position:0%
And while Google has a lot of servers,
there's<00:10:42.720><c> a</c><00:10:42.800><c> limit.</c><00:10:43.839><c> If</c><00:10:43.920><c> we</c><00:10:44.000><c> want</c><00:10:44.200><c> Google</c><00:10:44.440><c> Maps</c>

00:10:44.710 --> 00:10:44.720 align:start position:0%
there's a limit. If we want Google Maps
 

00:10:44.720 --> 00:10:46.310 align:start position:0%
there's a limit. If we want Google Maps
to<00:10:44.839><c> run</c><00:10:45.040><c> in</c><00:10:45.120><c> a</c><00:10:45.160><c> couple</c><00:10:45.440><c> of</c><00:10:45.520><c> seconds,</c><00:10:46.240><c> we</c>

00:10:46.310 --> 00:10:46.320 align:start position:0%
to run in a couple of seconds, we
 

00:10:46.320 --> 00:10:47.670 align:start position:0%
to run in a couple of seconds, we
actually<00:10:46.520><c> need</c><00:10:46.640><c> the</c><00:10:46.760><c> algorithm</c><00:10:47.280><c> to</c><00:10:47.400><c> run</c><00:10:47.600><c> in</c>

00:10:47.670 --> 00:10:47.680 align:start position:0%
actually need the algorithm to run in
 

00:10:47.680 --> 00:10:50.230 align:start position:0%
actually need the algorithm to run in
less<00:10:47.920><c> than</c><00:10:48.040><c> a</c><00:10:48.120><c> millisecond,</c><00:10:49.200><c> something</c><00:10:49.480><c> 7,000</c>

00:10:50.230 --> 00:10:50.240 align:start position:0%
less than a millisecond, something 7,000
 

00:10:50.240 --> 00:10:51.722 align:start position:0%
less than a millisecond, something 7,000
times<00:10:50.560><c> faster</c><00:10:50.960><c> than</c><00:10:51.120><c> Dijkstra's.</c>

00:10:51.722 --> 00:10:51.732 align:start position:0%
times faster than Dijkstra's.
 

00:10:51.732 --> 00:10:55.710 align:start position:0%
times faster than Dijkstra's.
&gt;&gt; [music]

00:10:55.710 --> 00:10:55.720 align:start position:0%
 
 

00:10:55.720 --> 00:10:57.230 align:start position:0%
 
&gt;&gt; Well,<00:10:56.000><c> one</c><00:10:56.200><c> problem</c><00:10:56.440><c> with</c><00:10:56.560><c> Dijkstra's</c><00:10:57.000><c> is</c><00:10:57.120><c> it</c>

00:10:57.230 --> 00:10:57.240 align:start position:0%
&gt;&gt; Well, one problem with Dijkstra's is it
 

00:10:57.240 --> 00:10:58.670 align:start position:0%
&gt;&gt; Well, one problem with Dijkstra's is it
searches<00:10:57.560><c> in</c><00:10:57.640><c> the</c><00:10:57.800><c> opposite</c><00:10:58.200><c> direction</c><00:10:58.640><c> of</c>

00:10:58.670 --> 00:10:58.680 align:start position:0%
searches in the opposite direction of
 

00:10:58.680 --> 00:11:00.350 align:start position:0%
searches in the opposite direction of
the<00:10:58.760><c> target.</c><00:10:59.320><c> So,</c><00:10:59.680><c> if</c><00:10:59.800><c> we</c><00:10:59.880><c> know</c><00:11:00.000><c> the</c><00:11:00.120><c> rough</c>

00:11:00.350 --> 00:11:00.360 align:start position:0%
the target. So, if we know the rough
 

00:11:00.360 --> 00:11:01.710 align:start position:0%
the target. So, if we know the rough
direction,<00:11:00.839><c> is</c><00:11:01.000><c> there</c><00:11:01.160><c> a</c><00:11:01.200><c> way</c><00:11:01.320><c> that</c><00:11:01.480><c> we</c><00:11:01.560><c> can</c>

00:11:01.710 --> 00:11:01.720 align:start position:0%
direction, is there a way that we can
 

00:11:01.720 --> 00:11:03.670 align:start position:0%
direction, is there a way that we can
punish<00:11:02.080><c> illogical</c><00:11:02.560><c> routes?</c>

00:11:03.670 --> 00:11:03.680 align:start position:0%
punish illogical routes?
 

00:11:03.680 --> 00:11:04.829 align:start position:0%
punish illogical routes?
Let's<00:11:03.800><c> go</c><00:11:03.880><c> back</c><00:11:04.040><c> to</c><00:11:04.120><c> our</c><00:11:04.240><c> problem</c><00:11:04.600><c> getting</c>

00:11:04.829 --> 00:11:04.839 align:start position:0%
Let's go back to our problem getting
 

00:11:04.839 --> 00:11:06.787 align:start position:0%
Let's go back to our problem getting
from<00:11:05.000><c> Newark</c><00:11:05.360><c> to</c><00:11:05.440><c> the</c><00:11:05.560><c> Central</c><00:11:05.880><c> Park</c><00:11:06.120><c> Zoo.</c>

00:11:06.787 --> 00:11:06.797 align:start position:0%
from Newark to the Central Park Zoo.
 

00:11:06.797 --> 00:11:07.870 align:start position:0%
from Newark to the Central Park Zoo.
&gt;&gt; [music]

00:11:07.870 --> 00:11:07.880 align:start position:0%
&gt;&gt; [music]
 

00:11:07.880 --> 00:11:09.670 align:start position:0%
&gt;&gt; [music]
&gt;&gt; We'd<00:11:08.240><c> like</c><00:11:08.440><c> to</c><00:11:08.560><c> prioritize</c><00:11:09.080><c> nodes</c><00:11:09.440><c> that</c><00:11:09.560><c> are</c>

00:11:09.670 --> 00:11:09.680 align:start position:0%
&gt;&gt; We'd like to prioritize nodes that are
 

00:11:09.680 --> 00:11:12.110 align:start position:0%
&gt;&gt; We'd like to prioritize nodes that are
closer<00:11:10.160><c> to</c><00:11:10.280><c> the</c><00:11:10.360><c> zoo.</c><00:11:10.960><c> So,</c><00:11:11.240><c> using</c><00:11:11.600><c> longitudes</c>

00:11:12.110 --> 00:11:12.120 align:start position:0%
closer to the zoo. So, using longitudes
 

00:11:12.120 --> 00:11:13.470 align:start position:0%
closer to the zoo. So, using longitudes
and<00:11:12.240><c> latitudes,</c><00:11:12.720><c> we</c><00:11:12.839><c> can</c><00:11:13.120><c> easily</c><00:11:13.347><c> [music]</c>

00:11:13.470 --> 00:11:13.480 align:start position:0%
and latitudes, we can easily [music]
 

00:11:13.480 --> 00:11:15.030 align:start position:0%
and latitudes, we can easily [music]
calculate<00:11:14.000><c> the</c><00:11:14.080><c> straight-line</c><00:11:14.640><c> distance</c>

00:11:15.030 --> 00:11:15.040 align:start position:0%
calculate the straight-line distance
 

00:11:15.040 --> 00:11:17.590 align:start position:0%
calculate the straight-line distance
between<00:11:15.440><c> any</c><00:11:15.640><c> node</c><00:11:16.080><c> and</c><00:11:16.240><c> our</c><00:11:16.360><c> target.</c><00:11:17.240><c> We'll</c>

00:11:17.590 --> 00:11:17.600 align:start position:0%
between any node and our target. We'll
 

00:11:17.600 --> 00:11:19.910 align:start position:0%
between any node and our target. We'll
order<00:11:17.800><c> the</c><00:11:17.880><c> nodes</c><00:11:18.200><c> by</c><00:11:18.320><c> their</c><00:11:18.520><c> cost</c><00:11:19.160><c> plus</c><00:11:19.680><c> this</c>

00:11:19.910 --> 00:11:19.920 align:start position:0%
order the nodes by their cost plus this
 

00:11:19.920 --> 00:11:21.590 align:start position:0%
order the nodes by their cost plus this
straight-line<00:11:20.440><c> distance.</c>

00:11:21.590 --> 00:11:21.600 align:start position:0%
straight-line distance.
 

00:11:21.600 --> 00:11:23.350 align:start position:0%
straight-line distance.
A<00:11:21.640><c> great</c><00:11:21.839><c> way</c><00:11:22.000><c> to</c><00:11:22.200><c> visualize</c><00:11:22.680><c> this</c><00:11:22.960><c> comes</c><00:11:23.240><c> from</c>

00:11:23.350 --> 00:11:23.360 align:start position:0%
A great way to visualize this comes from
 

00:11:23.360 --> 00:11:25.390 align:start position:0%
A great way to visualize this comes from
the<00:11:23.480><c> channel</c><00:11:23.800><c> PolyLog.</c>

00:11:25.390 --> 00:11:25.400 align:start position:0%
the channel PolyLog.
 

00:11:25.400 --> 00:11:26.870 align:start position:0%
the channel PolyLog.
We<00:11:25.520><c> can</c><00:11:25.800><c> represent</c><00:11:26.280><c> each</c><00:11:26.480><c> node's</c>

00:11:26.870 --> 00:11:26.880 align:start position:0%
We can represent each node's
 

00:11:26.880 --> 00:11:28.430 align:start position:0%
We can represent each node's
straight-line<00:11:27.360><c> distance</c><00:11:27.760><c> to</c><00:11:27.839><c> the</c><00:11:27.920><c> target</c><00:11:28.280><c> as</c>

00:11:28.430 --> 00:11:28.440 align:start position:0%
straight-line distance to the target as
 

00:11:28.440 --> 00:11:30.710 align:start position:0%
straight-line distance to the target as
its<00:11:28.640><c> height,</c><00:11:29.200><c> so</c><00:11:29.400><c> the</c><00:11:29.520><c> graph</c><00:11:29.920><c> stretches</c><00:11:30.400><c> into</c>

00:11:30.710 --> 00:11:30.720 align:start position:0%
its height, so the graph stretches into
 

00:11:30.720 --> 00:11:33.230 align:start position:0%
its height, so the graph stretches into
3D<00:11:31.160><c> space.</c><00:11:32.000><c> The</c><00:11:32.200><c> further</c><00:11:32.520><c> a</c><00:11:32.560><c> node</c><00:11:32.840><c> is</c><00:11:33.000><c> from</c><00:11:33.160><c> the</c>

00:11:33.230 --> 00:11:33.240 align:start position:0%
3D space. The further a node is from the
 

00:11:33.240 --> 00:11:36.070 align:start position:0%
3D space. The further a node is from the
zoo,<00:11:33.800><c> the</c><00:11:34.040><c> higher</c><00:11:34.440><c> it</c><00:11:34.560><c> is.</c><00:11:35.160><c> So,</c><00:11:35.360><c> the</c><00:11:35.560><c> algorithm</c>

00:11:36.070 --> 00:11:36.080 align:start position:0%
zoo, the higher it is. So, the algorithm
 

00:11:36.080 --> 00:11:38.710 align:start position:0%
zoo, the higher it is. So, the algorithm
penalizes<00:11:36.760><c> moves</c><00:11:37.120><c> that</c><00:11:37.320><c> climb</c><00:11:37.840><c> up</c><00:11:38.000><c> the</c><00:11:38.120><c> graph.</c>

00:11:38.710 --> 00:11:38.720 align:start position:0%
penalizes moves that climb up the graph.
 

00:11:38.720 --> 00:11:40.350 align:start position:0%
penalizes moves that climb up the graph.
That<00:11:38.892><c> [snorts]</c><00:11:38.920><c> way,</c><00:11:39.240><c> nodes</c><00:11:39.640><c> in</c><00:11:39.760><c> the</c><00:11:40.000><c> opposite</c>

00:11:40.350 --> 00:11:40.360 align:start position:0%
That [snorts] way, nodes in the opposite
 

00:11:40.360 --> 00:11:43.190 align:start position:0%
That [snorts] way, nodes in the opposite
direction<00:11:40.880><c> aren't</c><00:11:41.160><c> explored</c><00:11:41.760><c> early</c><00:11:42.080><c> on.</c><00:11:42.920><c> So,</c>

00:11:43.190 --> 00:11:43.200 align:start position:0%
direction aren't explored early on. So,
 

00:11:43.200 --> 00:11:44.950 align:start position:0%
direction aren't explored early on. So,
while<00:11:43.400><c> Dijkstra's</c><00:11:43.960><c> search</c><00:11:44.200><c> frontier</c><00:11:44.600><c> spreads</c>

00:11:44.950 --> 00:11:44.960 align:start position:0%
while Dijkstra's search frontier spreads
 

00:11:44.960 --> 00:11:47.190 align:start position:0%
while Dijkstra's search frontier spreads
out<00:11:45.160><c> in</c><00:11:45.360><c> all</c><00:11:45.520><c> directions,</c><00:11:46.280><c> this</c><00:11:46.680><c> modified</c>

00:11:47.190 --> 00:11:47.200 align:start position:0%
out in all directions, this modified
 

00:11:47.200 --> 00:11:49.790 align:start position:0%
out in all directions, this modified
Dijkstra's,<00:11:47.800><c> also</c><00:11:48.080><c> called</c><00:11:48.440><c> A*,</c><00:11:49.160><c> immediately</c>

00:11:49.790 --> 00:11:49.800 align:start position:0%
Dijkstra's, also called A*, immediately
 

00:11:49.800 --> 00:11:51.990 align:start position:0%
Dijkstra's, also called A*, immediately
heads<00:11:50.200><c> toward</c><00:11:50.520><c> the</c><00:11:50.640><c> zoo.</c><00:11:51.280><c> It</c><00:11:51.560><c> only</c><00:11:51.760><c> checks</c>

00:11:51.990 --> 00:11:52.000 align:start position:0%
heads toward the zoo. It only checks
 

00:11:52.000 --> 00:11:54.470 align:start position:0%
heads toward the zoo. It only checks
around<00:11:52.320><c> 7,000</c><00:11:53.120><c> nodes,</c><00:11:53.640><c> which</c><00:11:53.800><c> is</c><00:11:54.040><c> almost</c><00:11:54.400><c> a</c>

00:11:54.470 --> 00:11:54.480 align:start position:0%
around 7,000 nodes, which is almost a
 

00:11:54.480 --> 00:11:56.990 align:start position:0%
around 7,000 nodes, which is almost a
10-times<00:11:55.240><c> improvement</c><00:11:55.800><c> over</c><00:11:55.960><c> Dijkstra's.</c>

00:11:56.990 --> 00:11:57.000 align:start position:0%
10-times improvement over Dijkstra's.
 

00:11:57.000 --> 00:11:58.790 align:start position:0%
10-times improvement over Dijkstra's.
And<00:11:57.160><c> by</c><00:11:57.360><c> changing</c><00:11:57.800><c> this</c><00:11:57.960><c> penalty,</c><00:11:58.560><c> also</c>

00:11:58.790 --> 00:11:58.800 align:start position:0%
And by changing this penalty, also
 

00:11:58.800 --> 00:12:00.910 align:start position:0%
And by changing this penalty, also
called<00:11:59.080><c> a</c><00:11:59.120><c> heuristic,</c><00:11:59.840><c> we</c><00:11:59.960><c> can</c><00:12:00.160><c> tweak</c><00:12:00.640><c> how</c>

00:12:00.910 --> 00:12:00.920 align:start position:0%
called a heuristic, we can tweak how
 

00:12:00.920 --> 00:12:03.590 align:start position:0%
called a heuristic, we can tweak how
aggressively<00:12:01.600><c> A*</c><00:12:02.040><c> targets</c><00:12:02.440><c> the</c><00:12:02.560><c> zoo.</c><00:12:03.360><c> The</c>

00:12:03.590 --> 00:12:03.600 align:start position:0%
aggressively A* targets the zoo. The
 

00:12:03.600 --> 00:12:06.070 align:start position:0%
aggressively A* targets the zoo. The
steeper<00:12:03.920><c> the</c><00:12:04.000><c> slope,</c><00:12:04.520><c> the</c><00:12:04.840><c> less</c><00:12:05.240><c> A*</c><00:12:05.680><c> spreads</c>

00:12:06.070 --> 00:12:06.080 align:start position:0%
steeper the slope, the less A* spreads
 

00:12:06.080 --> 00:12:08.110 align:start position:0%
steeper the slope, the less A* spreads
out.<00:12:06.640><c> It's</c><00:12:06.960><c> a</c><00:12:07.000><c> more</c><00:12:07.240><c> human</c><00:12:07.560><c> approach</c><00:12:07.960><c> to</c>

00:12:08.110 --> 00:12:08.120 align:start position:0%
out. It's a more human approach to
 

00:12:08.120 --> 00:12:10.310 align:start position:0%
out. It's a more human approach to
finding<00:12:08.520><c> the</c><00:12:08.640><c> shortest</c><00:12:09.000><c> path,</c><00:12:09.680><c> since</c><00:12:10.040><c> we're</c>

00:12:10.310 --> 00:12:10.320 align:start position:0%
finding the shortest path, since we're
 

00:12:10.320 --> 00:12:12.270 align:start position:0%
finding the shortest path, since we're
only<00:12:10.560><c> exploring</c><00:12:11.160><c> in</c><00:12:11.280><c> the</c><00:12:11.360><c> rough</c><00:12:11.600><c> direction</c><00:12:12.120><c> of</c>

00:12:12.270 --> 00:12:12.280 align:start position:0%
only exploring in the rough direction of
 

00:12:12.280 --> 00:12:13.830 align:start position:0%
only exploring in the rough direction of
the<00:12:12.400><c> target.</c>

00:12:13.830 --> 00:12:13.840 align:start position:0%
the target.
 

00:12:13.840 --> 00:12:15.750 align:start position:0%
the target.
That's<00:12:14.080><c> why</c><00:12:14.240><c> A*</c><00:12:14.640><c> is</c><00:12:14.800><c> one</c><00:12:14.920><c> of</c><00:12:14.960><c> the</c><00:12:15.000><c> most</c><00:12:15.240><c> popular</c>

00:12:15.750 --> 00:12:15.760 align:start position:0%
That's why A* is one of the most popular
 

00:12:15.760 --> 00:12:18.550 align:start position:0%
That's why A* is one of the most popular
algorithms<00:12:16.320><c> behind</c><00:12:16.720><c> video</c><00:12:17.000><c> game</c><00:12:17.280><c> NPCs.</c><00:12:18.440><c> For</c>

00:12:18.550 --> 00:12:18.560 align:start position:0%
algorithms behind video game NPCs. For
 

00:12:18.560 --> 00:12:20.350 align:start position:0%
algorithms behind video game NPCs. For
example,<00:12:18.960><c> many</c><00:12:19.200><c> of</c><00:12:19.280><c> the</c><00:12:19.360><c> mobs</c><00:12:19.680><c> in</c><00:12:19.800><c> Minecraft</c>

00:12:20.350 --> 00:12:20.360 align:start position:0%
example, many of the mobs in Minecraft
 

00:12:20.360 --> 00:12:22.870 align:start position:0%
example, many of the mobs in Minecraft
use<00:12:20.600><c> a</c><00:12:20.680><c> version</c><00:12:21.080><c> of</c><00:12:21.200><c> A*</c><00:12:21.800><c> with</c><00:12:22.040><c> extra</c><00:12:22.320><c> penalties</c>

00:12:22.870 --> 00:12:22.880 align:start position:0%
use a version of A* with extra penalties
 

00:12:22.880 --> 00:12:25.030 align:start position:0%
use a version of A* with extra penalties
for<00:12:23.080><c> dangerous</c><00:12:23.560><c> zones.</c>

00:12:25.030 --> 00:12:25.040 align:start position:0%
for dangerous zones.
 

00:12:25.040 --> 00:12:26.790 align:start position:0%
for dangerous zones.
It's<00:12:25.360><c> also</c><00:12:25.640><c> a</c><00:12:25.680><c> popular</c><00:12:26.080><c> maze-solving</c>

00:12:26.790 --> 00:12:26.800 align:start position:0%
It's also a popular maze-solving
 

00:12:26.800 --> 00:12:29.670 align:start position:0%
It's also a popular maze-solving
algorithm.<00:12:27.840><c> At</c><00:12:28.000><c> worst,</c><00:12:28.520><c> A*</c><00:12:28.920><c> checks</c><00:12:29.360><c> as</c><00:12:29.480><c> many</c>

00:12:29.670 --> 00:12:29.680 align:start position:0%
algorithm. At worst, A* checks as many
 

00:12:29.680 --> 00:12:31.590 align:start position:0%
algorithm. At worst, A* checks as many
nodes<00:12:30.080><c> as</c><00:12:30.240><c> Dijkstra,</c><00:12:30.960><c> but</c><00:12:31.200><c> on</c><00:12:31.320><c> the</c><00:12:31.400><c> right</c>

00:12:31.590 --> 00:12:31.600 align:start position:0%
nodes as Dijkstra, but on the right
 

00:12:31.600 --> 00:12:33.390 align:start position:0%
nodes as Dijkstra, but on the right
maze,<00:12:31.960><c> it</c><00:12:32.080><c> can</c><00:12:32.280><c> cut</c><00:12:32.520><c> down</c><00:12:32.720><c> the</c><00:12:32.800><c> search</c><00:12:33.080><c> space</c>

00:12:33.390 --> 00:12:33.400 align:start position:0%
maze, it can cut down the search space
 

00:12:33.400 --> 00:12:36.670 align:start position:0%
maze, it can cut down the search space
by<00:12:33.520><c> more</c><00:12:33.720><c> than</c><00:12:33.920><c> half.</c>

00:12:36.670 --> 00:12:36.680 align:start position:0%
 
 

00:12:36.680 --> 00:12:38.270 align:start position:0%
 
&gt;&gt; But,<00:12:37.160><c> when</c><00:12:37.280><c> I'm</c><00:12:37.360><c> trying</c><00:12:37.560><c> to</c><00:12:37.640><c> get</c><00:12:37.839><c> somewhere,</c><00:12:38.240><c> I</c>

00:12:38.270 --> 00:12:38.280 align:start position:0%
&gt;&gt; But, when I'm trying to get somewhere, I
 

00:12:38.280 --> 00:12:39.470 align:start position:0%
&gt;&gt; But, when I'm trying to get somewhere, I
don't<00:12:38.520><c> care</c><00:12:38.680><c> about</c><00:12:38.920><c> minimizing</c><00:12:39.400><c> the</c>

00:12:39.470 --> 00:12:39.480 align:start position:0%
don't care about minimizing the
 

00:12:39.480 --> 00:12:41.190 align:start position:0%
don't care about minimizing the
distance.<00:12:40.360><c> I</c><00:12:40.440><c> just</c><00:12:40.600><c> want</c><00:12:40.720><c> to</c><00:12:40.800><c> get</c><00:12:40.920><c> there</c><00:12:41.080><c> the</c>

00:12:41.190 --> 00:12:41.200 align:start position:0%
distance. I just want to get there the
 

00:12:41.200 --> 00:12:42.418 align:start position:0%
distance. I just want to get there the
fastest.

00:12:42.418 --> 00:12:42.428 align:start position:0%
fastest.
 

00:12:42.428 --> 00:12:44.790 align:start position:0%
fastest.
&gt;&gt; [laughter]

00:12:44.790 --> 00:12:44.800 align:start position:0%
 
 

00:12:44.800 --> 00:12:46.550 align:start position:0%
 
&gt;&gt; To<00:12:44.839><c> optimize</c><00:12:45.280><c> for</c><00:12:45.400><c> time,</c><00:12:45.960><c> we</c><00:12:46.040><c> divide</c><00:12:46.480><c> the</c>

00:12:46.550 --> 00:12:46.560 align:start position:0%
&gt;&gt; To optimize for time, we divide the
 

00:12:46.560 --> 00:12:48.310 align:start position:0%
&gt;&gt; To optimize for time, we divide the
straight-line<00:12:47.080><c> distance</c><00:12:47.560><c> by</c><00:12:47.680><c> the</c><00:12:47.800><c> maximum</c>

00:12:48.310 --> 00:12:48.320 align:start position:0%
straight-line distance by the maximum
 

00:12:48.320 --> 00:12:50.470 align:start position:0%
straight-line distance by the maximum
speed<00:12:48.680><c> allowed</c><00:12:49.000><c> on</c><00:12:49.120><c> the</c><00:12:49.200><c> graph.</c><00:12:50.120><c> This</c><00:12:50.240><c> gives</c>

00:12:50.470 --> 00:12:50.480 align:start position:0%
speed allowed on the graph. This gives
 

00:12:50.480 --> 00:12:52.750 align:start position:0%
speed allowed on the graph. This gives
us<00:12:50.640><c> the</c><00:12:50.760><c> minimum</c><00:12:51.160><c> travel</c><00:12:51.480><c> time.</c>

00:12:52.750 --> 00:12:52.760 align:start position:0%
us the minimum travel time.
 

00:12:52.760 --> 00:12:54.310 align:start position:0%
us the minimum travel time.
But,<00:12:52.839><c> this</c><00:12:53.000><c> heuristic</c><00:12:53.560><c> is</c><00:12:53.680><c> an</c><00:12:53.760><c> extreme</c>

00:12:54.310 --> 00:12:54.320 align:start position:0%
But, this heuristic is an extreme
 

00:12:54.320 --> 00:12:55.710 align:start position:0%
But, this heuristic is an extreme
underestimate.

00:12:55.710 --> 00:12:55.720 align:start position:0%
underestimate.
 

00:12:55.720 --> 00:12:57.483 align:start position:0%
underestimate.
&gt;&gt; If<00:12:56.120><c> you</c><00:12:56.440><c> want</c><00:12:56.720><c> to</c><00:12:56.800><c> go</c><00:12:57.000><c> for</c><00:12:57.200><c> a</c>

00:12:57.483 --> 00:12:57.493 align:start position:0%
&gt;&gt; If you want to go for a
 

00:12:57.493 --> 00:12:57.550 align:start position:0%
&gt;&gt; If you want to go for a
&gt;&gt; [music]

00:12:57.550 --> 00:12:57.560 align:start position:0%
&gt;&gt; [music]
 

00:12:57.560 --> 00:12:59.670 align:start position:0%
&gt;&gt; [music]
&gt;&gt; pure<00:12:57.760><c> the</c><00:12:57.880><c> shortest</c><00:12:58.280><c> path</c><00:12:58.560><c> in</c><00:12:58.640><c> the</c><00:12:58.720><c> sense</c><00:12:59.160><c> that</c>

00:12:59.670 --> 00:12:59.680 align:start position:0%
&gt;&gt; pure the shortest path in the sense that
 

00:12:59.680 --> 00:13:01.870 align:start position:0%
&gt;&gt; pure the shortest path in the sense that
shortest<00:13:00.120><c> geographic</c><00:13:00.800><c> distance,</c><00:13:01.520><c> you</c><00:13:01.720><c> will</c>

00:13:01.870 --> 00:13:01.880 align:start position:0%
shortest geographic distance, you will
 

00:13:01.880 --> 00:13:04.310 align:start position:0%
shortest geographic distance, you will
gain<00:13:02.160><c> some</c><00:13:02.480><c> advantages</c><00:13:03.160><c> using</c><00:13:03.480><c> A*</c><00:13:03.920><c> compared</c>

00:13:04.310 --> 00:13:04.320 align:start position:0%
gain some advantages using A* compared
 

00:13:04.320 --> 00:13:05.343 align:start position:0%
gain some advantages using A* compared
to<00:13:04.440><c> base</c><00:13:04.680><c> Dijkstra.</c>

00:13:05.343 --> 00:13:05.353 align:start position:0%
to base Dijkstra.
 

00:13:05.353 --> 00:13:05.670 align:start position:0%
to base Dijkstra.
&gt;&gt; [music]

00:13:05.670 --> 00:13:05.680 align:start position:0%
&gt;&gt; [music]
 

00:13:05.680 --> 00:13:08.470 align:start position:0%
&gt;&gt; [music]
&gt;&gt; If<00:13:05.880><c> you</c><00:13:06.000><c> go</c><00:13:06.160><c> for</c><00:13:06.320><c> travel</c><00:13:06.720><c> time,</c><00:13:07.120><c> that</c><00:13:07.200><c> is,</c><00:13:07.800><c> A*</c>

00:13:08.470 --> 00:13:08.480 align:start position:0%
&gt;&gt; If you go for travel time, that is, A*
 

00:13:08.480 --> 00:13:10.310 align:start position:0%
&gt;&gt; If you go for travel time, that is, A*
from<00:13:08.680><c> my</c><00:13:08.800><c> experience,</c>

00:13:10.310 --> 00:13:10.320 align:start position:0%
from my experience,
 

00:13:10.320 --> 00:13:12.350 align:start position:0%
from my experience,
loses<00:13:10.960><c> against</c><00:13:11.480><c> a</c>

00:13:12.350 --> 00:13:12.360 align:start position:0%
loses against a
 

00:13:12.360 --> 00:13:14.990 align:start position:0%
loses against a
well-tuned<00:13:13.240><c> Dijkstra.</c><00:13:14.120><c> You</c><00:13:14.320><c> explore</c><00:13:14.760><c> fewer</c>

00:13:14.990 --> 00:13:15.000 align:start position:0%
well-tuned Dijkstra. You explore fewer
 

00:13:15.000 --> 00:13:16.070 align:start position:0%
well-tuned Dijkstra. You explore fewer
nodes,

00:13:16.070 --> 00:13:16.080 align:start position:0%
nodes,
 

00:13:16.080 --> 00:13:18.510 align:start position:0%
nodes,
but<00:13:16.200><c> not</c><00:13:16.480><c> that</c><00:13:16.760><c> many.</c><00:13:17.360><c> But,</c><00:13:18.000><c> you</c><00:13:18.120><c> now</c><00:13:18.280><c> also</c>

00:13:18.510 --> 00:13:18.520 align:start position:0%
but not that many. But, you now also
 

00:13:18.520 --> 00:13:20.829 align:start position:0%
but not that many. But, you now also
have<00:13:18.680><c> to</c><00:13:18.800><c> evaluate</c><00:13:19.320><c> quite</c><00:13:19.520><c> a</c><00:13:19.600><c> few</c><00:13:19.760><c> heuristics</c>

00:13:20.829 --> 00:13:20.839 align:start position:0%
have to evaluate quite a few heuristics
 

00:13:20.839 --> 00:13:22.310 align:start position:0%
have to evaluate quite a few heuristics
that<00:13:21.040><c> you</c><00:13:21.080><c> don't</c><00:13:21.320><c> would</c><00:13:21.440><c> not</c><00:13:21.960><c> need</c><00:13:22.200><c> to</c>

00:13:22.310 --> 00:13:22.320 align:start position:0%
that you don't would not need to
 

00:13:22.320 --> 00:13:23.710 align:start position:0%
that you don't would not need to
evaluate<00:13:22.880><c> when</c><00:13:23.080><c> doing</c><00:13:23.520><c> pure</c><00:13:23.694><c> [music]</c>

00:13:23.710 --> 00:13:23.720 align:start position:0%
evaluate when doing pure [music]
 

00:13:23.720 --> 00:13:24.870 align:start position:0%
evaluate when doing pure [music]
Dijkstra.

00:13:24.870 --> 00:13:24.880 align:start position:0%
Dijkstra.
 

00:13:24.880 --> 00:13:25.829 align:start position:0%
Dijkstra.
And<00:13:25.080><c> those</c>

00:13:25.829 --> 00:13:25.839 align:start position:0%
And those
 

00:13:25.839 --> 00:13:27.830 align:start position:0%
And those
contain<00:13:26.400><c> like</c><00:13:26.720><c> a</c><00:13:26.800><c> nasty</c><00:13:27.240><c> square</c><00:13:27.680><c> root</c>

00:13:27.830 --> 00:13:27.840 align:start position:0%
contain like a nasty square root
 

00:13:27.840 --> 00:13:28.870 align:start position:0%
contain like a nasty square root
computation.

00:13:28.870 --> 00:13:28.880 align:start position:0%
computation.
 

00:13:28.880 --> 00:13:30.670 align:start position:0%
computation.
&gt;&gt; On<00:13:29.000><c> our</c><00:13:29.120><c> New</c><00:13:29.280><c> York</c><00:13:29.520><c> City</c><00:13:29.760><c> graph,</c><00:13:30.280><c> Dijkstra's</c>

00:13:30.670 --> 00:13:30.680 align:start position:0%
&gt;&gt; On our New York City graph, Dijkstra's
 

00:13:30.680 --> 00:13:32.430 align:start position:0%
&gt;&gt; On our New York City graph, Dijkstra's
algorithm<00:13:31.160><c> explored</c><00:13:31.680><c> around</c><00:13:31.960><c> nine</c><00:13:32.240><c> and</c><00:13:32.360><c> a</c>

00:13:32.430 --> 00:13:32.440 align:start position:0%
algorithm explored around nine and a
 

00:13:32.440 --> 00:13:34.870 align:start position:0%
algorithm explored around nine and a
half<00:13:32.640><c> times</c><00:13:33.040><c> more</c><00:13:33.280><c> nodes</c><00:13:33.680><c> than</c><00:13:33.840><c> A*</c><00:13:34.480><c> to</c><00:13:34.600><c> find</c>

00:13:34.870 --> 00:13:34.880 align:start position:0%
half times more nodes than A* to find
 

00:13:34.880 --> 00:13:37.190 align:start position:0%
half times more nodes than A* to find
the<00:13:34.960><c> shortest</c><00:13:35.320><c> path</c><00:13:35.640><c> by</c><00:13:35.800><c> distance.</c><00:13:36.680><c> But</c><00:13:36.960><c> if</c><00:13:37.080><c> we</c>

00:13:37.190 --> 00:13:37.200 align:start position:0%
the shortest path by distance. But if we
 

00:13:37.200 --> 00:13:39.070 align:start position:0%
the shortest path by distance. But if we
switch<00:13:37.440><c> that</c><00:13:37.680><c> to</c><00:13:37.760><c> the</c><00:13:37.840><c> shortest</c><00:13:38.200><c> travel</c><00:13:38.520><c> time,</c>

00:13:39.070 --> 00:13:39.080 align:start position:0%
switch that to the shortest travel time,
 

00:13:39.080 --> 00:13:41.870 align:start position:0%
switch that to the shortest travel time,
the<00:13:39.200><c> number</c><00:13:39.440><c> of</c><00:13:39.560><c> nodes</c><00:13:39.880><c> A*</c><00:13:40.240><c> explores</c><00:13:40.880><c> triples,</c>

00:13:41.870 --> 00:13:41.880 align:start position:0%
the number of nodes A* explores triples,
 

00:13:41.880 --> 00:13:44.590 align:start position:0%
the number of nodes A* explores triples,
while<00:13:42.040><c> Dijkstra</c><00:13:42.520><c> only</c><00:13:42.720><c> increases</c><00:13:43.160><c> by</c><00:13:43.320><c> 10%.</c>

00:13:44.590 --> 00:13:44.600 align:start position:0%
while Dijkstra only increases by 10%.
 

00:13:44.600 --> 00:13:47.430 align:start position:0%
while Dijkstra only increases by 10%.
And<00:13:44.800><c> it</c><00:13:44.960><c> only</c><00:13:45.160><c> gets</c><00:13:45.400><c> worse</c><00:13:45.720><c> on</c><00:13:45.840><c> larger</c><00:13:46.160><c> graphs.</c>

00:13:47.430 --> 00:13:47.440 align:start position:0%
And it only gets worse on larger graphs.
 

00:13:47.440 --> 00:13:49.350 align:start position:0%
And it only gets worse on larger graphs.
So<00:13:47.600><c> Google</c><00:13:47.920><c> Maps</c><00:13:48.240><c> needs</c><00:13:48.480><c> something</c><00:13:48.800><c> better</c>

00:13:49.350 --> 00:13:49.360 align:start position:0%
So Google Maps needs something better
 

00:13:49.360 --> 00:13:52.030 align:start position:0%
So Google Maps needs something better
that<00:13:49.520><c> works</c><00:13:49.800><c> well</c><00:13:50.040><c> for</c><00:13:50.160><c> travel</c><00:13:50.520><c> time.</c>

00:13:52.030 --> 00:13:52.040 align:start position:0%
that works well for travel time.
 

00:13:52.040 --> 00:13:53.350 align:start position:0%
that works well for travel time.
What<00:13:52.120><c> if</c><00:13:52.200><c> we</c><00:13:52.320><c> ran</c><00:13:52.600><c> the</c><00:13:52.680><c> search</c><00:13:53.000><c> in</c><00:13:53.120><c> both</c>

00:13:53.350 --> 00:13:53.360 align:start position:0%
What if we ran the search in both
 

00:13:53.360 --> 00:13:55.070 align:start position:0%
What if we ran the search in both
directions?<00:13:54.240><c> From</c><00:13:54.400><c> the</c><00:13:54.520><c> source</c><00:13:54.840><c> to</c><00:13:54.960><c> the</c>

00:13:55.070 --> 00:13:55.080 align:start position:0%
directions? From the source to the
 

00:13:55.080 --> 00:13:56.630 align:start position:0%
directions? From the source to the
target<00:13:55.640><c> and</c><00:13:55.760><c> from</c><00:13:55.920><c> the</c><00:13:56.040><c> target</c><00:13:56.440><c> to</c><00:13:56.520><c> the</c>

00:13:56.630 --> 00:13:56.640 align:start position:0%
target and from the target to the
 

00:13:56.640 --> 00:13:59.110 align:start position:0%
target and from the target to the
source.<00:13:57.600><c> If</c><00:13:57.800><c> two</c><00:13:57.960><c> points</c><00:13:58.320><c> are</c><00:13:58.440><c> a</c><00:13:58.480><c> distance</c><00:13:58.920><c> R</c>

00:13:59.110 --> 00:13:59.120 align:start position:0%
source. If two points are a distance R
 

00:13:59.120 --> 00:14:00.950 align:start position:0%
source. If two points are a distance R
away,<00:13:59.720><c> Dijkstra</c><00:14:00.120><c> searches</c><00:14:00.520><c> most</c><00:14:00.800><c> of</c><00:14:00.880><c> the</c>

00:14:00.950 --> 00:14:00.960 align:start position:0%
away, Dijkstra searches most of the
 

00:14:00.960 --> 00:14:03.070 align:start position:0%
away, Dijkstra searches most of the
nodes<00:14:01.320><c> roughly</c><00:14:01.640><c> within</c><00:14:01.920><c> a</c><00:14:01.960><c> circle</c><00:14:02.400><c> of</c><00:14:02.520><c> area</c><00:14:02.840><c> pi</c>

00:14:03.070 --> 00:14:03.080 align:start position:0%
nodes roughly within a circle of area pi
 

00:14:03.080 --> 00:14:04.550 align:start position:0%
nodes roughly within a circle of area pi
r<00:14:03.240><c> squared.</c>

00:14:04.550 --> 00:14:04.560 align:start position:0%
r squared.
 

00:14:04.560 --> 00:14:06.390 align:start position:0%
r squared.
But<00:14:04.800><c> with</c><00:14:04.960><c> two</c><00:14:05.120><c> searches,</c><00:14:05.800><c> the</c><00:14:05.920><c> frontiers</c>

00:14:06.390 --> 00:14:06.400 align:start position:0%
But with two searches, the frontiers
 

00:14:06.400 --> 00:14:09.070 align:start position:0%
But with two searches, the frontiers
will<00:14:06.600><c> overlap</c><00:14:07.240><c> around</c><00:14:07.560><c> R</c><00:14:07.760><c> over</c><00:14:07.960><c> two</c><00:14:08.760><c> and</c><00:14:08.840><c> cover</c>

00:14:09.070 --> 00:14:09.080 align:start position:0%
will overlap around R over two and cover
 

00:14:09.080 --> 00:14:11.550 align:start position:0%
will overlap around R over two and cover
an<00:14:09.200><c> area</c><00:14:09.600><c> of</c><00:14:09.800><c> half</c><00:14:10.160><c> pi</c><00:14:10.360><c> r</c><00:14:10.480><c> squared.</c>

00:14:11.550 --> 00:14:11.560 align:start position:0%
an area of half pi r squared.
 

00:14:11.560 --> 00:14:13.750 align:start position:0%
an area of half pi r squared.
Half<00:14:11.800><c> that</c><00:14:12.000><c> of</c><00:14:12.080><c> the</c><00:14:12.160><c> single</c><00:14:12.440><c> search.</c>

00:14:13.750 --> 00:14:13.760 align:start position:0%
Half that of the single search.
 

00:14:13.760 --> 00:14:14.910 align:start position:0%
Half that of the single search.
And<00:14:13.840><c> depending</c><00:14:14.160><c> on</c><00:14:14.240><c> the</c><00:14:14.320><c> graph,</c><00:14:14.680><c> it</c><00:14:14.800><c> can</c>

00:14:14.910 --> 00:14:14.920 align:start position:0%
And depending on the graph, it can
 

00:14:14.920 --> 00:14:17.230 align:start position:0%
And depending on the graph, it can
sometimes<00:14:15.400><c> be</c><00:14:15.560><c> better</c><00:14:15.840><c> than</c><00:14:16.000><c> half.</c>

00:14:17.230 --> 00:14:17.240 align:start position:0%
sometimes be better than half.
 

00:14:17.240 --> 00:14:18.950 align:start position:0%
sometimes be better than half.
A<00:14:17.280><c> basic</c><00:14:17.680><c> Dijkstra</c><00:14:18.080><c> search</c><00:14:18.400><c> from</c><00:14:18.560><c> Carnegie</c>

00:14:18.950 --> 00:14:18.960 align:start position:0%
A basic Dijkstra search from Carnegie
 

00:14:18.960 --> 00:14:21.510 align:start position:0%
A basic Dijkstra search from Carnegie
Hall<00:14:19.240><c> to</c><00:14:19.360><c> Wall</c><00:14:19.600><c> Street</c><00:14:20.000><c> explored</c><00:14:20.560><c> over</c><00:14:20.760><c> 7,200</c>

00:14:21.510 --> 00:14:21.520 align:start position:0%
Hall to Wall Street explored over 7,200
 

00:14:21.520 --> 00:14:23.910 align:start position:0%
Hall to Wall Street explored over 7,200
nodes.

00:14:23.910 --> 00:14:23.920 align:start position:0%
nodes.
 

00:14:23.920 --> 00:14:25.870 align:start position:0%
nodes.
But<00:14:24.160><c> a</c><00:14:24.200><c> bidirectional</c><00:14:24.960><c> Dijkstra</c><00:14:25.360><c> explored</c><00:14:25.840><c> a</c>

00:14:25.870 --> 00:14:25.880 align:start position:0%
But a bidirectional Dijkstra explored a
 

00:14:25.880 --> 00:14:28.750 align:start position:0%
But a bidirectional Dijkstra explored a
little<00:14:26.200><c> over</c><00:14:26.440><c> 2,600</c><00:14:27.680><c> nodes,</c><00:14:28.200><c> close</c><00:14:28.520><c> to</c><00:14:28.680><c> a</c>

00:14:28.750 --> 00:14:28.760 align:start position:0%
little over 2,600 nodes, close to a
 

00:14:28.760 --> 00:14:31.190 align:start position:0%
little over 2,600 nodes, close to a
three<00:14:29.080><c> times</c><00:14:29.440><c> improvement.</c>

00:14:31.190 --> 00:14:31.200 align:start position:0%
three times improvement.
 

00:14:31.200 --> 00:14:32.950 align:start position:0%
three times improvement.
But<00:14:31.480><c> even</c><00:14:31.680><c> a</c><00:14:31.720><c> bidirectional</c><00:14:32.320><c> search</c><00:14:32.680><c> doesn't</c>

00:14:32.950 --> 00:14:32.960 align:start position:0%
But even a bidirectional search doesn't
 

00:14:32.960 --> 00:14:34.510 align:start position:0%
But even a bidirectional search doesn't
take<00:14:33.080><c> advantage</c><00:14:33.480><c> of</c><00:14:33.560><c> the</c><00:14:33.640><c> logic</c><00:14:34.080><c> built</c><00:14:34.360><c> into</c>

00:14:34.510 --> 00:14:34.520 align:start position:0%
take advantage of the logic built into
 

00:14:34.520 --> 00:14:35.590 align:start position:0%
take advantage of the logic built into
road<00:14:34.720><c> networks.</c>

00:14:35.590 --> 00:14:35.600 align:start position:0%
road networks.
 

00:14:35.600 --> 00:14:37.270 align:start position:0%
road networks.
&gt;&gt; They<00:14:35.720><c> still</c><00:14:36.040><c> do</c><00:14:36.240><c> things</c><00:14:36.560><c> that</c><00:14:36.760><c> you</c><00:14:37.000><c> wouldn't</c>

00:14:37.270 --> 00:14:37.280 align:start position:0%
&gt;&gt; They still do things that you wouldn't
 

00:14:37.280 --> 00:14:40.030 align:start position:0%
&gt;&gt; They still do things that you wouldn't
necessarily<00:14:38.600><c> conceive</c><00:14:39.160><c> as</c><00:14:39.280><c> a</c><00:14:39.400><c> good</c><00:14:39.640><c> idea,</c>

00:14:40.030 --> 00:14:40.040 align:start position:0%
necessarily conceive as a good idea,
 

00:14:40.040 --> 00:14:41.910 align:start position:0%
necessarily conceive as a good idea,
right?<00:14:40.280><c> Like</c><00:14:40.440><c> they</c><00:14:40.560><c> still</c><00:14:41.120><c> look</c><00:14:41.680><c> at</c><00:14:41.839><c> the</c>

00:14:41.910 --> 00:14:41.920 align:start position:0%
right? Like they still look at the
 

00:14:41.920 --> 00:14:44.910 align:start position:0%
right? Like they still look at the
drive-thru<00:14:43.160><c> at</c><00:14:43.400><c> In-N-Out</c><00:14:44.120><c> and</c><00:14:44.280><c> see</c><00:14:44.560><c> if</c><00:14:44.720><c> there</c>

00:14:44.910 --> 00:14:44.920 align:start position:0%
drive-thru at In-N-Out and see if there
 

00:14:44.920 --> 00:14:47.310 align:start position:0%
drive-thru at In-N-Out and see if there
isn't<00:14:45.240><c> perhaps</c><00:14:45.800><c> a</c><00:14:45.839><c> shorter</c><00:14:46.200><c> path</c><00:14:47.040><c> if</c><00:14:47.200><c> you</c>

00:14:47.310 --> 00:14:47.320 align:start position:0%
isn't perhaps a shorter path if you
 

00:14:47.320 --> 00:14:49.350 align:start position:0%
isn't perhaps a shorter path if you
drive<00:14:47.680><c> halfway</c><00:14:48.080><c> into</c><00:14:48.360><c> it</c><00:14:48.680><c> and</c><00:14:48.839><c> then</c><00:14:49.120><c> some</c>

00:14:49.350 --> 00:14:49.360 align:start position:0%
drive halfway into it and then some
 

00:14:49.360 --> 00:14:51.390 align:start position:0%
drive halfway into it and then some
clever<00:14:49.640><c> way</c><00:14:49.800><c> out</c><00:14:50.000><c> of</c><00:14:50.120><c> it,</c><00:14:50.320><c> right?</c><00:14:50.839><c> So</c><00:14:51.000><c> maybe</c>

00:14:51.390 --> 00:14:51.400 align:start position:0%
clever way out of it, right? So maybe
 

00:14:51.400 --> 00:14:53.790 align:start position:0%
clever way out of it, right? So maybe
that<00:14:51.720><c> is</c><00:14:51.880><c> the</c><00:14:52.120><c> intuition</c><00:14:52.839><c> between</c><00:14:53.280><c> why</c><00:14:53.640><c> kind</c>

00:14:53.790 --> 00:14:53.800 align:start position:0%
that is the intuition between why kind
 

00:14:53.800 --> 00:14:56.510 align:start position:0%
that is the intuition between why kind
of<00:14:53.920><c> Dijkstra</c><00:14:54.280><c> and</c><00:14:54.440><c> A*</c><00:14:55.000><c> itself</c><00:14:55.600><c> don't</c><00:14:55.960><c> suffice.</c>

00:14:56.510 --> 00:14:56.520 align:start position:0%
of Dijkstra and A* itself don't suffice.
 

00:14:56.520 --> 00:14:59.110 align:start position:0%
of Dijkstra and A* itself don't suffice.
Both<00:14:56.880><c> of</c><00:14:57.040><c> them</c><00:14:57.320><c> still</c><00:14:58.400><c> kind</c><00:14:58.560><c> of</c><00:14:58.680><c> don't</c><00:14:58.960><c> don't</c>

00:14:59.110 --> 00:14:59.120 align:start position:0%
Both of them still kind of don't don't
 

00:14:59.120 --> 00:15:00.829 align:start position:0%
Both of them still kind of don't don't
have<00:14:59.240><c> a</c><00:14:59.320><c> good</c><00:14:59.600><c> sense</c><00:14:59.880><c> of</c><00:14:59.960><c> the</c><00:15:00.080><c> hierarchy</c><00:15:00.720><c> of</c>

00:15:00.829 --> 00:15:00.839 align:start position:0%
have a good sense of the hierarchy of
 

00:15:00.839 --> 00:15:04.670 align:start position:0%
have a good sense of the hierarchy of
the<00:15:00.960><c> road</c><00:15:01.240><c> network.</c>

00:15:04.670 --> 00:15:04.680 align:start position:0%
 
 

00:15:04.680 --> 00:15:05.829 align:start position:0%
 
&gt;&gt; When<00:15:04.800><c> I</c><00:15:04.880><c> think</c><00:15:05.040><c> about</c><00:15:05.240><c> how</c><00:15:05.320><c> to</c><00:15:05.400><c> get</c><00:15:05.560><c> from</c><00:15:05.680><c> one</c>

00:15:05.829 --> 00:15:05.839 align:start position:0%
&gt;&gt; When I think about how to get from one
 

00:15:05.839 --> 00:15:07.310 align:start position:0%
&gt;&gt; When I think about how to get from one
place<00:15:06.080><c> to</c><00:15:06.200><c> another,</c><00:15:06.800><c> I</c><00:15:06.920><c> know</c><00:15:07.080><c> that</c><00:15:07.240><c> I'm</c>

00:15:07.310 --> 00:15:07.320 align:start position:0%
place to another, I know that I'm
 

00:15:07.320 --> 00:15:08.870 align:start position:0%
place to another, I know that I'm
probably<00:15:07.640><c> going</c><00:15:07.760><c> to</c><00:15:07.880><c> meander</c><00:15:08.360><c> around</c><00:15:08.680><c> some</c>

00:15:08.870 --> 00:15:08.880 align:start position:0%
probably going to meander around some
 

00:15:08.880 --> 00:15:11.430 align:start position:0%
probably going to meander around some
local<00:15:09.200><c> roads,</c><00:15:09.960><c> then</c><00:15:10.120><c> hop</c><00:15:10.320><c> on</c><00:15:10.400><c> a</c><00:15:10.440><c> highway.</c><00:15:11.320><c> Then</c>

00:15:11.430 --> 00:15:11.440 align:start position:0%
local roads, then hop on a highway. Then
 

00:15:11.440 --> 00:15:12.670 align:start position:0%
local roads, then hop on a highway. Then
when<00:15:11.560><c> I'm</c><00:15:11.640><c> close</c><00:15:11.839><c> to</c><00:15:11.920><c> my</c><00:15:12.000><c> destination,</c><00:15:12.600><c> I'm</c>

00:15:12.670 --> 00:15:12.680 align:start position:0%
when I'm close to my destination, I'm
 

00:15:12.680 --> 00:15:14.030 align:start position:0%
when I'm close to my destination, I'm
going<00:15:12.800><c> to</c><00:15:12.839><c> hop</c><00:15:13.000><c> off</c><00:15:13.200><c> the</c><00:15:13.280><c> highway</c><00:15:13.640><c> and</c><00:15:13.760><c> meander</c>

00:15:14.030 --> 00:15:14.040 align:start position:0%
going to hop off the highway and meander
 

00:15:14.040 --> 00:15:16.110 align:start position:0%
going to hop off the highway and meander
around<00:15:14.360><c> some</c><00:15:14.480><c> more</c><00:15:14.720><c> local</c><00:15:15.040><c> roads.</c>

00:15:16.110 --> 00:15:16.120 align:start position:0%
around some more local roads.
 

00:15:16.120 --> 00:15:18.310 align:start position:0%
around some more local roads.
There's<00:15:16.320><c> a</c><00:15:16.440><c> hierarchy</c><00:15:17.040><c> to</c><00:15:17.160><c> road</c><00:15:17.360><c> networks,</c>

00:15:18.310 --> 00:15:18.320 align:start position:0%
There's a hierarchy to road networks,
 

00:15:18.320 --> 00:15:19.630 align:start position:0%
There's a hierarchy to road networks,
but<00:15:18.520><c> these</c><00:15:18.680><c> algorithms</c><00:15:19.280><c> can't</c><00:15:19.480><c> take</c>

00:15:19.630 --> 00:15:19.640 align:start position:0%
but these algorithms can't take
 

00:15:19.640 --> 00:15:20.950 align:start position:0%
but these algorithms can't take
advantage<00:15:20.040><c> of</c><00:15:20.080><c> them.</c>

00:15:20.950 --> 00:15:20.960 align:start position:0%
advantage of them.
 

00:15:20.960 --> 00:15:22.910 align:start position:0%
advantage of them.
So<00:15:21.160><c> they're</c><00:15:21.400><c> as</c><00:15:21.640><c> likely</c><00:15:21.960><c> to</c><00:15:22.080><c> search</c><00:15:22.400><c> a</c><00:15:22.480><c> twisty</c>

00:15:22.910 --> 00:15:22.920 align:start position:0%
So they're as likely to search a twisty
 

00:15:22.920 --> 00:15:25.630 align:start position:0%
So they're as likely to search a twisty
local<00:15:23.240><c> road</c><00:15:23.760><c> as</c><00:15:24.480><c> an</c><00:15:24.640><c> interstate</c><00:15:25.040><c> highway</c><00:15:25.520><c> as</c>

00:15:25.630 --> 00:15:25.640 align:start position:0%
local road as an interstate highway as
 

00:15:25.640 --> 00:15:27.510 align:start position:0%
local road as an interstate highway as
long<00:15:25.800><c> as</c><00:15:25.880><c> they</c><00:15:25.960><c> have</c><00:15:26.080><c> the</c><00:15:26.160><c> same</c><00:15:26.400><c> weight.</c>

00:15:27.510 --> 00:15:27.520 align:start position:0%
long as they have the same weight.
 

00:15:27.520 --> 00:15:29.830 align:start position:0%
long as they have the same weight.
So,<00:15:27.920><c> how</c><00:15:28.040><c> do</c><00:15:28.160><c> we</c><00:15:28.280><c> actually</c><00:15:28.640><c> encode</c><00:15:29.240><c> that</c><00:15:29.480><c> human</c>

00:15:29.830 --> 00:15:29.840 align:start position:0%
So, how do we actually encode that human
 

00:15:29.840 --> 00:15:31.990 align:start position:0%
So, how do we actually encode that human
intuition<00:15:30.600><c> into</c><00:15:30.880><c> an</c><00:15:30.960><c> algorithm?</c>

00:15:31.990 --> 00:15:32.000 align:start position:0%
intuition into an algorithm?
 

00:15:32.000 --> 00:15:33.790 align:start position:0%
intuition into an algorithm?
&gt;&gt; If<00:15:32.200><c> you</c><00:15:32.320><c> look</c><00:15:32.520><c> at</c><00:15:32.760><c> kind</c><00:15:32.920><c> of</c><00:15:33.480><c> industry</c>

00:15:33.790 --> 00:15:33.800 align:start position:0%
&gt;&gt; If you look at kind of industry
 

00:15:33.800 --> 00:15:35.630 align:start position:0%
&gt;&gt; If you look at kind of industry
implementations<00:15:34.560><c> in</c><00:15:34.680><c> the</c><00:15:34.760><c> '90s</c><00:15:35.200><c> for</c><00:15:35.320><c> instance</c>

00:15:35.630 --> 00:15:35.640 align:start position:0%
implementations in the '90s for instance
 

00:15:35.640 --> 00:15:38.350 align:start position:0%
implementations in the '90s for instance
like<00:15:35.800><c> in</c><00:15:35.920><c> these</c><00:15:36.160><c> early</c><00:15:36.680><c> in-car</c><00:15:37.240><c> GPS</c><00:15:37.640><c> systems,</c>

00:15:38.350 --> 00:15:38.360 align:start position:0%
like in these early in-car GPS systems,
 

00:15:38.360 --> 00:15:42.110 align:start position:0%
like in these early in-car GPS systems,
they<00:15:38.560><c> had</c><00:15:39.400><c> like</c><00:15:39.640><c> a</c><00:15:39.680><c> pre-computed</c><00:15:40.960><c> road</c><00:15:41.280><c> class</c>

00:15:42.110 --> 00:15:42.120 align:start position:0%
they had like a pre-computed road class
 

00:15:42.120 --> 00:15:45.030 align:start position:0%
they had like a pre-computed road class
that<00:15:42.240><c> they</c><00:15:42.360><c> annotated</c><00:15:42.800><c> on</c><00:15:42.920><c> the</c><00:15:43.040><c> roads.</c>

00:15:45.030 --> 00:15:45.040 align:start position:0%
that they annotated on the roads.
 

00:15:45.040 --> 00:15:46.950 align:start position:0%
that they annotated on the roads.
&gt;&gt; So,<00:15:45.240><c> here</c><00:15:45.440><c> was</c><00:15:45.560><c> the</c><00:15:45.640><c> basic</c><00:15:46.000><c> idea.</c><00:15:46.520><c> Surveyors</c>

00:15:46.950 --> 00:15:46.960 align:start position:0%
&gt;&gt; So, here was the basic idea. Surveyors
 

00:15:46.960 --> 00:15:48.990 align:start position:0%
&gt;&gt; So, here was the basic idea. Surveyors
would<00:15:47.080><c> go</c><00:15:47.280><c> out</c><00:15:47.520><c> and</c><00:15:47.600><c> take</c><00:15:47.800><c> notes</c><00:15:48.080><c> about</c><00:15:48.280><c> a</c><00:15:48.320><c> road</c>

00:15:48.990 --> 00:15:49.000 align:start position:0%
would go out and take notes about a road
 

00:15:49.000 --> 00:15:51.350 align:start position:0%
would go out and take notes about a road
like<00:15:49.520><c> its</c><00:15:49.760><c> speed</c><00:15:50.040><c> limit,</c><00:15:50.480><c> how</c><00:15:50.640><c> wide</c><00:15:50.880><c> it</c><00:15:51.000><c> was,</c>

00:15:51.350 --> 00:15:51.360 align:start position:0%
like its speed limit, how wide it was,
 

00:15:51.360 --> 00:15:52.950 align:start position:0%
like its speed limit, how wide it was,
whether<00:15:51.560><c> it</c><00:15:51.640><c> was</c><00:15:51.760><c> a</c><00:15:51.800><c> highway.</c><00:15:52.720><c> Then</c><00:15:52.880><c> they</c>

00:15:52.950 --> 00:15:52.960 align:start position:0%
whether it was a highway. Then they
 

00:15:52.960 --> 00:15:54.390 align:start position:0%
whether it was a highway. Then they
would<00:15:53.120><c> send</c><00:15:53.280><c> that</c><00:15:53.400><c> to</c><00:15:53.480><c> the</c><00:15:53.560><c> mapping</c><00:15:53.880><c> companies</c>

00:15:54.390 --> 00:15:54.400 align:start position:0%
would send that to the mapping companies
 

00:15:54.400 --> 00:15:55.750 align:start position:0%
would send that to the mapping companies
who<00:15:54.440><c> would</c><00:15:54.600><c> manually</c><00:15:54.960><c> categorize</c><00:15:55.480><c> it</c><00:15:55.600><c> into</c>

00:15:55.750 --> 00:15:55.760 align:start position:0%
who would manually categorize it into
 

00:15:55.760 --> 00:15:57.750 align:start position:0%
who would manually categorize it into
hierarchies.<00:15:56.720><c> An</c><00:15:56.800><c> example</c><00:15:57.120><c> of</c><00:15:57.200><c> a</c><00:15:57.240><c> hierarchy</c>

00:15:57.750 --> 00:15:57.760 align:start position:0%
hierarchies. An example of a hierarchy
 

00:15:57.760 --> 00:16:00.070 align:start position:0%
hierarchies. An example of a hierarchy
might<00:15:57.960><c> be</c><00:15:58.120><c> express</c><00:15:58.640><c> highway,</c><00:15:59.520><c> local</c><00:15:59.800><c> major</c>

00:16:00.070 --> 00:16:00.080 align:start position:0%
might be express highway, local major
 

00:16:00.080 --> 00:16:00.886 align:start position:0%
might be express highway, local major
road,<00:16:00.640><c> or</c>

00:16:00.886 --> 00:16:00.896 align:start position:0%
road, or
 

00:16:00.896 --> 00:16:00.910 align:start position:0%
road, or
&gt;&gt; [music]

00:16:00.910 --> 00:16:00.920 align:start position:0%
&gt;&gt; [music]
 

00:16:00.920 --> 00:16:03.110 align:start position:0%
&gt;&gt; [music]
&gt;&gt; narrow<00:16:01.200><c> road</c><00:16:01.640><c> like</c><00:16:01.800><c> this.</c><00:16:02.600><c> Once</c><00:16:02.800><c> it</c><00:16:02.880><c> had</c><00:16:03.040><c> the</c>

00:16:03.110 --> 00:16:03.120 align:start position:0%
&gt;&gt; narrow road like this. Once it had the
 

00:16:03.120 --> 00:16:05.270 align:start position:0%
&gt;&gt; narrow road like this. Once it had the
maps,<00:16:03.680><c> GPS</c><00:16:04.240><c> would</c><00:16:04.360><c> run</c><00:16:04.520><c> a</c><00:16:04.560><c> bidirectional</c>

00:16:05.270 --> 00:16:05.280 align:start position:0%
maps, GPS would run a bidirectional
 

00:16:05.280 --> 00:16:06.510 align:start position:0%
maps, GPS would run a bidirectional
Dijkstra.

00:16:06.510 --> 00:16:06.520 align:start position:0%
Dijkstra.
 

00:16:06.520 --> 00:16:08.430 align:start position:0%
Dijkstra.
But,<00:16:06.880><c> there</c><00:16:07.040><c> was</c><00:16:07.160><c> a</c><00:16:07.240><c> catch.</c><00:16:08.000><c> It</c><00:16:08.160><c> first</c>

00:16:08.430 --> 00:16:08.440 align:start position:0%
But, there was a catch. It first
 

00:16:08.440 --> 00:16:10.190 align:start position:0%
But, there was a catch. It first
searched<00:16:08.840><c> all</c><00:16:09.000><c> the</c><00:16:09.120><c> narrow</c><00:16:09.480><c> roads</c><00:16:09.920><c> within</c><00:16:10.160><c> a</c>

00:16:10.190 --> 00:16:10.200 align:start position:0%
searched all the narrow roads within a
 

00:16:10.200 --> 00:16:12.230 align:start position:0%
searched all the narrow roads within a
candidate<00:16:10.640><c> area.</c><00:16:11.600><c> If</c><00:16:11.680><c> it</c><00:16:11.760><c> didn't</c><00:16:11.960><c> find</c><00:16:12.160><c> the</c>

00:16:12.230 --> 00:16:12.240 align:start position:0%
candidate area. If it didn't find the
 

00:16:12.240 --> 00:16:14.110 align:start position:0%
candidate area. If it didn't find the
target,<00:16:12.880><c> it</c><00:16:13.000><c> mapped</c><00:16:13.240><c> the</c><00:16:13.320><c> path</c><00:16:13.680><c> to</c><00:16:13.760><c> the</c><00:16:13.840><c> next</c>

00:16:14.110 --> 00:16:14.120 align:start position:0%
target, it mapped the path to the next
 

00:16:14.120 --> 00:16:15.350 align:start position:0%
target, it mapped the path to the next
hierarchy.

00:16:15.350 --> 00:16:15.360 align:start position:0%
hierarchy.
 

00:16:15.360 --> 00:16:17.510 align:start position:0%
hierarchy.
The<00:16:15.400><c> major</c><00:16:15.680><c> local</c><00:16:16.000><c> roads.</c><00:16:16.760><c> Then</c><00:16:16.960><c> searched</c><00:16:17.280><c> all</c>

00:16:17.510 --> 00:16:17.520 align:start position:0%
The major local roads. Then searched all
 

00:16:17.520 --> 00:16:19.230 align:start position:0%
The major local roads. Then searched all
of<00:16:17.560><c> the</c><00:16:17.640><c> major</c><00:16:17.960><c> local</c><00:16:18.240><c> roads</c><00:16:18.680><c> within</c><00:16:18.960><c> the</c><00:16:19.080><c> new</c>

00:16:19.230 --> 00:16:19.240 align:start position:0%
of the major local roads within the new
 

00:16:19.240 --> 00:16:20.630 align:start position:0%
of the major local roads within the new
candidate<00:16:19.760><c> area.</c>

00:16:20.630 --> 00:16:20.640 align:start position:0%
candidate area.
 

00:16:20.640 --> 00:16:22.310 align:start position:0%
candidate area.
If<00:16:20.760><c> it</c><00:16:20.880><c> still</c><00:16:21.160><c> didn't</c><00:16:21.400><c> find</c><00:16:21.600><c> the</c><00:16:21.680><c> target,</c><00:16:22.160><c> it</c>

00:16:22.310 --> 00:16:22.320 align:start position:0%
If it still didn't find the target, it
 

00:16:22.320 --> 00:16:24.790 align:start position:0%
If it still didn't find the target, it
moved<00:16:22.640><c> up</c><00:16:22.760><c> again</c><00:16:23.240><c> to</c><00:16:23.360><c> the</c><00:16:23.480><c> highway</c><00:16:23.840><c> level.</c>

00:16:24.790 --> 00:16:24.800 align:start position:0%
moved up again to the highway level.
 

00:16:24.800 --> 00:16:26.390 align:start position:0%
moved up again to the highway level.
The<00:16:24.839><c> two</c><00:16:25.000><c> searches</c><00:16:25.440><c> would</c><00:16:25.600><c> overlap</c><00:16:26.120><c> at</c><00:16:26.200><c> some</c>

00:16:26.390 --> 00:16:26.400 align:start position:0%
The two searches would overlap at some
 

00:16:26.400 --> 00:16:28.430 align:start position:0%
The two searches would overlap at some
point<00:16:26.760><c> and</c><00:16:26.880><c> return</c><00:16:27.240><c> the</c><00:16:27.360><c> final</c><00:16:27.640><c> path.</c><00:16:27.751><c> [music]</c>

00:16:28.430 --> 00:16:28.440 align:start position:0%
point and return the final path. [music]
 

00:16:28.440 --> 00:16:30.390 align:start position:0%
point and return the final path. [music]
This<00:16:28.640><c> way,</c><00:16:28.960><c> a</c><00:16:29.040><c> little</c><00:16:29.320><c> pre-processing</c><00:16:30.200><c> could</c>

00:16:30.390 --> 00:16:30.400 align:start position:0%
This way, a little pre-processing could
 

00:16:30.400 --> 00:16:31.870 align:start position:0%
This way, a little pre-processing could
reduce<00:16:30.800><c> the</c><00:16:30.880><c> search</c><00:16:31.160><c> area</c><00:16:31.600><c> and</c><00:16:31.720><c> take</c>

00:16:31.870 --> 00:16:31.880 align:start position:0%
reduce the search area and take
 

00:16:31.880 --> 00:16:34.550 align:start position:0%
reduce the search area and take
advantage<00:16:32.320><c> of</c><00:16:32.400><c> the</c><00:16:32.480><c> road</c><00:16:32.680><c> hierarchy.</c>

00:16:34.550 --> 00:16:34.560 align:start position:0%
advantage of the road hierarchy.
 

00:16:34.560 --> 00:16:37.150 align:start position:0%
advantage of the road hierarchy.
&gt;&gt; One<00:16:34.920><c> obvious</c><00:16:35.280><c> downside</c><00:16:35.800><c> here</c><00:16:36.120><c> is</c><00:16:36.360><c> that</c><00:16:36.920><c> how</c><00:16:37.040><c> do</c>

00:16:37.150 --> 00:16:37.160 align:start position:0%
&gt;&gt; One obvious downside here is that how do
 

00:16:37.160 --> 00:16:39.030 align:start position:0%
&gt;&gt; One obvious downside here is that how do
you<00:16:37.240><c> compute</c><00:16:37.600><c> correctly</c><00:16:38.080><c> compute</c><00:16:38.480><c> those</c>

00:16:39.030 --> 00:16:39.040 align:start position:0%
you compute correctly compute those
 

00:16:39.040 --> 00:16:42.310 align:start position:0%
you compute correctly compute those
those<00:16:39.640><c> levels</c><00:16:39.920><c> of</c><00:16:40.040><c> hierarchy</c><00:16:41.120><c> and</c><00:16:41.880><c> how</c><00:16:42.120><c> can</c>

00:16:42.310 --> 00:16:42.320 align:start position:0%
those levels of hierarchy and how can
 

00:16:42.320 --> 00:16:43.829 align:start position:0%
those levels of hierarchy and how can
you<00:16:42.440><c> prove</c><00:16:42.760><c> to</c><00:16:42.880><c> yourself</c><00:16:43.280><c> that</c><00:16:43.520><c> that</c><00:16:43.680><c> they</c><00:16:43.760><c> are</c>

00:16:43.829 --> 00:16:43.839 align:start position:0%
you prove to yourself that that they are
 

00:16:43.839 --> 00:16:45.270 align:start position:0%
you prove to yourself that that they are
correct<00:16:44.160><c> in</c><00:16:44.240><c> the</c><00:16:44.320><c> sense</c><00:16:44.520><c> that</c><00:16:44.839><c> you</c><00:16:44.960><c> are</c><00:16:45.040><c> not</c>

00:16:45.270 --> 00:16:45.280 align:start position:0%
correct in the sense that you are not
 

00:16:45.280 --> 00:16:47.030 align:start position:0%
correct in the sense that you are not
missing<00:16:45.600><c> any</c><00:16:45.760><c> shortest</c><00:16:46.120><c> paths?</c>

00:16:47.030 --> 00:16:47.040 align:start position:0%
missing any shortest paths?
 

00:16:47.040 --> 00:16:48.550 align:start position:0%
missing any shortest paths?
&gt;&gt; For<00:16:47.120><c> example,</c><00:16:47.560><c> if</c><00:16:47.640><c> the</c><00:16:47.760><c> candidate</c><00:16:48.120><c> area</c><00:16:48.400><c> is</c>

00:16:48.550 --> 00:16:48.560 align:start position:0%
&gt;&gt; For example, if the candidate area is
 

00:16:48.560 --> 00:16:50.110 align:start position:0%
&gt;&gt; For example, if the candidate area is
too<00:16:48.760><c> small,</c><00:16:49.320><c> there's</c><00:16:49.520><c> a</c><00:16:49.600><c> chance</c><00:16:50.000><c> the</c>

00:16:50.110 --> 00:16:50.120 align:start position:0%
too small, there's a chance the
 

00:16:50.120 --> 00:16:52.310 align:start position:0%
too small, there's a chance the
algorithm<00:16:50.560><c> returns</c><00:16:50.920><c> a</c><00:16:50.960><c> highway</c><00:16:51.320><c> path</c><00:16:52.040><c> when</c><00:16:52.280><c> a</c>

00:16:52.310 --> 00:16:52.320 align:start position:0%
algorithm returns a highway path when a
 

00:16:52.320 --> 00:16:54.790 align:start position:0%
algorithm returns a highway path when a
series<00:16:52.640><c> of</c><00:16:52.760><c> local</c><00:16:53.040><c> roads</c><00:16:53.360><c> really</c><00:16:53.760><c> is</c><00:16:54.000><c> better.</c>

00:16:54.790 --> 00:16:54.800 align:start position:0%
series of local roads really is better.
 

00:16:54.800 --> 00:16:56.470 align:start position:0%
series of local roads really is better.
A<00:16:54.839><c> much</c><00:16:55.080><c> larger</c><00:16:55.440><c> candidate</c><00:16:55.839><c> area</c><00:16:56.160><c> might</c>

00:16:56.470 --> 00:16:56.480 align:start position:0%
A much larger candidate area might
 

00:16:56.480 --> 00:16:58.710 align:start position:0%
A much larger candidate area might
always<00:16:56.800><c> find</c><00:16:57.000><c> the</c><00:16:57.080><c> shortest</c><00:16:57.400><c> path,</c><00:16:58.200><c> but</c><00:16:58.600><c> at</c>

00:16:58.710 --> 00:16:58.720 align:start position:0%
always find the shortest path, but at
 

00:16:58.720 --> 00:17:00.430 align:start position:0%
always find the shortest path, but at
some<00:16:58.920><c> point</c><00:16:59.360><c> that's</c><00:16:59.600><c> not</c><00:16:59.839><c> much</c><00:17:00.080><c> better</c><00:17:00.280><c> than</c>

00:17:00.430 --> 00:17:00.440 align:start position:0%
some point that's not much better than
 

00:17:00.440 --> 00:17:01.990 align:start position:0%
some point that's not much better than
Dijkstra.

00:17:01.990 --> 00:17:02.000 align:start position:0%
Dijkstra.
 

00:17:02.000 --> 00:17:03.630 align:start position:0%
Dijkstra.
If<00:17:02.120><c> Google</c><00:17:02.360><c> wanted</c><00:17:02.640><c> to</c><00:17:02.720><c> map</c><00:17:02.920><c> the</c><00:17:03.000><c> world,</c><00:17:03.560><c> they</c>

00:17:03.630 --> 00:17:03.640 align:start position:0%
If Google wanted to map the world, they
 

00:17:03.640 --> 00:17:06.990 align:start position:0%
If Google wanted to map the world, they
need<00:17:03.839><c> a</c><00:17:03.880><c> better</c><00:17:04.079><c> routing</c><00:17:04.400><c> algorithm.</c>

00:17:06.990 --> 00:17:07.000 align:start position:0%
 
 

00:17:07.000 --> 00:17:08.870 align:start position:0%
 
Using<00:17:07.240><c> a</c><00:17:07.319><c> pre-processed</c><00:17:07.959><c> hierarchy</c><00:17:08.439><c> gives</c><00:17:08.680><c> us</c>

00:17:08.870 --> 00:17:08.880 align:start position:0%
Using a pre-processed hierarchy gives us
 

00:17:08.880 --> 00:17:11.270 align:start position:0%
Using a pre-processed hierarchy gives us
way<00:17:09.160><c> faster</c><00:17:09.600><c> query</c><00:17:09.880><c> runtimes,</c><00:17:10.560><c> but</c><00:17:11.040><c> there's</c><00:17:11.199><c> a</c>

00:17:11.270 --> 00:17:11.280 align:start position:0%
way faster query runtimes, but there's a
 

00:17:11.280 --> 00:17:13.189 align:start position:0%
way faster query runtimes, but there's a
trade-off.<00:17:12.160><c> Our</c><00:17:12.319><c> brute-force</c><00:17:12.760><c> algorithm</c>

00:17:13.189 --> 00:17:13.199 align:start position:0%
trade-off. Our brute-force algorithm
 

00:17:13.199 --> 00:17:15.069 align:start position:0%
trade-off. Our brute-force algorithm
from<00:17:13.400><c> earlier</c><00:17:13.839><c> where</c><00:17:13.959><c> we</c><00:17:14.079><c> just</c><00:17:14.240><c> calculated</c>

00:17:15.069 --> 00:17:15.079 align:start position:0%
from earlier where we just calculated
 

00:17:15.079 --> 00:17:16.790 align:start position:0%
from earlier where we just calculated
all<00:17:15.280><c> the</c><00:17:15.360><c> paths</c><00:17:15.720><c> to</c><00:17:15.800><c> get</c><00:17:15.920><c> the</c><00:17:16.000><c> shortest</c><00:17:16.360><c> one</c><00:17:16.600><c> is</c>

00:17:16.790 --> 00:17:16.800 align:start position:0%
all the paths to get the shortest one is
 

00:17:16.800 --> 00:17:18.390 align:start position:0%
all the paths to get the shortest one is
a<00:17:16.880><c> perfect</c><00:17:17.199><c> example.</c>

00:17:18.390 --> 00:17:18.400 align:start position:0%
a perfect example.
 

00:17:18.400 --> 00:17:20.110 align:start position:0%
a perfect example.
If<00:17:18.480><c> we</c><00:17:18.560><c> had</c><00:17:18.640><c> a</c><00:17:18.720><c> massive</c><00:17:19.160><c> lookup</c><00:17:19.400><c> table</c><00:17:19.800><c> of</c><00:17:19.959><c> all</c>

00:17:20.110 --> 00:17:20.120 align:start position:0%
If we had a massive lookup table of all
 

00:17:20.120 --> 00:17:21.451 align:start position:0%
If we had a massive lookup table of all
the<00:17:20.199><c> shortest</c><00:17:20.520><c> paths</c><00:17:20.880><c> from</c><00:17:21.040><c> any</c><00:17:21.199><c> two</c><00:17:21.319><c> points,</c>

00:17:21.451 --> 00:17:21.461 align:start position:0%
the shortest paths from any two points,
 

00:17:21.461 --> 00:17:22.069 align:start position:0%
the shortest paths from any two points,
[music]

00:17:22.069 --> 00:17:22.079 align:start position:0%
[music]
 

00:17:22.079 --> 00:17:23.910 align:start position:0%
[music]
then<00:17:22.160><c> we</c><00:17:22.280><c> would</c><00:17:22.520><c> get</c><00:17:22.760><c> insanely</c><00:17:23.319><c> fast</c><00:17:23.680><c> query</c>

00:17:23.910 --> 00:17:23.920 align:start position:0%
then we would get insanely fast query
 

00:17:23.920 --> 00:17:26.037 align:start position:0%
then we would get insanely fast query
run<00:17:24.160><c> times.</c><00:17:25.040><c> But,</c><00:17:25.439><c> building</c><00:17:25.800><c> that</c><00:17:25.959><c> list</c>

00:17:26.037 --> 00:17:26.047 align:start position:0%
run times. But, building that list
 

00:17:26.047 --> 00:17:28.510 align:start position:0%
run times. But, building that list
[music]<00:17:26.280><c> would</c><00:17:26.439><c> take</c><00:17:26.760><c> way</c><00:17:27.199><c> too</c><00:17:27.400><c> long.</c><00:17:28.280><c> Here</c><00:17:28.480><c> I</c>

00:17:28.510 --> 00:17:28.520 align:start position:0%
[music] would take way too long. Here I
 

00:17:28.520 --> 00:17:30.630 align:start position:0%
[music] would take way too long. Here I
have<00:17:28.680><c> a</c><00:17:28.720><c> graph.</c><00:17:29.160><c> On</c><00:17:29.440><c> the</c><00:17:29.680><c> vertical</c><00:17:30.120><c> axis</c><00:17:30.480><c> is</c>

00:17:30.630 --> 00:17:30.640 align:start position:0%
have a graph. On the vertical axis is
 

00:17:30.640 --> 00:17:32.070 align:start position:0%
have a graph. On the vertical axis is
query<00:17:30.880><c> run</c><00:17:31.040><c> time,</c><00:17:31.360><c> and</c><00:17:31.480><c> on</c><00:17:31.560><c> the</c><00:17:31.600><c> horizontal</c>

00:17:32.070 --> 00:17:32.080 align:start position:0%
query run time, and on the horizontal
 

00:17:32.080 --> 00:17:34.070 align:start position:0%
query run time, and on the horizontal
axis<00:17:32.440><c> is</c><00:17:32.560><c> pre-processing</c><00:17:33.252><c> [music]</c><00:17:33.280><c> time.</c><00:17:33.960><c> In</c>

00:17:34.070 --> 00:17:34.080 align:start position:0%
axis is pre-processing [music] time. In
 

00:17:34.080 --> 00:17:35.790 align:start position:0%
axis is pre-processing [music] time. In
the<00:17:34.160><c> case</c><00:17:34.400><c> of</c><00:17:34.480><c> our</c><00:17:34.560><c> massive</c><00:17:34.920><c> lookup</c><00:17:35.200><c> table,</c><00:17:35.680><c> it</c>

00:17:35.790 --> 00:17:35.800 align:start position:0%
the case of our massive lookup table, it
 

00:17:35.800 --> 00:17:38.150 align:start position:0%
the case of our massive lookup table, it
would<00:17:35.920><c> be</c><00:17:36.040><c> right</c><00:17:36.280><c> about</c><00:17:36.600><c> here.</c><00:17:37.600><c> Even</c><00:17:37.880><c> running</c>

00:17:38.150 --> 00:17:38.160 align:start position:0%
would be right about here. Even running
 

00:17:38.160 --> 00:17:40.190 align:start position:0%
would be right about here. Even running
Dijkstra<00:17:38.600><c> from</c><00:17:38.840><c> every</c><00:17:39.120><c> one</c><00:17:39.320><c> of</c><00:17:39.360><c> those</c><00:17:39.600><c> 64</c>

00:17:40.190 --> 00:17:40.200 align:start position:0%
Dijkstra from every one of those 64
 

00:17:40.200 --> 00:17:42.070 align:start position:0%
Dijkstra from every one of those 64
million<00:17:40.600><c> intersections,</c><00:17:41.480><c> that's</c><00:17:41.720><c> more</c><00:17:41.920><c> than</c>

00:17:42.070 --> 00:17:42.080 align:start position:0%
million intersections, that's more than
 

00:17:42.080 --> 00:17:43.710 align:start position:0%
million intersections, that's more than
a<00:17:42.160><c> decade</c><00:17:42.560><c> of</c><00:17:42.640><c> compute</c><00:17:43.077><c> [music]</c><00:17:43.120><c> on</c><00:17:43.240><c> a</c><00:17:43.320><c> single</c>

00:17:43.710 --> 00:17:43.720 align:start position:0%
a decade of compute [music] on a single
 

00:17:43.720 --> 00:17:45.030 align:start position:0%
a decade of compute [music] on a single
core.

00:17:45.030 --> 00:17:45.040 align:start position:0%
core.
 

00:17:45.040 --> 00:17:46.710 align:start position:0%
core.
And<00:17:45.280><c> the</c><00:17:45.360><c> entire</c><00:17:45.720><c> table</c><00:17:46.040><c> would</c><00:17:46.160><c> be</c><00:17:46.280><c> more</c><00:17:46.440><c> than</c>

00:17:46.710 --> 00:17:46.720 align:start position:0%
And the entire table would be more than
 

00:17:46.720 --> 00:17:48.710 align:start position:0%
And the entire table would be more than
eight<00:17:46.960><c> petabytes</c><00:17:47.480><c> of</c><00:17:47.640><c> raw</c><00:17:47.800><c> data.</c><00:17:48.400><c> That's</c><00:17:48.560><c> like</c>

00:17:48.710 --> 00:17:48.720 align:start position:0%
eight petabytes of raw data. That's like
 

00:17:48.720 --> 00:17:52.670 align:start position:0%
eight petabytes of raw data. That's like
storing<00:17:49.120><c> all</c><00:17:49.440><c> of</c><00:17:49.560><c> Wikipedia</c><00:17:50.760><c> 16</c><00:17:51.440><c> times</c><00:17:51.840><c> over.</c>

00:17:52.670 --> 00:17:52.680 align:start position:0%
storing all of Wikipedia 16 times over.
 

00:17:52.680 --> 00:17:54.510 align:start position:0%
storing all of Wikipedia 16 times over.
And<00:17:52.920><c> even</c><00:17:53.120><c> if</c><00:17:53.240><c> we</c><00:17:53.360><c> had</c><00:17:53.640><c> the</c><00:17:53.720><c> table,</c><00:17:54.240><c> we'd</c><00:17:54.400><c> have</c>

00:17:54.510 --> 00:17:54.520 align:start position:0%
And even if we had the table, we'd have
 

00:17:54.520 --> 00:17:56.510 align:start position:0%
And even if we had the table, we'd have
to<00:17:54.640><c> rebuild</c><00:17:55.080><c> entire</c><00:17:55.520><c> portions</c><00:17:56.080><c> whenever</c><00:17:56.440><c> a</c>

00:17:56.510 --> 00:17:56.520 align:start position:0%
to rebuild entire portions whenever a
 

00:17:56.520 --> 00:17:58.910 align:start position:0%
to rebuild entire portions whenever a
road<00:17:56.840><c> closes,</c><00:17:57.480><c> a</c><00:17:57.560><c> new</c><00:17:57.760><c> bridge</c><00:17:58.080><c> opens,</c><00:17:58.560><c> and</c><00:17:58.720><c> for</c>

00:17:58.910 --> 00:17:58.920 align:start position:0%
road closes, a new bridge opens, and for
 

00:17:58.920 --> 00:18:01.150 align:start position:0%
road closes, a new bridge opens, and for
every<00:17:59.200><c> small</c><00:17:59.520><c> traffic</c><00:17:59.880><c> adjustment.</c><00:18:00.920><c> Now,</c><00:18:01.040><c> in</c>

00:18:01.150 --> 00:18:01.160 align:start position:0%
every small traffic adjustment. Now, in
 

00:18:01.160 --> 00:18:02.710 align:start position:0%
every small traffic adjustment. Now, in
reality,<00:18:01.520><c> it</c><00:18:01.600><c> would</c><00:18:01.720><c> probably</c><00:18:02.120><c> not</c><00:18:02.360><c> even</c><00:18:02.520><c> fit</c>

00:18:02.710 --> 00:18:02.720 align:start position:0%
reality, it would probably not even fit
 

00:18:02.720 --> 00:18:04.430 align:start position:0%
reality, it would probably not even fit
on<00:18:02.840><c> this</c><00:18:02.960><c> chart.</c><00:18:03.720><c> But,</c><00:18:03.960><c> for</c><00:18:04.080><c> now,</c><00:18:04.240><c> we're</c><00:18:04.320><c> just</c>

00:18:04.430 --> 00:18:04.440 align:start position:0%
on this chart. But, for now, we're just
 

00:18:04.440 --> 00:18:05.337 align:start position:0%
on this chart. But, for now, we're just
going<00:18:04.560><c> to</c><00:18:04.600><c> put</c><00:18:04.720><c> it</c><00:18:04.800><c> here.</c>

00:18:05.337 --> 00:18:05.347 align:start position:0%
going to put it here.
 

00:18:05.347 --> 00:18:05.390 align:start position:0%
going to put it here.
&gt;&gt; [music]

00:18:05.390 --> 00:18:05.400 align:start position:0%
&gt;&gt; [music]
 

00:18:05.400 --> 00:18:07.110 align:start position:0%
&gt;&gt; [music]
&gt;&gt; On<00:18:05.560><c> the</c><00:18:05.640><c> other</c><00:18:05.800><c> hand,</c><00:18:06.240><c> Dijkstra's</c><00:18:06.640><c> algorithm</c>

00:18:07.110 --> 00:18:07.120 align:start position:0%
&gt;&gt; On the other hand, Dijkstra's algorithm
 

00:18:07.120 --> 00:18:09.470 align:start position:0%
&gt;&gt; On the other hand, Dijkstra's algorithm
requires<00:18:07.520><c> no</c><00:18:07.680><c> pre-processing</c><00:18:08.400><c> at</c><00:18:08.520><c> all.</c><00:18:09.200><c> But,</c>

00:18:09.470 --> 00:18:09.480 align:start position:0%
requires no pre-processing at all. But,
 

00:18:09.480 --> 00:18:11.590 align:start position:0%
requires no pre-processing at all. But,
it<00:18:09.600><c> takes</c><00:18:09.800><c> a</c><00:18:09.880><c> long</c><00:18:10.160><c> time</c><00:18:10.400><c> to</c><00:18:10.480><c> run.</c><00:18:10.960><c> So,</c><00:18:11.400><c> on</c><00:18:11.520><c> our</c>

00:18:11.590 --> 00:18:11.600 align:start position:0%
it takes a long time to run. So, on our
 

00:18:11.600 --> 00:18:15.150 align:start position:0%
it takes a long time to run. So, on our
graph,<00:18:11.960><c> it</c><00:18:12.040><c> would</c><00:18:12.160><c> fit</c><00:18:12.400><c> about</c><00:18:12.800><c> here.</c>

00:18:15.150 --> 00:18:15.160 align:start position:0%
graph, it would fit about here.
 

00:18:15.160 --> 00:18:17.127 align:start position:0%
graph, it would fit about here.
Google<00:18:15.480><c> Maps</c><00:18:15.800><c> needs</c><00:18:16.000><c> something</c><00:18:16.280><c> in</c><00:18:16.360><c> between.</c>

00:18:17.127 --> 00:18:17.137 align:start position:0%
Google Maps needs something in between.
 

00:18:17.137 --> 00:18:17.190 align:start position:0%
Google Maps needs something in between.
&gt;&gt; [music]

00:18:17.190 --> 00:18:17.200 align:start position:0%
&gt;&gt; [music]
 

00:18:17.200 --> 00:18:19.310 align:start position:0%
&gt;&gt; [music]
&gt;&gt; Very<00:18:17.480><c> fast</c><00:18:17.800><c> query</c><00:18:18.080><c> run</c><00:18:18.280><c> times,</c><00:18:18.760><c> but</c><00:18:18.960><c> not</c><00:18:19.200><c> too</c>

00:18:19.310 --> 00:18:19.320 align:start position:0%
&gt;&gt; Very fast query run times, but not too
 

00:18:19.320 --> 00:18:21.790 align:start position:0%
&gt;&gt; Very fast query run times, but not too
much<00:18:19.560><c> pre-processing.</c><00:18:20.840><c> In</c><00:18:20.920><c> that</c><00:18:21.120><c> case,</c><00:18:21.680><c> we</c>

00:18:21.790 --> 00:18:21.800 align:start position:0%
much pre-processing. In that case, we
 

00:18:21.800 --> 00:18:26.870 align:start position:0%
much pre-processing. In that case, we
want<00:18:22.000><c> to</c><00:18:22.040><c> be</c><00:18:22.280><c> in</c><00:18:22.560><c> this</c><00:18:22.880><c> region.</c>

00:18:26.870 --> 00:18:26.880 align:start position:0%
 
 

00:18:26.880 --> 00:18:28.510 align:start position:0%
 
Now,<00:18:27.080><c> the</c><00:18:27.240><c> idea</c><00:18:27.520><c> is</c><00:18:27.640><c> very</c><00:18:27.920><c> similar</c><00:18:28.320><c> to</c><00:18:28.400><c> the</c>

00:18:28.510 --> 00:18:28.520 align:start position:0%
Now, the idea is very similar to the
 

00:18:28.520 --> 00:18:30.550 align:start position:0%
Now, the idea is very similar to the
manual<00:18:28.880><c> hierarchies,</c><00:18:29.640><c> but</c><00:18:29.880><c> with</c><00:18:30.080><c> two</c><00:18:30.240><c> major</c>

00:18:30.550 --> 00:18:30.560 align:start position:0%
manual hierarchies, but with two major
 

00:18:30.560 --> 00:18:32.590 align:start position:0%
manual hierarchies, but with two major
changes.<00:18:31.440><c> First,</c><00:18:31.880><c> we'll</c><00:18:32.000><c> automatically</c>

00:18:32.590 --> 00:18:32.600 align:start position:0%
changes. First, we'll automatically
 

00:18:32.600 --> 00:18:34.550 align:start position:0%
changes. First, we'll automatically
pre-process<00:18:33.240><c> our</c><00:18:33.360><c> graph</c><00:18:33.720><c> to</c><00:18:33.840><c> order</c><00:18:34.080><c> nodes</c><00:18:34.440><c> by</c>

00:18:34.550 --> 00:18:34.560 align:start position:0%
pre-process our graph to order nodes by
 

00:18:34.560 --> 00:18:36.510 align:start position:0%
pre-process our graph to order nodes by
how<00:18:34.720><c> important</c><00:18:35.080><c> they</c><00:18:35.200><c> are.</c>

00:18:36.510 --> 00:18:36.520 align:start position:0%
how important they are.
 

00:18:36.520 --> 00:18:38.350 align:start position:0%
how important they are.
An<00:18:36.640><c> exit</c><00:18:36.920><c> connecting</c><00:18:37.320><c> two</c><00:18:37.480><c> highways,</c><00:18:38.120><c> quite</c>

00:18:38.350 --> 00:18:38.360 align:start position:0%
An exit connecting two highways, quite
 

00:18:38.360 --> 00:18:40.190 align:start position:0%
An exit connecting two highways, quite
important.<00:18:39.120><c> The</c><00:18:39.200><c> intersection</c><00:18:39.760><c> to</c><00:18:39.840><c> a</c><00:18:39.920><c> tiny</c>

00:18:40.190 --> 00:18:40.200 align:start position:0%
important. The intersection to a tiny
 

00:18:40.200 --> 00:18:42.017 align:start position:0%
important. The intersection to a tiny
cul-de-sac,<00:18:40.960><c> well,</c><00:18:41.200><c> not</c><00:18:41.360><c> as</c><00:18:41.480><c> much.</c>

00:18:42.017 --> 00:18:42.027 align:start position:0%
cul-de-sac, well, not as much.
 

00:18:42.027 --> 00:18:42.230 align:start position:0%
cul-de-sac, well, not as much.
&gt;&gt; [music]

00:18:42.230 --> 00:18:42.240 align:start position:0%
&gt;&gt; [music]
 

00:18:42.240 --> 00:18:44.710 align:start position:0%
&gt;&gt; [music]
&gt;&gt; No<00:18:42.360><c> more</c><00:18:42.520><c> categorizing</c><00:18:43.160><c> roads</c><00:18:43.480><c> by</c><00:18:43.640><c> hand.</c>

00:18:44.710 --> 00:18:44.720 align:start position:0%
&gt;&gt; No more categorizing roads by hand.
 

00:18:44.720 --> 00:18:45.990 align:start position:0%
&gt;&gt; No more categorizing roads by hand.
We'll<00:18:44.800><c> still</c><00:18:45.120><c> use</c><00:18:45.320><c> a</c><00:18:45.360><c> bi-directional</c>

00:18:45.990 --> 00:18:46.000 align:start position:0%
We'll still use a bi-directional
 

00:18:46.000 --> 00:18:47.550 align:start position:0%
We'll still use a bi-directional
Dijkstra's<00:18:46.560><c> that</c><00:18:46.680><c> only</c><00:18:46.880><c> searches</c><00:18:47.280><c> up</c><00:18:47.480><c> the</c>

00:18:47.550 --> 00:18:47.560 align:start position:0%
Dijkstra's that only searches up the
 

00:18:47.560 --> 00:18:49.790 align:start position:0%
Dijkstra's that only searches up the
hierarchy<00:18:48.040><c> from</c><00:18:48.200><c> both</c><00:18:48.360><c> directions,</c><00:18:49.400><c> but</c><00:18:49.680><c> if</c>

00:18:49.790 --> 00:18:49.800 align:start position:0%
hierarchy from both directions, but if
 

00:18:49.800 --> 00:18:51.110 align:start position:0%
hierarchy from both directions, but if
we<00:18:49.880><c> build</c><00:18:50.080><c> it</c><00:18:50.160><c> clever</c><00:18:50.440><c> enough,</c><00:18:50.760><c> we</c><00:18:50.840><c> can</c><00:18:50.960><c> get</c>

00:18:51.110 --> 00:18:51.120 align:start position:0%
we build it clever enough, we can get
 

00:18:51.120 --> 00:18:52.590 align:start position:0%
we build it clever enough, we can get
rid<00:18:51.280><c> of</c><00:18:51.400><c> candidate</c><00:18:51.760><c> areas</c><00:18:52.280><c> and</c><00:18:52.400><c> still</c>

00:18:52.590 --> 00:18:52.600 align:start position:0%
rid of candidate areas and still
 

00:18:52.600 --> 00:18:54.510 align:start position:0%
rid of candidate areas and still
guarantee<00:18:53.120><c> the</c><00:18:53.200><c> shortest</c><00:18:53.520><c> path.</c>

00:18:54.510 --> 00:18:54.520 align:start position:0%
guarantee the shortest path.
 

00:18:54.520 --> 00:18:55.910 align:start position:0%
guarantee the shortest path.
So,<00:18:54.680><c> phase</c><00:18:55.040><c> one</c><00:18:55.280><c> is</c><00:18:55.440><c> building</c><00:18:55.800><c> this</c>

00:18:55.910 --> 00:18:55.920 align:start position:0%
So, phase one is building this
 

00:18:55.920 --> 00:18:57.310 align:start position:0%
So, phase one is building this
hierarchy.

00:18:57.310 --> 00:18:57.320 align:start position:0%
hierarchy.
 

00:18:57.320 --> 00:18:58.950 align:start position:0%
hierarchy.
How<00:18:57.400><c> do</c><00:18:57.520><c> we</c><00:18:57.680><c> pick</c><00:18:57.960><c> the</c><00:18:58.040><c> most</c><00:18:58.280><c> important</c><00:18:58.680><c> nodes,</c>

00:18:58.950 --> 00:18:58.960 align:start position:0%
How do we pick the most important nodes,
 

00:18:58.960 --> 00:19:00.510 align:start position:0%
How do we pick the most important nodes,
though?

00:19:00.510 --> 00:19:00.520 align:start position:0%
though?
 

00:19:00.520 --> 00:19:01.910 align:start position:0%
though?
Let's<00:19:00.640><c> take</c><00:19:00.840><c> a</c><00:19:00.880><c> look</c><00:19:01.040><c> at</c><00:19:01.120><c> these</c><00:19:01.320><c> two</c><00:19:01.600><c> small</c>

00:19:01.910 --> 00:19:01.920 align:start position:0%
Let's take a look at these two small
 

00:19:01.920 --> 00:19:03.230 align:start position:0%
Let's take a look at these two small
towns.<00:19:02.680><c> We're</c><00:19:02.760><c> going</c><00:19:02.880><c> to</c><00:19:02.920><c> throw</c><00:19:03.040><c> away</c>

00:19:03.230 --> 00:19:03.240 align:start position:0%
towns. We're going to throw away
 

00:19:03.240 --> 00:19:04.990 align:start position:0%
towns. We're going to throw away
everything<00:19:03.720><c> in</c><00:19:03.840><c> one</c><00:19:04.000><c> town</c><00:19:04.360><c> except</c><00:19:04.720><c> for</c><00:19:04.800><c> this</c>

00:19:04.990 --> 00:19:05.000 align:start position:0%
everything in one town except for this
 

00:19:05.000 --> 00:19:06.870 align:start position:0%
everything in one town except for this
house<00:19:05.320><c> for</c><00:19:05.440><c> right</c><00:19:05.600><c> now.</c><00:19:06.200><c> If</c><00:19:06.320><c> someone</c><00:19:06.640><c> in</c><00:19:06.720><c> that</c>

00:19:06.870 --> 00:19:06.880 align:start position:0%
house for right now. If someone in that
 

00:19:06.880 --> 00:19:08.390 align:start position:0%
house for right now. If someone in that
house<00:19:07.160><c> wants</c><00:19:07.400><c> to</c><00:19:07.480><c> get</c><00:19:07.640><c> anywhere,</c><00:19:08.200><c> they</c><00:19:08.280><c> have</c>

00:19:08.390 --> 00:19:08.400 align:start position:0%
house wants to get anywhere, they have
 

00:19:08.400 --> 00:19:09.990 align:start position:0%
house wants to get anywhere, they have
to<00:19:08.520><c> pass</c><00:19:08.800><c> through</c><00:19:08.960><c> this</c><00:19:09.200><c> intersection</c><00:19:09.760><c> at</c><00:19:09.880><c> the</c>

00:19:09.990 --> 00:19:10.000 align:start position:0%
to pass through this intersection at the
 

00:19:10.000 --> 00:19:11.550 align:start position:0%
to pass through this intersection at the
the<00:19:10.200><c> of</c><00:19:10.280><c> the</c><00:19:10.360><c> bridge.</c>

00:19:11.550 --> 00:19:11.560 align:start position:0%
the of the bridge.
 

00:19:11.560 --> 00:19:13.350 align:start position:0%
the of the bridge.
All<00:19:11.800><c> of</c><00:19:11.880><c> the</c><00:19:12.040><c> shortest</c><00:19:12.360><c> paths</c><00:19:12.800><c> to</c><00:19:13.000><c> and</c><00:19:13.160><c> from</c>

00:19:13.350 --> 00:19:13.360 align:start position:0%
All of the shortest paths to and from
 

00:19:13.360 --> 00:19:15.710 align:start position:0%
All of the shortest paths to and from
their<00:19:13.520><c> house</c><00:19:13.880><c> include</c><00:19:14.360><c> that</c><00:19:14.560><c> node,</c><00:19:15.240><c> so</c><00:19:15.520><c> it's</c>

00:19:15.710 --> 00:19:15.720 align:start position:0%
their house include that node, so it's
 

00:19:15.720 --> 00:19:17.270 align:start position:0%
their house include that node, so it's
pretty<00:19:15.920><c> important</c><00:19:16.280><c> to</c><00:19:16.360><c> them.</c>

00:19:17.270 --> 00:19:17.280 align:start position:0%
pretty important to them.
 

00:19:17.280 --> 00:19:19.070 align:start position:0%
pretty important to them.
But,<00:19:17.600><c> that</c><00:19:17.800><c> node</c><00:19:18.120><c> isn't</c><00:19:18.400><c> as</c><00:19:18.520><c> important</c><00:19:18.920><c> to</c><00:19:19.000><c> the</c>

00:19:19.070 --> 00:19:19.080 align:start position:0%
But, that node isn't as important to the
 

00:19:19.080 --> 00:19:21.030 align:start position:0%
But, that node isn't as important to the
rest<00:19:19.320><c> of</c><00:19:19.400><c> the</c><00:19:19.480><c> town.</c><00:19:20.240><c> After</c><00:19:20.560><c> all,</c><00:19:20.720><c> the</c><00:19:20.840><c> only</c>

00:19:21.030 --> 00:19:21.040 align:start position:0%
rest of the town. After all, the only
 

00:19:21.040 --> 00:19:22.750 align:start position:0%
rest of the town. After all, the only
reason<00:19:21.360><c> to</c><00:19:21.440><c> cross</c><00:19:21.720><c> the</c><00:19:21.840><c> bridge</c><00:19:22.200><c> is</c><00:19:22.360><c> to</c><00:19:22.480><c> get</c><00:19:22.680><c> to</c>

00:19:22.750 --> 00:19:22.760 align:start position:0%
reason to cross the bridge is to get to
 

00:19:22.760 --> 00:19:25.110 align:start position:0%
reason to cross the bridge is to get to
that<00:19:22.960><c> one</c><00:19:23.160><c> house.</c><00:19:24.000><c> But,</c><00:19:24.320><c> with</c><00:19:24.520><c> more</c><00:19:24.760><c> and</c><00:19:24.880><c> more</c>

00:19:25.110 --> 00:19:25.120 align:start position:0%
that one house. But, with more and more
 

00:19:25.120 --> 00:19:27.030 align:start position:0%
that one house. But, with more and more
houses<00:19:25.600><c> on</c><00:19:25.720><c> the</c><00:19:25.840><c> other</c><00:19:26.000><c> side,</c><00:19:26.600><c> the</c><00:19:26.720><c> bridge</c>

00:19:27.030 --> 00:19:27.040 align:start position:0%
houses on the other side, the bridge
 

00:19:27.040 --> 00:19:29.750 align:start position:0%
houses on the other side, the bridge
node<00:19:27.320><c> gets</c><00:19:27.600><c> more</c><00:19:27.920><c> and</c><00:19:28.000><c> more</c><00:19:28.200><c> important.</c>

00:19:29.750 --> 00:19:29.760 align:start position:0%
node gets more and more important.
 

00:19:29.760 --> 00:19:31.350 align:start position:0%
node gets more and more important.
Any<00:19:29.960><c> trip</c><00:19:30.240><c> from</c><00:19:30.400><c> one</c><00:19:30.600><c> side</c><00:19:30.880><c> to</c><00:19:30.960><c> the</c><00:19:31.080><c> other</c>

00:19:31.350 --> 00:19:31.360 align:start position:0%
Any trip from one side to the other
 

00:19:31.360 --> 00:19:33.150 align:start position:0%
Any trip from one side to the other
needs<00:19:31.760><c> to</c><00:19:31.880><c> use</c><00:19:32.120><c> it.</c>

00:19:33.150 --> 00:19:33.160 align:start position:0%
needs to use it.
 

00:19:33.160 --> 00:19:34.590 align:start position:0%
needs to use it.
It's<00:19:33.360><c> the</c><00:19:33.440><c> most</c><00:19:33.720><c> important</c><00:19:34.200><c> when</c><00:19:34.320><c> the</c><00:19:34.440><c> two</c>

00:19:34.590 --> 00:19:34.600 align:start position:0%
It's the most important when the two
 

00:19:34.600 --> 00:19:36.710 align:start position:0%
It's the most important when the two
towns<00:19:35.000><c> are</c><00:19:35.120><c> roughly</c><00:19:35.480><c> the</c><00:19:35.600><c> same</c><00:19:35.880><c> size,</c><00:19:36.393><c> [music]</c>

00:19:36.710 --> 00:19:36.720 align:start position:0%
towns are roughly the same size, [music]
 

00:19:36.720 --> 00:19:39.110 align:start position:0%
towns are roughly the same size, [music]
when<00:19:36.880><c> it</c><00:19:37.000><c> splits</c><00:19:37.440><c> the</c><00:19:37.520><c> graph</c><00:19:37.880><c> in</c><00:19:38.000><c> half.</c>

00:19:39.110 --> 00:19:39.120 align:start position:0%
when it splits the graph in half.
 

00:19:39.120 --> 00:19:40.510 align:start position:0%
when it splits the graph in half.
That's<00:19:39.360><c> when</c><00:19:39.480><c> the</c><00:19:39.560><c> maximum</c><00:19:40.120><c> number</c><00:19:40.440><c> of</c>

00:19:40.510 --> 00:19:40.520 align:start position:0%
That's when the maximum number of
 

00:19:40.520 --> 00:19:43.230 align:start position:0%
That's when the maximum number of
shortest<00:19:40.880><c> paths</c><00:19:41.280><c> include</c><00:19:41.760><c> that</c><00:19:41.960><c> bridge.</c>

00:19:43.230 --> 00:19:43.240 align:start position:0%
shortest paths include that bridge.
 

00:19:43.240 --> 00:19:44.590 align:start position:0%
shortest paths include that bridge.
There<00:19:43.360><c> are</c><00:19:43.400><c> other</c><00:19:43.600><c> sets</c><00:19:43.840><c> of</c><00:19:43.920><c> nodes</c><00:19:44.200><c> that</c><00:19:44.360><c> split</c>

00:19:44.590 --> 00:19:44.600 align:start position:0%
There are other sets of nodes that split
 

00:19:44.600 --> 00:19:46.310 align:start position:0%
There are other sets of nodes that split
the<00:19:44.680><c> graph</c><00:19:45.000><c> in</c><00:19:45.120><c> half,</c><00:19:45.680><c> like</c><00:19:45.920><c> this</c><00:19:46.080><c> main</c>

00:19:46.310 --> 00:19:46.320 align:start position:0%
the graph in half, like this main
 

00:19:46.320 --> 00:19:47.630 align:start position:0%
the graph in half, like this main
street,<00:19:46.880><c> but</c><00:19:47.120><c> there's</c><00:19:47.280><c> far</c><00:19:47.440><c> more</c>

00:19:47.630 --> 00:19:47.640 align:start position:0%
street, but there's far more
 

00:19:47.640 --> 00:19:49.070 align:start position:0%
street, but there's far more
intersections<00:19:48.200><c> along</c><00:19:48.440><c> that</c><00:19:48.640><c> street</c><00:19:48.960><c> than</c>

00:19:49.070 --> 00:19:49.080 align:start position:0%
intersections along that street than
 

00:19:49.080 --> 00:19:51.390 align:start position:0%
intersections along that street than
just<00:19:49.360><c> the</c><00:19:49.440><c> one</c><00:19:49.680><c> bridge</c><00:19:49.960><c> node.</c><00:19:50.640><c> So,</c><00:19:50.920><c> a</c><00:19:51.000><c> small</c>

00:19:51.390 --> 00:19:51.400 align:start position:0%
just the one bridge node. So, a small
 

00:19:51.400 --> 00:19:53.590 align:start position:0%
just the one bridge node. So, a small
set<00:19:51.600><c> of</c><00:19:51.680><c> nodes,</c><00:19:52.280><c> or</c><00:19:52.520><c> a</c><00:19:52.600><c> small</c><00:19:52.920><c> cut</c><00:19:53.120><c> of</c><00:19:53.200><c> nodes,</c>

00:19:53.590 --> 00:19:53.600 align:start position:0%
set of nodes, or a small cut of nodes,
 

00:19:53.600 --> 00:19:55.470 align:start position:0%
set of nodes, or a small cut of nodes,
is<00:19:53.800><c> important</c><00:19:54.360><c> when</c><00:19:54.480><c> it</c><00:19:54.680><c> roughly</c><00:19:55.080><c> splits</c><00:19:55.400><c> the</c>

00:19:55.470 --> 00:19:55.480 align:start position:0%
is important when it roughly splits the
 

00:19:55.480 --> 00:19:56.990 align:start position:0%
is important when it roughly splits the
graph<00:19:55.840><c> in</c><00:19:55.960><c> half.</c>

00:19:56.990 --> 00:19:57.000 align:start position:0%
graph in half.
 

00:19:57.000 --> 00:19:58.350 align:start position:0%
graph in half.
Let's<00:19:57.200><c> bring</c><00:19:57.400><c> back</c><00:19:57.680><c> the</c><00:19:57.760><c> North</c><00:19:58.000><c> American</c>

00:19:58.350 --> 00:19:58.360 align:start position:0%
Let's bring back the North American
 

00:19:58.360 --> 00:20:00.350 align:start position:0%
Let's bring back the North American
network.

00:20:00.350 --> 00:20:00.360 align:start position:0%
network.
 

00:20:00.360 --> 00:20:02.190 align:start position:0%
network.
These<00:20:00.560><c> blue</c><00:20:00.800><c> nodes</c><00:20:01.200><c> roughly</c><00:20:01.560><c> split</c><00:20:01.800><c> the</c><00:20:01.880><c> graph</c>

00:20:02.190 --> 00:20:02.200 align:start position:0%
These blue nodes roughly split the graph
 

00:20:02.200 --> 00:20:03.910 align:start position:0%
These blue nodes roughly split the graph
in<00:20:02.280><c> half.</c><00:20:03.080><c> If</c><00:20:03.200><c> you</c><00:20:03.280><c> wanted</c><00:20:03.520><c> to</c><00:20:03.600><c> get</c><00:20:03.720><c> from</c>

00:20:03.910 --> 00:20:03.920 align:start position:0%
in half. If you wanted to get from
 

00:20:03.920 --> 00:20:05.470 align:start position:0%
in half. If you wanted to get from
anywhere<00:20:04.280><c> on</c><00:20:04.360><c> the</c><00:20:04.440><c> East</c><00:20:04.680><c> Coast</c><00:20:05.080><c> to</c><00:20:05.200><c> anywhere</c>

00:20:05.470 --> 00:20:05.480 align:start position:0%
anywhere on the East Coast to anywhere
 

00:20:05.480 --> 00:20:06.870 align:start position:0%
anywhere on the East Coast to anywhere
on<00:20:05.560><c> the</c><00:20:05.640><c> West</c><00:20:05.880><c> Coast,</c><00:20:06.360><c> you'd</c><00:20:06.520><c> have</c><00:20:06.680><c> to</c><00:20:06.760><c> go</c>

00:20:06.870 --> 00:20:06.880 align:start position:0%
on the West Coast, you'd have to go
 

00:20:06.880 --> 00:20:09.470 align:start position:0%
on the West Coast, you'd have to go
through<00:20:07.120><c> one</c><00:20:07.360><c> of</c><00:20:07.440><c> these</c><00:20:07.600><c> 102</c><00:20:08.320><c> nodes.</c><00:20:09.320><c> It's</c>

00:20:09.470 --> 00:20:09.480 align:start position:0%
through one of these 102 nodes. It's
 

00:20:09.480 --> 00:20:10.990 align:start position:0%
through one of these 102 nodes. It's
just<00:20:09.720><c> like</c><00:20:09.880><c> the</c><00:20:09.960><c> bridge</c><00:20:10.320><c> connecting</c><00:20:10.720><c> the</c><00:20:10.840><c> two</c>

00:20:10.990 --> 00:20:11.000 align:start position:0%
just like the bridge connecting the two
 

00:20:11.000 --> 00:20:12.430 align:start position:0%
just like the bridge connecting the two
towns.

00:20:12.430 --> 00:20:12.440 align:start position:0%
towns.
 

00:20:12.440 --> 00:20:14.710 align:start position:0%
towns.
&gt;&gt; That's<00:20:12.720><c> really</c><00:20:12.960><c> small,</c><00:20:13.760><c> but</c><00:20:14.080><c> if</c><00:20:14.160><c> you</c><00:20:14.280><c> look</c><00:20:14.520><c> at</c>

00:20:14.710 --> 00:20:14.720 align:start position:0%
&gt;&gt; That's really small, but if you look at
 

00:20:14.720 --> 00:20:16.190 align:start position:0%
&gt;&gt; That's really small, but if you look at
where<00:20:14.960><c> does</c><00:20:15.039><c> [music]</c><00:20:15.120><c> this</c><00:20:15.280><c> thing</c><00:20:15.440><c> go,</c><00:20:15.920><c> that's</c>

00:20:16.190 --> 00:20:16.200 align:start position:0%
where does [music] this thing go, that's
 

00:20:16.200 --> 00:20:17.950 align:start position:0%
where does [music] this thing go, that's
the<00:20:16.360><c> essentially</c><00:20:16.800><c> the</c><00:20:16.880><c> Mississippi</c><00:20:17.320><c> River.</c>

00:20:17.950 --> 00:20:17.960 align:start position:0%
the essentially the Mississippi River.
 

00:20:17.960 --> 00:20:20.150 align:start position:0%
the essentially the Mississippi River.
And<00:20:18.760><c> bridges</c><00:20:19.120><c> over</c><00:20:19.280><c> the</c><00:20:19.360><c> Mississippi</c><00:20:20.040><c> are</c>

00:20:20.150 --> 00:20:20.160 align:start position:0%
And bridges over the Mississippi are
 

00:20:20.160 --> 00:20:21.190 align:start position:0%
And bridges over the Mississippi are
expensive<00:20:20.680><c> to</c><00:20:20.760><c> build.</c>

00:20:21.190 --> 00:20:21.200 align:start position:0%
expensive to build.
 

00:20:21.200 --> 00:20:22.990 align:start position:0%
expensive to build.
&gt;&gt; These<00:20:21.520><c> are</c><00:20:21.640><c> the</c><00:20:21.720><c> biggest</c><00:20:22.040><c> bottlenecks.</c><00:20:22.880><c> Out</c>

00:20:22.990 --> 00:20:23.000 align:start position:0%
&gt;&gt; These are the biggest bottlenecks. Out
 

00:20:23.000 --> 00:20:25.550 align:start position:0%
&gt;&gt; These are the biggest bottlenecks. Out
of<00:20:23.120><c> all</c><00:20:23.280><c> the</c><00:20:23.400><c> 64</c><00:20:24.000><c> million</c><00:20:24.400><c> plus</c><00:20:24.680><c> nodes,</c><00:20:25.320><c> these</c>

00:20:25.550 --> 00:20:25.560 align:start position:0%
of all the 64 million plus nodes, these
 

00:20:25.560 --> 00:20:28.150 align:start position:0%
of all the 64 million plus nodes, these
102<00:20:26.320><c> get</c><00:20:26.520><c> the</c><00:20:26.640><c> highest</c><00:20:27.080><c> rank,</c><00:20:27.520><c> so</c><00:20:27.720><c> the</c><00:20:27.840><c> biggest</c>

00:20:28.150 --> 00:20:28.160 align:start position:0%
102 get the highest rank, so the biggest
 

00:20:28.160 --> 00:20:29.190 align:start position:0%
102 get the highest rank, so the biggest
numbers.

00:20:29.190 --> 00:20:29.200 align:start position:0%
numbers.
 

00:20:29.200 --> 00:20:30.870 align:start position:0%
numbers.
Now,<00:20:29.400><c> let's</c><00:20:29.560><c> find</c><00:20:29.880><c> the</c><00:20:29.960><c> next</c><00:20:30.240><c> most</c><00:20:30.520><c> important</c>

00:20:30.870 --> 00:20:30.880 align:start position:0%
Now, let's find the next most important
 

00:20:30.880 --> 00:20:31.390 align:start position:0%
Now, let's find the next most important
nodes.

00:20:31.390 --> 00:20:31.400 align:start position:0%
nodes.
 

00:20:31.400 --> 00:20:32.350 align:start position:0%
nodes.
&gt;&gt; Well,

00:20:32.350 --> 00:20:32.360 align:start position:0%
&gt;&gt; Well,
 

00:20:32.360 --> 00:20:33.950 align:start position:0%
&gt;&gt; Well,
what<00:20:32.560><c> can</c><00:20:32.720><c> we</c><00:20:32.800><c> do</c><00:20:32.960><c> on</c><00:20:33.080><c> both</c><00:20:33.320><c> sides?</c><00:20:33.680><c> Well,</c><00:20:33.840><c> we</c>

00:20:33.950 --> 00:20:33.960 align:start position:0%
what can we do on both sides? Well, we
 

00:20:33.960 --> 00:20:36.110 align:start position:0%
what can we do on both sides? Well, we
can<00:20:34.160><c> do</c><00:20:34.320><c> the</c><00:20:34.440><c> same</c><00:20:34.720><c> thing.</c><00:20:34.960><c> We</c><00:20:35.080><c> again</c><00:20:35.600><c> search</c>

00:20:36.110 --> 00:20:36.120 align:start position:0%
can do the same thing. We again search
 

00:20:36.120 --> 00:20:37.470 align:start position:0%
can do the same thing. We again search
for<00:20:36.760><c> small</c><00:20:37.040><c> cuts.</c>

00:20:37.470 --> 00:20:37.480 align:start position:0%
for small cuts.
 

00:20:37.480 --> 00:20:39.190 align:start position:0%
for small cuts.
&gt;&gt; The<00:20:37.600><c> next</c><00:20:37.880><c> cut</c><00:20:38.120><c> on</c><00:20:38.240><c> the</c><00:20:38.320><c> East</c><00:20:38.520><c> Coast</c><00:20:38.880><c> follows</c>

00:20:39.190 --> 00:20:39.200 align:start position:0%
&gt;&gt; The next cut on the East Coast follows
 

00:20:39.200 --> 00:20:41.110 align:start position:0%
&gt;&gt; The next cut on the East Coast follows
the<00:20:39.320><c> Ohio</c><00:20:39.680><c> River,</c><00:20:40.360><c> and</c><00:20:40.520><c> then</c><00:20:40.640><c> it</c><00:20:40.760><c> loosely</c>

00:20:41.110 --> 00:20:41.120 align:start position:0%
the Ohio River, and then it loosely
 

00:20:41.120 --> 00:20:43.190 align:start position:0%
the Ohio River, and then it loosely
traces<00:20:41.600><c> up</c><00:20:41.760><c> the</c><00:20:41.920><c> Appalachian</c><00:20:42.520><c> Mountains</c>

00:20:43.190 --> 00:20:43.200 align:start position:0%
traces up the Appalachian Mountains
 

00:20:43.200 --> 00:20:44.790 align:start position:0%
traces up the Appalachian Mountains
before<00:20:43.560><c> heading</c><00:20:43.800><c> back</c><00:20:44.040><c> south</c><00:20:44.400><c> along</c><00:20:44.720><c> the</c>

00:20:44.790 --> 00:20:44.800 align:start position:0%
before heading back south along the
 

00:20:44.800 --> 00:20:46.910 align:start position:0%
before heading back south along the
Potomac<00:20:45.280><c> River.</c><00:20:45.920><c> On</c><00:20:46.040><c> the</c><00:20:46.120><c> West</c><00:20:46.360><c> Coast,</c><00:20:46.840><c> the</c>

00:20:46.910 --> 00:20:46.920 align:start position:0%
Potomac River. On the West Coast, the
 

00:20:46.920 --> 00:20:49.190 align:start position:0%
Potomac River. On the West Coast, the
cut<00:20:47.160><c> mostly</c><00:20:47.520><c> follows</c><00:20:47.920><c> the</c><00:20:48.000><c> Rockies,</c><00:20:48.800><c> and</c><00:20:49.000><c> then</c>

00:20:49.190 --> 00:20:49.200 align:start position:0%
cut mostly follows the Rockies, and then
 

00:20:49.200 --> 00:20:50.790 align:start position:0%
cut mostly follows the Rockies, and then
the<00:20:49.320><c> Colorado</c><00:20:49.840><c> River.</c>

00:20:50.790 --> 00:20:50.800 align:start position:0%
the Colorado River.
 

00:20:50.800 --> 00:20:52.430 align:start position:0%
the Colorado River.
These<00:20:51.040><c> two</c><00:20:51.240><c> sets</c><00:20:51.600><c> get</c><00:20:51.760><c> the</c><00:20:51.840><c> next</c><00:20:52.160><c> highest</c>

00:20:52.430 --> 00:20:52.440 align:start position:0%
These two sets get the next highest
 

00:20:52.440 --> 00:20:54.070 align:start position:0%
These two sets get the next highest
ranks<00:20:52.760><c> for</c><00:20:52.880><c> their</c><00:20:53.040><c> sides.</c>

00:20:54.070 --> 00:20:54.080 align:start position:0%
ranks for their sides.
 

00:20:54.080 --> 00:20:56.110 align:start position:0%
ranks for their sides.
And<00:20:54.280><c> we</c><00:20:54.400><c> can</c><00:20:54.520><c> split</c><00:20:54.840><c> these</c><00:20:55.040><c> in</c><00:20:55.160><c> half</c><00:20:55.520><c> again,</c>

00:20:56.110 --> 00:20:56.120 align:start position:0%
And we can split these in half again,
 

00:20:56.120 --> 00:20:58.950 align:start position:0%
And we can split these in half again,
and<00:20:56.360><c> rank</c><00:20:56.560><c> those</c><00:20:56.840><c> nodes.</c><00:20:57.680><c> And</c><00:20:57.920><c> again,</c>

00:20:58.950 --> 00:20:58.960 align:start position:0%
and rank those nodes. And again,
 

00:20:58.960 --> 00:21:01.910 align:start position:0%
and rank those nodes. And again,
and<00:20:59.120><c> on</c><00:20:59.640><c> and</c><00:20:59.800><c> on</c><00:21:00.160><c> until</c><00:21:00.480><c> we've</c><00:21:00.680><c> ranked</c><00:21:01.000><c> all</c><00:21:01.280><c> 64</c>

00:21:01.910 --> 00:21:01.920 align:start position:0%
and on and on until we've ranked all 64
 

00:21:01.920 --> 00:21:04.350 align:start position:0%
and on and on until we've ranked all 64
million<00:21:02.280><c> nodes.</c><00:21:03.200><c> This</c><00:21:03.400><c> is</c><00:21:03.520><c> called</c><00:21:03.840><c> nested</c>

00:21:04.350 --> 00:21:04.360 align:start position:0%
million nodes. This is called nested
 

00:21:04.360 --> 00:21:06.070 align:start position:0%
million nodes. This is called nested
dissection.

00:21:06.070 --> 00:21:06.080 align:start position:0%
dissection.
 

00:21:06.080 --> 00:21:08.910 align:start position:0%
dissection.
This<00:21:06.280><c> preprocessing</c><00:21:07.040><c> step</c><00:21:07.360><c> has</c><00:21:07.640><c> two</c><00:21:07.880><c> goals.</c>

00:21:08.910 --> 00:21:08.920 align:start position:0%
This preprocessing step has two goals.
 

00:21:08.920 --> 00:21:10.790 align:start position:0%
This preprocessing step has two goals.
We<00:21:09.040><c> want</c><00:21:09.280><c> an</c><00:21:09.400><c> algorithm</c><00:21:10.000><c> that</c><00:21:10.200><c> doesn't</c><00:21:10.520><c> search</c>

00:21:10.790 --> 00:21:10.800 align:start position:0%
We want an algorithm that doesn't search
 

00:21:10.800 --> 00:21:12.670 align:start position:0%
We want an algorithm that doesn't search
a<00:21:10.840><c> lot</c><00:21:11.080><c> of</c><00:21:11.200><c> nodes,</c><00:21:11.800><c> so</c><00:21:12.000><c> the</c><00:21:12.120><c> run</c><00:21:12.280><c> time</c><00:21:12.520><c> is</c>

00:21:12.670 --> 00:21:12.680 align:start position:0%
a lot of nodes, so the run time is
 

00:21:12.680 --> 00:21:15.470 align:start position:0%
a lot of nodes, so the run time is
really<00:21:12.920><c> fast,</c><00:21:13.800><c> but</c><00:21:13.960><c> also</c><00:21:14.320><c> will</c><00:21:14.640><c> always</c><00:21:15.080><c> return</c>

00:21:15.470 --> 00:21:15.480 align:start position:0%
really fast, but also will always return
 

00:21:15.480 --> 00:21:17.350 align:start position:0%
really fast, but also will always return
the<00:21:15.560><c> shortest</c><00:21:15.920><c> path.</c><00:21:16.600><c> The</c><00:21:16.680><c> hierarchy</c><00:21:17.240><c> we</c>

00:21:17.350 --> 00:21:17.360 align:start position:0%
the shortest path. The hierarchy we
 

00:21:17.360 --> 00:21:19.310 align:start position:0%
the shortest path. The hierarchy we
build<00:21:17.640><c> now</c><00:21:17.960><c> needs</c><00:21:18.240><c> to</c><00:21:18.320><c> support</c><00:21:18.800><c> both</c><00:21:19.040><c> of</c><00:21:19.120><c> these</c>

00:21:19.310 --> 00:21:19.320 align:start position:0%
build now needs to support both of these
 

00:21:19.320 --> 00:21:21.670 align:start position:0%
build now needs to support both of these
goals.<00:21:20.280><c> Let's</c><00:21:20.480><c> test</c><00:21:20.680><c> this</c><00:21:20.880><c> out</c><00:21:21.080><c> on</c><00:21:21.200><c> a</c><00:21:21.280><c> smaller</c>

00:21:21.670 --> 00:21:21.680 align:start position:0%
goals. Let's test this out on a smaller
 

00:21:21.680 --> 00:21:23.190 align:start position:0%
goals. Let's test this out on a smaller
graph.

00:21:23.190 --> 00:21:23.200 align:start position:0%
graph.
 

00:21:23.200 --> 00:21:24.590 align:start position:0%
graph.
We<00:21:23.320><c> ignore</c><00:21:23.640><c> the</c><00:21:23.760><c> edge</c><00:21:23.920><c> weights</c><00:21:24.200><c> for</c><00:21:24.280><c> the</c><00:21:24.360><c> first</c>

00:21:24.590 --> 00:21:24.600 align:start position:0%
We ignore the edge weights for the first
 

00:21:24.600 --> 00:21:26.150 align:start position:0%
We ignore the edge weights for the first
step.

00:21:26.150 --> 00:21:26.160 align:start position:0%
step.
 

00:21:26.160 --> 00:21:27.790 align:start position:0%
step.
These<00:21:26.320><c> two</c><00:21:26.480><c> nodes</c><00:21:26.800><c> split</c><00:21:27.040><c> the</c><00:21:27.120><c> graph</c><00:21:27.480><c> roughly</c>

00:21:27.790 --> 00:21:27.800 align:start position:0%
These two nodes split the graph roughly
 

00:21:27.800 --> 00:21:29.510 align:start position:0%
These two nodes split the graph roughly
in<00:21:27.920><c> half,</c><00:21:28.440><c> so</c><00:21:28.600><c> we</c><00:21:28.720><c> give</c><00:21:28.880><c> them</c><00:21:29.040><c> the</c><00:21:29.160><c> highest</c>

00:21:29.510 --> 00:21:29.520 align:start position:0%
in half, so we give them the highest
 

00:21:29.520 --> 00:21:31.030 align:start position:0%
in half, so we give them the highest
rank.

00:21:31.030 --> 00:21:31.040 align:start position:0%
rank.
 

00:21:31.040 --> 00:21:33.030 align:start position:0%
rank.
Looking<00:21:31.320><c> at</c><00:21:31.440><c> one</c><00:21:31.640><c> side,</c><00:21:32.160><c> this</c><00:21:32.400><c> node</c><00:21:32.720><c> splits</c>

00:21:33.030 --> 00:21:33.040 align:start position:0%
Looking at one side, this node splits
 

00:21:33.040 --> 00:21:34.630 align:start position:0%
Looking at one side, this node splits
the<00:21:33.160><c> subset</c><00:21:33.560><c> in</c><00:21:33.680><c> half,</c><00:21:34.080><c> so</c><00:21:34.280><c> it</c><00:21:34.440><c> has</c><00:21:34.560><c> the</c>

00:21:34.630 --> 00:21:34.640 align:start position:0%
the subset in half, so it has the
 

00:21:34.640 --> 00:21:36.710 align:start position:0%
the subset in half, so it has the
highest<00:21:35.000><c> rank</c><00:21:35.240><c> of</c><00:21:35.320><c> the</c><00:21:35.400><c> three.</c><00:21:36.280><c> We</c><00:21:36.400><c> can</c><00:21:36.520><c> rank</c>

00:21:36.710 --> 00:21:36.720 align:start position:0%
highest rank of the three. We can rank
 

00:21:36.720 --> 00:21:39.070 align:start position:0%
highest rank of the three. We can rank
the<00:21:36.800><c> remaining</c><00:21:37.240><c> two</c><00:21:37.360><c> nodes</c><00:21:37.720><c> in</c><00:21:37.840><c> any</c><00:21:38.040><c> order.</c>

00:21:39.070 --> 00:21:39.080 align:start position:0%
the remaining two nodes in any order.
 

00:21:39.080 --> 00:21:40.790 align:start position:0%
the remaining two nodes in any order.
Now,<00:21:39.240><c> on</c><00:21:39.360><c> the</c><00:21:39.480><c> other</c><00:21:39.640><c> side,</c><00:21:40.040><c> these</c><00:21:40.280><c> two</c><00:21:40.440><c> nodes</c>

00:21:40.790 --> 00:21:40.800 align:start position:0%
Now, on the other side, these two nodes
 

00:21:40.800 --> 00:21:43.230 align:start position:0%
Now, on the other side, these two nodes
split<00:21:41.080><c> this</c><00:21:41.280><c> subset</c><00:21:41.720><c> in</c><00:21:41.840><c> half,</c><00:21:42.680><c> so</c><00:21:42.880><c> they</c><00:21:43.080><c> have</c>

00:21:43.230 --> 00:21:43.240 align:start position:0%
split this subset in half, so they have
 

00:21:43.240 --> 00:21:45.470 align:start position:0%
split this subset in half, so they have
the<00:21:43.320><c> next</c><00:21:43.640><c> highest</c><00:21:43.960><c> rank.</c><00:21:44.760><c> And</c><00:21:44.920><c> then</c><00:21:45.080><c> again,</c>

00:21:45.470 --> 00:21:45.480 align:start position:0%
the next highest rank. And then again,
 

00:21:45.480 --> 00:21:46.950 align:start position:0%
the next highest rank. And then again,
we<00:21:45.600><c> rank</c><00:21:45.840><c> the</c><00:21:45.920><c> final</c><00:21:46.280><c> two</c><00:21:46.400><c> nodes</c><00:21:46.760><c> with</c><00:21:46.880><c> the</c>

00:21:46.950 --> 00:21:46.960 align:start position:0%
we rank the final two nodes with the
 

00:21:46.960 --> 00:21:48.550 align:start position:0%
we rank the final two nodes with the
remaining<00:21:47.400><c> numbers.</c>

00:21:48.550 --> 00:21:48.560 align:start position:0%
remaining numbers.
 

00:21:48.560 --> 00:21:50.590 align:start position:0%
remaining numbers.
But,<00:21:48.840><c> what</c><00:21:49.000><c> about</c><00:21:49.200><c> this</c><00:21:49.400><c> ranking?</c><00:21:50.160><c> We</c><00:21:50.280><c> split</c>

00:21:50.590 --> 00:21:50.600 align:start position:0%
But, what about this ranking? We split
 

00:21:50.600 --> 00:21:52.510 align:start position:0%
But, what about this ranking? We split
the<00:21:50.680><c> graph</c><00:21:51.000><c> the</c><00:21:51.080><c> same,</c><00:21:51.680><c> but</c><00:21:51.960><c> the</c><00:21:52.080><c> rankings</c>

00:21:52.510 --> 00:21:52.520 align:start position:0%
the graph the same, but the rankings
 

00:21:52.520 --> 00:21:54.070 align:start position:0%
the graph the same, but the rankings
within<00:21:52.760><c> the</c><00:21:52.840><c> same</c><00:21:53.120><c> cut</c><00:21:53.440><c> are</c><00:21:53.560><c> all</c><00:21:53.720><c> swapped</c>

00:21:54.070 --> 00:21:54.080 align:start position:0%
within the same cut are all swapped
 

00:21:54.080 --> 00:21:56.150 align:start position:0%
within the same cut are all swapped
around.<00:21:55.120><c> Or,</c><00:21:55.320><c> if</c><00:21:55.480><c> we</c><00:21:55.560><c> split</c><00:21:55.800><c> the</c><00:21:55.880><c> graph</c>

00:21:56.150 --> 00:21:56.160 align:start position:0%
around. Or, if we split the graph
 

00:21:56.160 --> 00:21:58.470 align:start position:0%
around. Or, if we split the graph
differently,<00:21:56.640><c> we</c><00:21:56.760><c> could</c><00:21:56.960><c> get</c><00:21:57.240><c> this</c><00:21:57.520><c> ranking.</c>

00:21:58.470 --> 00:21:58.480 align:start position:0%
differently, we could get this ranking.
 

00:21:58.480 --> 00:21:59.990 align:start position:0%
differently, we could get this ranking.
It<00:21:58.600><c> even</c><00:21:58.840><c> splits</c><00:21:59.120><c> the</c><00:21:59.200><c> graph</c><00:21:59.480><c> perfectly</c><00:21:59.880><c> in</c>

00:21:59.990 --> 00:22:00.000 align:start position:0%
It even splits the graph perfectly in
 

00:22:00.000 --> 00:22:00.990 align:start position:0%
It even splits the graph perfectly in
half.

00:22:00.990 --> 00:22:01.000 align:start position:0%
half.
 

00:22:01.000 --> 00:22:02.910 align:start position:0%
half.
Isn't<00:22:01.280><c> that</c><00:22:01.560><c> better?</c>

00:22:02.910 --> 00:22:02.920 align:start position:0%
Isn't that better?
 

00:22:02.920 --> 00:22:05.430 align:start position:0%
Isn't that better?
And<00:22:03.240><c> these</c><00:22:03.480><c> rankings</c><00:22:03.920><c> are</c><00:22:04.080><c> all</c><00:22:04.280><c> valid.</c><00:22:05.200><c> We'll</c>

00:22:05.430 --> 00:22:05.440 align:start position:0%
And these rankings are all valid. We'll
 

00:22:05.440 --> 00:22:06.990 align:start position:0%
And these rankings are all valid. We'll
see<00:22:05.640><c> in</c><00:22:05.720><c> a</c><00:22:05.760><c> bit</c><00:22:05.960><c> why</c><00:22:06.080><c> we</c><00:22:06.200><c> could</c><00:22:06.360><c> use</c><00:22:06.560><c> any</c><00:22:06.760><c> one</c><00:22:06.920><c> of</c>

00:22:06.990 --> 00:22:07.000 align:start position:0%
see in a bit why we could use any one of
 

00:22:07.000 --> 00:22:08.910 align:start position:0%
see in a bit why we could use any one of
them,<00:22:07.440><c> but</c><00:22:07.680><c> for</c><00:22:07.840><c> now,</c><00:22:08.160><c> we'll</c><00:22:08.280><c> just</c><00:22:08.480><c> take</c><00:22:08.680><c> this</c>

00:22:08.910 --> 00:22:08.920 align:start position:0%
them, but for now, we'll just take this
 

00:22:08.920 --> 00:22:09.710 align:start position:0%
them, but for now, we'll just take this
one.

00:22:09.710 --> 00:22:09.720 align:start position:0%
one.
 

00:22:09.720 --> 00:22:11.390 align:start position:0%
one.
The<00:22:09.760><c> best</c><00:22:10.080><c> way</c><00:22:10.200><c> to</c><00:22:10.280><c> visualize</c><00:22:10.800><c> this</c><00:22:11.000><c> ranking</c>

00:22:11.390 --> 00:22:11.400 align:start position:0%
The best way to visualize this ranking
 

00:22:11.400 --> 00:22:13.670 align:start position:0%
The best way to visualize this ranking
is<00:22:11.520><c> to</c><00:22:11.640><c> pull</c><00:22:11.840><c> down</c><00:22:12.320><c> or</c><00:22:12.520><c> contract</c><00:22:13.080><c> the</c><00:22:13.160><c> nodes</c><00:22:13.520><c> in</c>

00:22:13.670 --> 00:22:13.680 align:start position:0%
is to pull down or contract the nodes in
 

00:22:13.680 --> 00:22:15.990 align:start position:0%
is to pull down or contract the nodes in
order.<00:22:14.280><c> One</c><00:22:14.560><c> is</c><00:22:14.680><c> the</c><00:22:14.760><c> furthest</c><00:22:15.120><c> down,</c><00:22:15.680><c> two</c><00:22:15.880><c> is</c>

00:22:15.990 --> 00:22:16.000 align:start position:0%
order. One is the furthest down, two is
 

00:22:16.000 --> 00:22:19.030 align:start position:0%
order. One is the furthest down, two is
next<00:22:16.320><c> up,</c><00:22:16.680><c> and</c><00:22:16.880><c> so</c><00:22:17.080><c> on.</c>

00:22:19.030 --> 00:22:19.040 align:start position:0%
next up, and so on.
 

00:22:19.040 --> 00:22:20.870 align:start position:0%
next up, and so on.
Now,<00:22:19.320><c> we</c><00:22:19.400><c> can</c><00:22:19.560><c> bring</c><00:22:19.760><c> in</c><00:22:19.840><c> a</c><00:22:19.880><c> search</c><00:22:20.200><c> algorithm.</c>

00:22:20.870 --> 00:22:20.880 align:start position:0%
Now, we can bring in a search algorithm.
 

00:22:20.880 --> 00:22:22.470 align:start position:0%
Now, we can bring in a search algorithm.
To<00:22:21.040><c> speed</c><00:22:21.320><c> up</c><00:22:21.400><c> the</c><00:22:21.520><c> run</c><00:22:21.680><c> time,</c><00:22:22.000><c> we</c><00:22:22.120><c> limit</c><00:22:22.400><c> the</c>

00:22:22.470 --> 00:22:22.480 align:start position:0%
To speed up the run time, we limit the
 

00:22:22.480 --> 00:22:24.310 align:start position:0%
To speed up the run time, we limit the
search<00:22:22.760><c> space</c><00:22:23.120><c> by</c><00:22:23.360><c> only</c><00:22:23.680><c> moving</c><00:22:24.000><c> up</c><00:22:24.240><c> the</c>

00:22:24.310 --> 00:22:24.320 align:start position:0%
search space by only moving up the
 

00:22:24.320 --> 00:22:26.070 align:start position:0%
search space by only moving up the
hierarchy.<00:22:25.480><c> And</c><00:22:25.560><c> that's</c><00:22:25.760><c> why</c><00:22:25.840><c> it's</c><00:22:25.960><c> so</c>

00:22:26.070 --> 00:22:26.080 align:start position:0%
hierarchy. And that's why it's so
 

00:22:26.080 --> 00:22:27.430 align:start position:0%
hierarchy. And that's why it's so
important<00:22:26.480><c> to</c><00:22:26.560><c> use</c><00:22:26.720><c> a</c><00:22:26.760><c> bidirectional</c>

00:22:27.430 --> 00:22:27.440 align:start position:0%
important to use a bidirectional
 

00:22:27.440 --> 00:22:29.110 align:start position:0%
important to use a bidirectional
Dijkstra.<00:22:28.160><c> If</c><00:22:28.320><c> the</c><00:22:28.440><c> algorithm</c><00:22:28.880><c> couldn't</c>

00:22:29.110 --> 00:22:29.120 align:start position:0%
Dijkstra. If the algorithm couldn't
 

00:22:29.120 --> 00:22:30.710 align:start position:0%
Dijkstra. If the algorithm couldn't
search<00:22:29.360><c> in</c><00:22:29.480><c> both</c><00:22:29.640><c> directions,</c><00:22:30.320><c> it</c><00:22:30.400><c> would</c><00:22:30.520><c> get</c>

00:22:30.710 --> 00:22:30.720 align:start position:0%
search in both directions, it would get
 

00:22:30.720 --> 00:22:32.590 align:start position:0%
search in both directions, it would get
stuck<00:22:31.080><c> on</c><00:22:31.200><c> a</c><00:22:31.240><c> lot</c><00:22:31.440><c> of</c><00:22:31.520><c> pairs.</c>

00:22:32.590 --> 00:22:32.600 align:start position:0%
stuck on a lot of pairs.
 

00:22:32.600 --> 00:22:34.230 align:start position:0%
stuck on a lot of pairs.
So,<00:22:32.720><c> instead,</c><00:22:33.200><c> the</c><00:22:33.320><c> two</c><00:22:33.520><c> searches</c><00:22:33.960><c> meet</c><00:22:34.160><c> in</c>

00:22:34.230 --> 00:22:34.240 align:start position:0%
So, instead, the two searches meet in
 

00:22:34.240 --> 00:22:36.790 align:start position:0%
So, instead, the two searches meet in
the<00:22:34.320><c> middle</c><00:22:34.720><c> at</c><00:22:34.840><c> the</c><00:22:34.960><c> top</c><00:22:35.280><c> of</c><00:22:35.360><c> the</c><00:22:35.480><c> hierarchy.</c>

00:22:36.790 --> 00:22:36.800 align:start position:0%
the middle at the top of the hierarchy.
 

00:22:36.800 --> 00:22:38.510 align:start position:0%
the middle at the top of the hierarchy.
Now,<00:22:36.960><c> let's</c><00:22:37.120><c> add</c><00:22:37.280><c> the</c><00:22:37.360><c> edge</c><00:22:37.560><c> weights</c><00:22:37.840><c> back.</c>

00:22:38.510 --> 00:22:38.520 align:start position:0%
Now, let's add the edge weights back.
 

00:22:38.520 --> 00:22:40.230 align:start position:0%
Now, let's add the edge weights back.
Okay,<00:22:38.760><c> what's</c><00:22:39.000><c> the</c><00:22:39.120><c> shortest</c><00:22:39.520><c> path</c><00:22:39.840><c> from</c><00:22:40.000><c> node</c>

00:22:40.230 --> 00:22:40.240 align:start position:0%
Okay, what's the shortest path from node
 

00:22:40.240 --> 00:22:42.550 align:start position:0%
Okay, what's the shortest path from node
four<00:22:40.600><c> to</c><00:22:40.720><c> node</c><00:22:41.000><c> eight?</c><00:22:41.800><c> Well,</c><00:22:42.080><c> starting</c><00:22:42.440><c> from</c>

00:22:42.550 --> 00:22:42.560 align:start position:0%
four to node eight? Well, starting from
 

00:22:42.560 --> 00:22:44.630 align:start position:0%
four to node eight? Well, starting from
node<00:22:42.800><c> four,</c><00:22:43.120><c> we</c><00:22:43.280><c> search</c><00:22:43.640><c> up</c><00:22:44.000><c> and</c><00:22:44.120><c> reach</c><00:22:44.360><c> node</c>

00:22:44.630 --> 00:22:44.640 align:start position:0%
node four, we search up and reach node
 

00:22:44.640 --> 00:22:46.830 align:start position:0%
node four, we search up and reach node
nine<00:22:45.000><c> with</c><00:22:45.160><c> a</c><00:22:45.200><c> cost</c><00:22:45.600><c> of</c><00:22:45.720><c> 10.</c>

00:22:46.830 --> 00:22:46.840 align:start position:0%
nine with a cost of 10.
 

00:22:46.840 --> 00:22:48.590 align:start position:0%
nine with a cost of 10.
From<00:22:47.040><c> node</c><00:22:47.280><c> eight,</c><00:22:47.520><c> we</c><00:22:47.640><c> also</c><00:22:47.920><c> search</c><00:22:48.200><c> up</c><00:22:48.480><c> and</c>

00:22:48.590 --> 00:22:48.600 align:start position:0%
From node eight, we also search up and
 

00:22:48.600 --> 00:22:51.270 align:start position:0%
From node eight, we also search up and
get<00:22:48.720><c> to</c><00:22:48.840><c> node</c><00:22:49.040><c> nine</c><00:22:49.440><c> with</c><00:22:49.560><c> a</c><00:22:49.640><c> cost</c><00:22:50.000><c> of</c><00:22:50.080><c> five.</c>

00:22:51.270 --> 00:22:51.280 align:start position:0%
get to node nine with a cost of five.
 

00:22:51.280 --> 00:22:53.190 align:start position:0%
get to node nine with a cost of five.
So,<00:22:51.560><c> that</c><00:22:51.760><c> must</c><00:22:51.960><c> be</c><00:22:52.080><c> the</c><00:22:52.160><c> shortest</c><00:22:52.560><c> path</c><00:22:53.040><c> with</c>

00:22:53.190 --> 00:22:53.200 align:start position:0%
So, that must be the shortest path with
 

00:22:53.200 --> 00:22:55.990 align:start position:0%
So, that must be the shortest path with
a<00:22:53.240><c> cost</c><00:22:53.640><c> of</c><00:22:53.720><c> 15.</c><00:22:54.800><c> Done.</c>

00:22:55.990 --> 00:22:56.000 align:start position:0%
a cost of 15. Done.
 

00:22:56.000 --> 00:22:58.270 align:start position:0%
a cost of 15. Done.
Except,<00:22:56.600><c> there's</c><00:22:56.840><c> a</c><00:22:56.880><c> problem.</c><00:22:57.720><c> That's</c><00:22:57.960><c> not</c>

00:22:58.270 --> 00:22:58.280 align:start position:0%
Except, there's a problem. That's not
 

00:22:58.280 --> 00:23:00.710 align:start position:0%
Except, there's a problem. That's not
the<00:22:58.360><c> shortest</c><00:22:58.760><c> path.</c><00:22:59.640><c> Using</c><00:22:59.920><c> this</c><00:23:00.120><c> path</c><00:23:00.440><c> only</c>

00:23:00.710 --> 00:23:00.720 align:start position:0%
the shortest path. Using this path only
 

00:23:00.720 --> 00:23:02.190 align:start position:0%
the shortest path. Using this path only
costs<00:23:01.120><c> three.</c>

00:23:02.190 --> 00:23:02.200 align:start position:0%
costs three.
 

00:23:02.200 --> 00:23:03.870 align:start position:0%
costs three.
This<00:23:02.400><c> search</c><00:23:02.680><c> doesn't</c><00:23:03.040><c> check</c><00:23:03.240><c> paths</c><00:23:03.600><c> that</c><00:23:03.760><c> go</c>

00:23:03.870 --> 00:23:03.880 align:start position:0%
This search doesn't check paths that go
 

00:23:03.880 --> 00:23:05.750 align:start position:0%
This search doesn't check paths that go
through<00:23:04.120><c> lower</c><00:23:04.400><c> rank</c><00:23:04.640><c> nodes.</c>

00:23:05.750 --> 00:23:05.760 align:start position:0%
through lower rank nodes.
 

00:23:05.760 --> 00:23:07.190 align:start position:0%
through lower rank nodes.
But<00:23:06.000><c> we</c><00:23:06.120><c> can</c><00:23:06.240><c> fix</c><00:23:06.520><c> it</c><00:23:06.640><c> with</c><00:23:06.760><c> a</c><00:23:06.800><c> little</c><00:23:07.000><c> more</c>

00:23:07.190 --> 00:23:07.200 align:start position:0%
But we can fix it with a little more
 

00:23:07.200 --> 00:23:08.830 align:start position:0%
But we can fix it with a little more
pre-processing.

00:23:08.830 --> 00:23:08.840 align:start position:0%
pre-processing.
 

00:23:08.840 --> 00:23:10.550 align:start position:0%
pre-processing.
Start<00:23:09.080><c> from</c><00:23:09.200><c> the</c><00:23:09.280><c> lowest</c><00:23:09.560><c> rank.</c><00:23:10.240><c> Does</c><00:23:10.360><c> this</c>

00:23:10.550 --> 00:23:10.560 align:start position:0%
Start from the lowest rank. Does this
 

00:23:10.560 --> 00:23:12.070 align:start position:0%
Start from the lowest rank. Does this
node<00:23:10.840><c> connect</c><00:23:11.200><c> to</c><00:23:11.280><c> at</c><00:23:11.400><c> least</c><00:23:11.640><c> two</c><00:23:11.800><c> higher</c>

00:23:12.070 --> 00:23:12.080 align:start position:0%
node connect to at least two higher
 

00:23:12.080 --> 00:23:13.310 align:start position:0%
node connect to at least two higher
nodes?

00:23:13.310 --> 00:23:13.320 align:start position:0%
nodes?
 

00:23:13.320 --> 00:23:14.950 align:start position:0%
nodes?
On<00:23:13.400><c> this</c><00:23:13.560><c> graph,</c><00:23:13.960><c> node</c><00:23:14.240><c> one</c><00:23:14.480><c> connects</c><00:23:14.800><c> to</c>

00:23:14.950 --> 00:23:14.960 align:start position:0%
On this graph, node one connects to
 

00:23:14.960 --> 00:23:17.150 align:start position:0%
On this graph, node one connects to
three<00:23:15.440><c> and</c><00:23:15.600><c> eight.</c><00:23:16.200><c> This</c><00:23:16.400><c> is</c><00:23:16.520><c> called</c><00:23:16.760><c> a</c><00:23:16.840><c> lower</c>

00:23:17.150 --> 00:23:17.160 align:start position:0%
three and eight. This is called a lower
 

00:23:17.160 --> 00:23:18.310 align:start position:0%
three and eight. This is called a lower
triangle.

00:23:18.310 --> 00:23:18.320 align:start position:0%
triangle.
 

00:23:18.320 --> 00:23:19.710 align:start position:0%
triangle.
And<00:23:18.400><c> while</c><00:23:18.520><c> there's</c><00:23:18.680><c> a</c><00:23:18.720><c> chance</c><00:23:19.080><c> this</c><00:23:19.280><c> path</c><00:23:19.520><c> is</c>

00:23:19.710 --> 00:23:19.720 align:start position:0%
And while there's a chance this path is
 

00:23:19.720 --> 00:23:21.430 align:start position:0%
And while there's a chance this path is
actually<00:23:20.080><c> the</c><00:23:20.200><c> shortest</c><00:23:20.640><c> between</c><00:23:20.960><c> node</c><00:23:21.200><c> three</c>

00:23:21.430 --> 00:23:21.440 align:start position:0%
actually the shortest between node three
 

00:23:21.440 --> 00:23:23.390 align:start position:0%
actually the shortest between node three
and<00:23:21.560><c> node</c><00:23:21.800><c> eight,</c><00:23:22.360><c> our</c><00:23:22.520><c> search</c><00:23:22.960><c> will</c><00:23:23.080><c> never</c>

00:23:23.390 --> 00:23:23.400 align:start position:0%
and node eight, our search will never
 

00:23:23.400 --> 00:23:25.470 align:start position:0%
and node eight, our search will never
consider<00:23:23.840><c> it.</c><00:23:24.400><c> So,</c><00:23:24.640><c> we'll</c><00:23:24.840><c> add</c><00:23:24.960><c> a</c><00:23:25.000><c> shortcut</c>

00:23:25.470 --> 00:23:25.480 align:start position:0%
consider it. So, we'll add a shortcut
 

00:23:25.480 --> 00:23:27.390 align:start position:0%
consider it. So, we'll add a shortcut
between<00:23:25.800><c> nodes</c><00:23:26.120><c> three</c><00:23:26.440><c> and</c><00:23:26.560><c> node</c><00:23:26.800><c> eight.</c><00:23:27.240><c> It's</c>

00:23:27.390 --> 00:23:27.400 align:start position:0%
between nodes three and node eight. It's
 

00:23:27.400 --> 00:23:30.030 align:start position:0%
between nodes three and node eight. It's
just<00:23:27.600><c> the</c><00:23:27.720><c> cost</c><00:23:28.120><c> of</c><00:23:28.200><c> this</c><00:23:28.400><c> lower</c><00:23:28.680><c> triangle.</c>

00:23:30.030 --> 00:23:30.040 align:start position:0%
just the cost of this lower triangle.
 

00:23:30.040 --> 00:23:31.590 align:start position:0%
just the cost of this lower triangle.
Now,<00:23:30.200><c> this</c><00:23:30.440><c> edge</c><00:23:30.720><c> doesn't</c><00:23:31.000><c> correspond</c><00:23:31.520><c> to</c>

00:23:31.590 --> 00:23:31.600 align:start position:0%
Now, this edge doesn't correspond to
 

00:23:31.600 --> 00:23:33.510 align:start position:0%
Now, this edge doesn't correspond to
anything<00:23:32.080><c> real</c><00:23:32.360><c> on</c><00:23:32.480><c> the</c><00:23:32.560><c> road</c><00:23:32.760><c> network.</c><00:23:33.280><c> It's</c>

00:23:33.510 --> 00:23:33.520 align:start position:0%
anything real on the road network. It's
 

00:23:33.520 --> 00:23:34.870 align:start position:0%
anything real on the road network. It's
just<00:23:33.720><c> a</c><00:23:33.760><c> way</c><00:23:33.880><c> to</c><00:23:34.000><c> keep</c><00:23:34.160><c> track</c><00:23:34.480><c> of</c><00:23:34.560><c> shortest</c>

00:23:34.870 --> 00:23:34.880 align:start position:0%
just a way to keep track of shortest
 

00:23:34.880 --> 00:23:37.270 align:start position:0%
just a way to keep track of shortest
paths.<00:23:35.920><c> We</c><00:23:36.000><c> move</c><00:23:36.280><c> on</c><00:23:36.480><c> to</c><00:23:36.560><c> the</c><00:23:36.680><c> next</c><00:23:37.000><c> lowest</c>

00:23:37.270 --> 00:23:37.280 align:start position:0%
paths. We move on to the next lowest
 

00:23:37.280 --> 00:23:39.750 align:start position:0%
paths. We move on to the next lowest
node<00:23:37.800><c> and</c><00:23:38.040><c> run</c><00:23:38.200><c> the</c><00:23:38.280><c> same</c><00:23:38.520><c> test.</c><00:23:39.320><c> But</c><00:23:39.640><c> there</c>

00:23:39.750 --> 00:23:39.760 align:start position:0%
node and run the same test. But there
 

00:23:39.760 --> 00:23:41.590 align:start position:0%
node and run the same test. But there
could<00:23:39.960><c> be</c><00:23:40.080><c> multiple</c><00:23:40.520><c> lower</c><00:23:40.760><c> triangles,</c><00:23:41.440><c> or</c>

00:23:41.590 --> 00:23:41.600 align:start position:0%
could be multiple lower triangles, or
 

00:23:41.600 --> 00:23:43.110 align:start position:0%
could be multiple lower triangles, or
there<00:23:41.720><c> might</c><00:23:41.920><c> already</c><00:23:42.240><c> be</c><00:23:42.400><c> an</c><00:23:42.560><c> edge</c><00:23:42.800><c> between</c>

00:23:43.110 --> 00:23:43.120 align:start position:0%
there might already be an edge between
 

00:23:43.120 --> 00:23:45.390 align:start position:0%
there might already be an edge between
the<00:23:43.200><c> two</c><00:23:43.360><c> higher</c><00:23:43.600><c> nodes.</c><00:23:44.640><c> In</c><00:23:44.720><c> those</c><00:23:44.920><c> cases,</c>

00:23:45.390 --> 00:23:45.400 align:start position:0%
the two higher nodes. In those cases,
 

00:23:45.400 --> 00:23:47.110 align:start position:0%
the two higher nodes. In those cases,
the<00:23:45.480><c> shortcut</c><00:23:45.960><c> represents</c><00:23:46.440><c> whichever</c><00:23:46.800><c> path</c>

00:23:47.110 --> 00:23:47.120 align:start position:0%
the shortcut represents whichever path
 

00:23:47.120 --> 00:23:49.070 align:start position:0%
the shortcut represents whichever path
has<00:23:47.280><c> the</c><00:23:47.360><c> minimum</c><00:23:47.720><c> cost.</c>

00:23:49.070 --> 00:23:49.080 align:start position:0%
has the minimum cost.
 

00:23:49.080 --> 00:23:51.110 align:start position:0%
has the minimum cost.
A<00:23:49.160><c> path</c><00:23:49.440><c> that</c><00:23:49.600><c> only</c><00:23:49.800><c> uses</c><00:23:50.160><c> lower</c><00:23:50.440><c> rank</c><00:23:50.680><c> nodes</c>

00:23:51.110 --> 00:23:51.120 align:start position:0%
A path that only uses lower rank nodes
 

00:23:51.120 --> 00:23:52.990 align:start position:0%
A path that only uses lower rank nodes
is<00:23:51.280><c> like</c><00:23:51.440><c> a</c><00:23:51.520><c> path</c><00:23:51.840><c> that</c><00:23:51.960><c> only</c><00:23:52.200><c> uses</c><00:23:52.560><c> small</c>

00:23:52.990 --> 00:23:53.000 align:start position:0%
is like a path that only uses small
 

00:23:53.000 --> 00:23:55.270 align:start position:0%
is like a path that only uses small
local<00:23:53.360><c> roads.</c><00:23:54.240><c> We</c><00:23:54.280><c> don't</c><00:23:54.440><c> want</c><00:23:54.640><c> the</c><00:23:54.760><c> algorithm</c>

00:23:55.270 --> 00:23:55.280 align:start position:0%
local roads. We don't want the algorithm
 

00:23:55.280 --> 00:23:57.030 align:start position:0%
local roads. We don't want the algorithm
to<00:23:55.360><c> return</c><00:23:55.720><c> a</c><00:23:55.800><c> highway</c><00:23:56.160><c> route</c><00:23:56.480><c> if</c><00:23:56.640><c> a</c><00:23:56.720><c> local</c>

00:23:57.030 --> 00:23:57.040 align:start position:0%
to return a highway route if a local
 

00:23:57.040 --> 00:23:58.350 align:start position:0%
to return a highway route if a local
road<00:23:57.280><c> is</c><00:23:57.400><c> shorter.</c>

00:23:58.350 --> 00:23:58.360 align:start position:0%
road is shorter.
 

00:23:58.360 --> 00:24:00.030 align:start position:0%
road is shorter.
Building<00:23:58.640><c> shortcuts</c><00:23:59.120><c> from</c><00:23:59.240><c> the</c><00:23:59.320><c> bottom</c><00:23:59.640><c> up</c>

00:24:00.030 --> 00:24:00.040 align:start position:0%
Building shortcuts from the bottom up
 

00:24:00.040 --> 00:24:01.630 align:start position:0%
Building shortcuts from the bottom up
makes<00:24:00.280><c> sure</c><00:24:00.440><c> we</c><00:24:00.560><c> don't</c><00:24:00.760><c> miss</c><00:24:00.960><c> these</c><00:24:01.160><c> paths,</c>

00:24:01.630 --> 00:24:01.640 align:start position:0%
makes sure we don't miss these paths,
 

00:24:01.640 --> 00:24:03.030 align:start position:0%
makes sure we don't miss these paths,
while<00:24:01.840><c> also</c><00:24:02.080><c> ignoring</c><00:24:02.440><c> them</c><00:24:02.600><c> if</c><00:24:02.720><c> they</c><00:24:02.840><c> aren't</c>

00:24:03.030 --> 00:24:03.040 align:start position:0%
while also ignoring them if they aren't
 

00:24:03.040 --> 00:24:03.626 align:start position:0%
while also ignoring them if they aren't
needed.

00:24:03.626 --> 00:24:03.636 align:start position:0%
needed.
 

00:24:03.636 --> 00:24:04.070 align:start position:0%
needed.
&gt;&gt; [music]

00:24:04.070 --> 00:24:04.080 align:start position:0%
&gt;&gt; [music]
 

00:24:04.080 --> 00:24:06.110 align:start position:0%
&gt;&gt; [music]
&gt;&gt; This<00:24:04.280><c> way,</c><00:24:04.520><c> we</c><00:24:04.680><c> both</c><00:24:04.960><c> limit</c><00:24:05.240><c> the</c><00:24:05.320><c> search</c><00:24:05.600><c> space</c>

00:24:06.110 --> 00:24:06.120 align:start position:0%
&gt;&gt; This way, we both limit the search space
 

00:24:06.120 --> 00:24:08.470 align:start position:0%
&gt;&gt; This way, we both limit the search space
and<00:24:06.240><c> never</c><00:24:06.520><c> miss</c><00:24:06.760><c> the</c><00:24:06.840><c> shortest</c><00:24:07.200><c> path.</c>

00:24:08.470 --> 00:24:08.480 align:start position:0%
and never miss the shortest path.
 

00:24:08.480 --> 00:24:09.670 align:start position:0%
and never miss the shortest path.
But<00:24:08.760><c> there's</c><00:24:08.960><c> another</c><00:24:09.240><c> benefit</c><00:24:09.600><c> to</c>

00:24:09.670 --> 00:24:09.680 align:start position:0%
But there's another benefit to
 

00:24:09.680 --> 00:24:10.950 align:start position:0%
But there's another benefit to
shortcuts.

00:24:10.950 --> 00:24:10.960 align:start position:0%
shortcuts.
 

00:24:10.960 --> 00:24:12.230 align:start position:0%
shortcuts.
We<00:24:11.040><c> don't</c><00:24:11.160><c> need</c><00:24:11.320><c> to</c><00:24:11.400><c> worry</c><00:24:11.640><c> too</c><00:24:11.800><c> much</c><00:24:12.040><c> about</c>

00:24:12.230 --> 00:24:12.240 align:start position:0%
We don't need to worry too much about
 

00:24:12.240 --> 00:24:14.110 align:start position:0%
We don't need to worry too much about
getting<00:24:12.480><c> a</c><00:24:12.560><c> perfect</c><00:24:12.920><c> ranking.</c><00:24:13.880><c> We</c><00:24:13.960><c> can</c>

00:24:14.110 --> 00:24:14.120 align:start position:0%
getting a perfect ranking. We can
 

00:24:14.120 --> 00:24:16.030 align:start position:0%
getting a perfect ranking. We can
roughly<00:24:14.480><c> cut</c><00:24:14.680><c> the</c><00:24:14.760><c> graph</c><00:24:15.080><c> in</c><00:24:15.200><c> half</c><00:24:15.640><c> and</c><00:24:15.800><c> rank</c>

00:24:16.030 --> 00:24:16.040 align:start position:0%
roughly cut the graph in half and rank
 

00:24:16.040 --> 00:24:18.550 align:start position:0%
roughly cut the graph in half and rank
nodes<00:24:16.360><c> in</c><00:24:16.440><c> the</c><00:24:16.520><c> same</c><00:24:16.800><c> cut</c><00:24:17.080><c> in</c><00:24:17.240><c> any</c><00:24:17.480><c> order.</c>

00:24:18.550 --> 00:24:18.560 align:start position:0%
nodes in the same cut in any order.
 

00:24:18.560 --> 00:24:19.910 align:start position:0%
nodes in the same cut in any order.
If<00:24:18.680><c> the</c><00:24:18.760><c> ranking</c><00:24:19.080><c> overlooks</c><00:24:19.520><c> a</c><00:24:19.560><c> shortest</c>

00:24:19.910 --> 00:24:19.920 align:start position:0%
If the ranking overlooks a shortest
 

00:24:19.920 --> 00:24:21.750 align:start position:0%
If the ranking overlooks a shortest
path,<00:24:20.480><c> well,</c><00:24:20.720><c> we'll</c><00:24:20.880><c> add</c><00:24:21.000><c> it</c><00:24:21.080><c> back</c><00:24:21.320><c> later</c><00:24:21.600><c> with</c>

00:24:21.750 --> 00:24:21.760 align:start position:0%
path, well, we'll add it back later with
 

00:24:21.760 --> 00:24:23.510 align:start position:0%
path, well, we'll add it back later with
a<00:24:21.800><c> shortcut.</c><00:24:22.760><c> That's</c><00:24:22.920><c> why</c><00:24:23.040><c> we</c><00:24:23.160><c> were</c><00:24:23.240><c> able</c><00:24:23.440><c> to</c>

00:24:23.510 --> 00:24:23.520 align:start position:0%
a shortcut. That's why we were able to
 

00:24:23.520 --> 00:24:25.550 align:start position:0%
a shortcut. That's why we were able to
get<00:24:23.680><c> three</c><00:24:23.960><c> valid</c><00:24:24.440><c> rankings</c><00:24:24.920><c> using</c><00:24:25.200><c> the</c><00:24:25.280><c> same</c>

00:24:25.550 --> 00:24:25.560 align:start position:0%
get three valid rankings using the same
 

00:24:25.560 --> 00:24:27.190 align:start position:0%
get three valid rankings using the same
instructions<00:24:26.160><c> earlier.</c>

00:24:27.190 --> 00:24:27.200 align:start position:0%
instructions earlier.
 

00:24:27.200 --> 00:24:28.830 align:start position:0%
instructions earlier.
But<00:24:27.480><c> while</c><00:24:27.640><c> any</c><00:24:27.840><c> ranking</c><00:24:28.200><c> will</c><00:24:28.400><c> still</c><00:24:28.600><c> find</c>

00:24:28.830 --> 00:24:28.840 align:start position:0%
But while any ranking will still find
 

00:24:28.840 --> 00:24:30.710 align:start position:0%
But while any ranking will still find
the<00:24:28.920><c> shortest</c><00:24:29.200><c> path,</c><00:24:29.800><c> a</c><00:24:29.920><c> bad</c><00:24:30.240><c> one</c><00:24:30.440><c> will</c><00:24:30.560><c> go</c>

00:24:30.710 --> 00:24:30.720 align:start position:0%
the shortest path, a bad one will go
 

00:24:30.720 --> 00:24:32.510 align:start position:0%
the shortest path, a bad one will go
really<00:24:31.000><c> slow,</c><00:24:31.600><c> or</c><00:24:31.840><c> it'll</c><00:24:32.000><c> quickly</c><00:24:32.280><c> blow</c><00:24:32.440><c> the</c>

00:24:32.510 --> 00:24:32.520 align:start position:0%
really slow, or it'll quickly blow the
 

00:24:32.520 --> 00:24:34.190 align:start position:0%
really slow, or it'll quickly blow the
graph<00:24:32.800><c> up.</c>

00:24:34.190 --> 00:24:34.200 align:start position:0%
graph up.
 

00:24:34.200 --> 00:24:35.990 align:start position:0%
graph up.
For<00:24:34.320><c> example,</c><00:24:34.760><c> with</c><00:24:34.920><c> a</c><00:24:34.960><c> series</c><00:24:35.400><c> of</c><00:24:35.520><c> nodes</c><00:24:35.840><c> in</c><00:24:35.960><c> a</c>

00:24:35.990 --> 00:24:36.000 align:start position:0%
For example, with a series of nodes in a
 

00:24:36.000 --> 00:24:38.070 align:start position:0%
For example, with a series of nodes in a
straight<00:24:36.320><c> line,</c><00:24:37.080><c> we</c><00:24:37.200><c> don't</c><00:24:37.360><c> need</c><00:24:37.520><c> to</c><00:24:37.640><c> add</c><00:24:37.880><c> any</c>

00:24:38.070 --> 00:24:38.080 align:start position:0%
straight line, we don't need to add any
 

00:24:38.080 --> 00:24:39.830 align:start position:0%
straight line, we don't need to add any
shortcuts<00:24:38.600><c> if</c><00:24:38.720><c> we</c><00:24:38.800><c> just</c><00:24:39.000><c> contract</c><00:24:39.440><c> the</c><00:24:39.520><c> nodes</c>

00:24:39.830 --> 00:24:39.840 align:start position:0%
shortcuts if we just contract the nodes
 

00:24:39.840 --> 00:24:41.670 align:start position:0%
shortcuts if we just contract the nodes
from<00:24:40.000><c> left</c><00:24:40.200><c> to</c><00:24:40.280><c> right.</c>

00:24:41.670 --> 00:24:41.680 align:start position:0%
from left to right.
 

00:24:41.680 --> 00:24:43.670 align:start position:0%
from left to right.
But<00:24:41.920><c> when</c><00:24:42.080><c> we</c><00:24:42.200><c> search</c><00:24:42.520><c> between</c><00:24:42.880><c> the</c><00:24:43.000><c> two</c><00:24:43.200><c> ends,</c>

00:24:43.670 --> 00:24:43.680 align:start position:0%
But when we search between the two ends,
 

00:24:43.680 --> 00:24:45.990 align:start position:0%
But when we search between the two ends,
we<00:24:43.800><c> have</c><00:24:43.920><c> to</c><00:24:44.000><c> explore</c><00:24:44.440><c> every</c><00:24:44.760><c> node</c><00:24:45.120><c> and</c><00:24:45.280><c> edge.</c>

00:24:45.990 --> 00:24:46.000 align:start position:0%
we have to explore every node and edge.
 

00:24:46.000 --> 00:24:48.990 align:start position:0%
we have to explore every node and edge.
That's<00:24:46.280><c> no</c><00:24:46.480><c> improvement</c><00:24:46.920><c> over</c><00:24:47.040><c> Dijkstra's.</c>

00:24:48.990 --> 00:24:49.000 align:start position:0%
That's no improvement over Dijkstra's.
 

00:24:49.000 --> 00:24:50.430 align:start position:0%
That's no improvement over Dijkstra's.
Here's<00:24:49.160><c> another</c><00:24:49.440><c> possible</c><00:24:49.880><c> ranking</c><00:24:50.240><c> with</c><00:24:50.360><c> the</c>

00:24:50.430 --> 00:24:50.440 align:start position:0%
Here's another possible ranking with the
 

00:24:50.440 --> 00:24:52.150 align:start position:0%
Here's another possible ranking with the
necessary<00:24:50.960><c> shortcuts.</c>

00:24:52.150 --> 00:24:52.160 align:start position:0%
necessary shortcuts.
 

00:24:52.160 --> 00:24:53.990 align:start position:0%
necessary shortcuts.
End<00:24:52.360><c> to</c><00:24:52.480><c> end,</c><00:24:52.840><c> we</c><00:24:53.000><c> only</c><00:24:53.240><c> need</c><00:24:53.400><c> to</c><00:24:53.480><c> search</c><00:24:53.800><c> two</c>

00:24:53.990 --> 00:24:54.000 align:start position:0%
End to end, we only need to search two
 

00:24:54.000 --> 00:24:56.310 align:start position:0%
End to end, we only need to search two
edges.<00:24:54.680><c> But</c><00:24:55.000><c> we</c><00:24:55.120><c> need</c><00:24:55.280><c> a</c><00:24:55.320><c> lot</c><00:24:55.520><c> of</c><00:24:55.600><c> shortcuts,</c>

00:24:56.310 --> 00:24:56.320 align:start position:0%
edges. But we need a lot of shortcuts,
 

00:24:56.320 --> 00:24:57.790 align:start position:0%
edges. But we need a lot of shortcuts,
and<00:24:56.440><c> in</c><00:24:56.520><c> some</c><00:24:56.800><c> sections</c><00:24:57.240><c> we</c><00:24:57.360><c> still</c><00:24:57.560><c> have</c><00:24:57.720><c> to</c>

00:24:57.790 --> 00:24:57.800 align:start position:0%
and in some sections we still have to
 

00:24:57.800 --> 00:25:00.710 align:start position:0%
and in some sections we still have to
check<00:24:58.040><c> all</c><00:24:58.160><c> the</c><00:24:58.280><c> edges.</c><00:24:59.160><c> Manageable,</c><00:25:00.040><c> but</c><00:25:00.520><c> not</c>

00:25:00.710 --> 00:25:00.720 align:start position:0%
check all the edges. Manageable, but not
 

00:25:00.720 --> 00:25:02.110 align:start position:0%
check all the edges. Manageable, but not
very<00:25:00.960><c> efficient.</c>

00:25:02.110 --> 00:25:02.120 align:start position:0%
very efficient.
 

00:25:02.120 --> 00:25:05.550 align:start position:0%
very efficient.
&gt;&gt; And<00:25:02.520><c> so,</c><00:25:03.480><c> you</c><00:25:03.640><c> want</c><00:25:03.800><c> to</c><00:25:03.880><c> have</c><00:25:04.080><c> this</c><00:25:04.280><c> trade-off</c>

00:25:05.550 --> 00:25:05.560 align:start position:0%
&gt;&gt; And so, you want to have this trade-off
 

00:25:05.560 --> 00:25:06.590 align:start position:0%
&gt;&gt; And so, you want to have this trade-off
between<00:25:05.840><c> the</c><00:25:05.880><c> number</c><00:25:06.080><c> of</c><00:25:06.120><c> shortcuts</c><00:25:06.400><c> that</c><00:25:06.520><c> you</c>

00:25:06.590 --> 00:25:06.600 align:start position:0%
between the number of shortcuts that you
 

00:25:06.600 --> 00:25:08.310 align:start position:0%
between the number of shortcuts that you
introduce<00:25:07.080><c> and</c><00:25:07.160><c> how</c><00:25:07.240><c> much</c><00:25:07.480><c> faster</c><00:25:07.840><c> the</c><00:25:07.960><c> query</c>

00:25:08.310 --> 00:25:08.320 align:start position:0%
introduce and how much faster the query
 

00:25:08.320 --> 00:25:09.470 align:start position:0%
introduce and how much faster the query
gets.

00:25:09.470 --> 00:25:09.480 align:start position:0%
gets.
 

00:25:09.480 --> 00:25:11.150 align:start position:0%
gets.
&gt;&gt; In<00:25:09.640><c> practice,</c><00:25:10.160><c> the</c><00:25:10.280><c> nested</c><00:25:10.680><c> dissection</c>

00:25:11.150 --> 00:25:11.160 align:start position:0%
&gt;&gt; In practice, the nested dissection
 

00:25:11.160 --> 00:25:12.870 align:start position:0%
&gt;&gt; In practice, the nested dissection
method<00:25:11.560><c> gets</c><00:25:11.760><c> a</c><00:25:11.800><c> decent</c><00:25:12.160><c> node</c><00:25:12.400><c> ordering</c><00:25:12.760><c> and</c>

00:25:12.870 --> 00:25:12.880 align:start position:0%
method gets a decent node ordering and
 

00:25:12.880 --> 00:25:15.870 align:start position:0%
method gets a decent node ordering and
doesn't<00:25:13.120><c> take</c><00:25:13.320><c> too</c><00:25:13.440><c> long.</c>

00:25:15.870 --> 00:25:15.880 align:start position:0%
 
 

00:25:15.880 --> 00:25:17.630 align:start position:0%
 
This<00:25:16.240><c> entire</c><00:25:16.680><c> algorithm</c><00:25:17.160><c> is</c><00:25:17.320><c> called</c><00:25:17.600><c> a</c>

00:25:17.630 --> 00:25:17.640 align:start position:0%
This entire algorithm is called a
 

00:25:17.640 --> 00:25:20.510 align:start position:0%
This entire algorithm is called a
customizable<00:25:18.400><c> contraction</c><00:25:19.080><c> hierarchy.</c>

00:25:20.510 --> 00:25:20.520 align:start position:0%
customizable contraction hierarchy.
 

00:25:20.520 --> 00:25:22.150 align:start position:0%
customizable contraction hierarchy.
And<00:25:20.720><c> Ben</c><00:25:21.040><c> tested</c><00:25:21.400><c> it</c><00:25:21.520><c> out</c><00:25:21.760><c> on</c><00:25:21.880><c> the</c><00:25:21.960><c> North</c>

00:25:22.150 --> 00:25:22.160 align:start position:0%
And Ben tested it out on the North
 

00:25:22.160 --> 00:25:23.710 align:start position:0%
And Ben tested it out on the North
American<00:25:22.520><c> network</c><00:25:22.800><c> to</c><00:25:22.920><c> give</c><00:25:23.040><c> us</c><00:25:23.160><c> a</c><00:25:23.240><c> sense</c><00:25:23.640><c> of</c>

00:25:23.710 --> 00:25:23.720 align:start position:0%
American network to give us a sense of
 

00:25:23.720 --> 00:25:25.230 align:start position:0%
American network to give us a sense of
the<00:25:23.800><c> run</c><00:25:24.000><c> times.</c>

00:25:25.230 --> 00:25:25.240 align:start position:0%
the run times.
 

00:25:25.240 --> 00:25:27.270 align:start position:0%
the run times.
In<00:25:25.440><c> phase</c><00:25:25.720><c> one,</c><00:25:26.000><c> we</c><00:25:26.200><c> order</c><00:25:26.400><c> the</c><00:25:26.480><c> nodes</c><00:25:26.840><c> and</c><00:25:27.040><c> add</c>

00:25:27.270 --> 00:25:27.280 align:start position:0%
In phase one, we order the nodes and add
 

00:25:27.280 --> 00:25:29.150 align:start position:0%
In phase one, we order the nodes and add
shortcuts.<00:25:28.120><c> This</c><00:25:28.280><c> doesn't</c><00:25:28.560><c> change</c><00:25:28.920><c> unless</c>

00:25:29.150 --> 00:25:29.160 align:start position:0%
shortcuts. This doesn't change unless
 

00:25:29.160 --> 00:25:30.830 align:start position:0%
shortcuts. This doesn't change unless
the<00:25:29.240><c> graph</c><00:25:29.520><c> itself</c><00:25:29.840><c> changes,</c><00:25:30.440><c> like</c><00:25:30.600><c> a</c><00:25:30.640><c> new</c>

00:25:30.830 --> 00:25:30.840 align:start position:0%
the graph itself changes, like a new
 

00:25:30.840 --> 00:25:33.270 align:start position:0%
the graph itself changes, like a new
bridge<00:25:31.200><c> or</c><00:25:31.360><c> road</c><00:25:31.640><c> closure.</c><00:25:32.480><c> It's</c><00:25:32.760><c> by</c><00:25:32.920><c> far</c><00:25:33.160><c> the</c>

00:25:33.270 --> 00:25:33.280 align:start position:0%
bridge or road closure. It's by far the
 

00:25:33.280 --> 00:25:35.110 align:start position:0%
bridge or road closure. It's by far the
most<00:25:33.480><c> expensive</c><00:25:34.000><c> part</c><00:25:34.120><c> of</c><00:25:34.200><c> the</c><00:25:34.240><c> process,</c><00:25:34.840><c> but</c>

00:25:35.110 --> 00:25:35.120 align:start position:0%
most expensive part of the process, but
 

00:25:35.120 --> 00:25:37.670 align:start position:0%
most expensive part of the process, but
once<00:25:35.320><c> it's</c><00:25:35.480><c> done,</c><00:25:35.840><c> it</c><00:25:36.040><c> hardly</c><00:25:36.400><c> ever</c><00:25:36.600><c> changes.</c>

00:25:37.670 --> 00:25:37.680 align:start position:0%
once it's done, it hardly ever changes.
 

00:25:37.680 --> 00:25:41.070 align:start position:0%
once it's done, it hardly ever changes.
&gt;&gt; I<00:25:37.880><c> think</c><00:25:38.160><c> it's</c><00:25:38.360><c> what</c><00:25:38.520><c> I</c><00:25:38.720><c> ended</c><00:25:39.000><c> up</c><00:25:39.200><c> at</c><00:25:39.600><c> in</c><00:25:39.680><c> our</c>

00:25:41.070 --> 00:25:41.080 align:start position:0%
&gt;&gt; I think it's what I ended up at in our
 

00:25:41.080 --> 00:25:42.550 align:start position:0%
&gt;&gt; I think it's what I ended up at in our
40<00:25:41.400><c> or</c><00:25:41.480><c> something</c><00:25:41.800><c> like</c><00:25:41.920><c> that.</c><00:25:42.200><c> But</c><00:25:42.280><c> you</c><00:25:42.400><c> can</c>

00:25:42.550 --> 00:25:42.560 align:start position:0%
40 or something like that. But you can
 

00:25:42.560 --> 00:25:44.230 align:start position:0%
40 or something like that. But you can
spend<00:25:42.840><c> more</c><00:25:43.000><c> time,</c><00:25:43.240><c> you</c><00:25:43.320><c> get</c><00:25:43.480><c> better</c><00:25:43.720><c> results,</c>

00:25:44.230 --> 00:25:44.240 align:start position:0%
spend more time, you get better results,
 

00:25:44.240 --> 00:25:46.590 align:start position:0%
spend more time, you get better results,
so<00:25:44.760><c> it's</c>

00:25:46.590 --> 00:25:46.600 align:start position:0%
so it's
 

00:25:46.600 --> 00:25:47.750 align:start position:0%
so it's
There's<00:25:46.760><c> an</c><00:25:46.840><c> argument</c><00:25:47.160><c> to</c><00:25:47.240><c> make</c><00:25:47.440><c> that</c><00:25:47.560><c> that's</c>

00:25:47.750 --> 00:25:47.760 align:start position:0%
There's an argument to make that that's
 

00:25:47.760 --> 00:25:48.350 align:start position:0%
There's an argument to make that that's
a<00:25:47.800><c> good</c><00:25:47.920><c> idea.</c>

00:25:48.350 --> 00:25:48.360 align:start position:0%
a good idea.
 

00:25:48.360 --> 00:25:50.110 align:start position:0%
a good idea.
&gt;&gt; In<00:25:48.520><c> phase</c><00:25:48.800><c> two,</c><00:25:49.120><c> we</c><00:25:49.320><c> calculate</c><00:25:49.760><c> the</c><00:25:49.840><c> weights</c>

00:25:50.110 --> 00:25:50.120 align:start position:0%
&gt;&gt; In phase two, we calculate the weights
 

00:25:50.120 --> 00:25:51.790 align:start position:0%
&gt;&gt; In phase two, we calculate the weights
for<00:25:50.240><c> all</c><00:25:50.320><c> the</c><00:25:50.400><c> shortcuts.</c><00:25:51.400><c> Whenever</c><00:25:51.640><c> there's</c>

00:25:51.790 --> 00:25:51.800 align:start position:0%
for all the shortcuts. Whenever there's
 

00:25:51.800 --> 00:25:53.230 align:start position:0%
for all the shortcuts. Whenever there's
traffic<00:25:52.120><c> updates,</c><00:25:52.520><c> we'll</c><00:25:52.640><c> have</c><00:25:52.760><c> to</c><00:25:52.880><c> rerun</c>

00:25:53.230 --> 00:25:53.240 align:start position:0%
traffic updates, we'll have to rerun
 

00:25:53.240 --> 00:25:54.990 align:start position:0%
traffic updates, we'll have to rerun
this<00:25:53.400><c> step,</c><00:25:53.920><c> so</c><00:25:54.040><c> it</c><00:25:54.120><c> needs</c><00:25:54.320><c> to</c><00:25:54.360><c> be</c><00:25:54.480><c> relatively</c>

00:25:54.990 --> 00:25:55.000 align:start position:0%
this step, so it needs to be relatively
 

00:25:55.000 --> 00:25:55.870 align:start position:0%
this step, so it needs to be relatively
quick.

00:25:55.870 --> 00:25:55.880 align:start position:0%
quick.
 

00:25:55.880 --> 00:25:58.150 align:start position:0%
quick.
&gt;&gt; I<00:25:56.080><c> think</c><00:25:56.360><c> 7-8</c><00:25:57.000><c> seconds</c>

00:25:58.150 --> 00:25:58.160 align:start position:0%
&gt;&gt; I think 7-8 seconds
 

00:25:58.160 --> 00:26:00.550 align:start position:0%
&gt;&gt; I think 7-8 seconds
without<00:25:58.520><c> parallelization</c><00:25:59.560><c> can</c><00:25:59.720><c> get</c><00:26:00.120><c> down</c><00:26:00.440><c> to</c>

00:26:00.550 --> 00:26:00.560 align:start position:0%
without parallelization can get down to
 

00:26:00.560 --> 00:26:02.110 align:start position:0%
without parallelization can get down to
about<00:26:00.840><c> a</c><00:26:00.880><c> second.</c>

00:26:02.110 --> 00:26:02.120 align:start position:0%
about a second.
 

00:26:02.120 --> 00:26:04.070 align:start position:0%
about a second.
And<00:26:02.280><c> then</c><00:26:02.640><c> that's</c><00:26:03.000><c> where</c><00:26:03.240><c> the</c><00:26:03.680><c> the</c><00:26:03.760><c> memory</c>

00:26:04.070 --> 00:26:04.080 align:start position:0%
And then that's where the the memory
 

00:26:04.080 --> 00:26:05.270 align:start position:0%
And then that's where the the memory
starts<00:26:04.400><c> hitting.</c>

00:26:05.270 --> 00:26:05.280 align:start position:0%
starts hitting.
 

00:26:05.280 --> 00:26:07.350 align:start position:0%
starts hitting.
&gt;&gt; Finally,<00:26:05.840><c> phase</c><00:26:06.200><c> three</c><00:26:06.520><c> is</c><00:26:06.720><c> the</c><00:26:06.920><c> actual</c>

00:26:07.350 --> 00:26:07.360 align:start position:0%
&gt;&gt; Finally, phase three is the actual
 

00:26:07.360 --> 00:26:09.910 align:start position:0%
&gt;&gt; Finally, phase three is the actual
search.<00:26:08.200><c> Remember,</c><00:26:08.680><c> for</c><00:26:08.920><c> a</c><00:26:09.000><c> long</c><00:26:09.360><c> path</c><00:26:09.760><c> on</c><00:26:09.840><c> the</c>

00:26:09.910 --> 00:26:09.920 align:start position:0%
search. Remember, for a long path on the
 

00:26:09.920 --> 00:26:11.710 align:start position:0%
search. Remember, for a long path on the
North<00:26:10.120><c> American</c><00:26:10.480><c> network,</c><00:26:11.120><c> a</c><00:26:11.200><c> well-tuned</c>

00:26:11.710 --> 00:26:11.720 align:start position:0%
North American network, a well-tuned
 

00:26:11.720 --> 00:26:14.230 align:start position:0%
North American network, a well-tuned
Dijkstra<00:26:12.240><c> needs</c><00:26:12.520><c> to</c><00:26:12.640><c> explore</c><00:26:13.040><c> most</c><00:26:13.480><c> of</c><00:26:13.600><c> the</c><00:26:13.680><c> 64</c>

00:26:14.230 --> 00:26:14.240 align:start position:0%
Dijkstra needs to explore most of the 64
 

00:26:14.240 --> 00:26:16.950 align:start position:0%
Dijkstra needs to explore most of the 64
million<00:26:14.640><c> nodes</c><00:26:15.160><c> and</c><00:26:15.480><c> takes</c><00:26:15.720><c> around</c><00:26:16.080><c> 7</c><00:26:16.440><c> seconds</c>

00:26:16.950 --> 00:26:16.960 align:start position:0%
million nodes and takes around 7 seconds
 

00:26:16.960 --> 00:26:19.150 align:start position:0%
million nodes and takes around 7 seconds
per<00:26:17.120><c> path.</c><00:26:17.960><c> For</c><00:26:18.080><c> this</c><00:26:18.520><c> contraction</c>

00:26:19.150 --> 00:26:19.160 align:start position:0%
per path. For this contraction
 

00:26:19.160 --> 00:26:21.510 align:start position:0%
per path. For this contraction
hierarchy,<00:26:20.040><c> the</c><00:26:20.160><c> query</c><00:26:20.480><c> run</c><00:26:20.680><c> time</c><00:26:20.960><c> was</c><00:26:21.120><c> around</c>

00:26:21.510 --> 00:26:21.520 align:start position:0%
hierarchy, the query run time was around
 

00:26:21.520 --> 00:26:23.670 align:start position:0%
hierarchy, the query run time was around
200<00:26:22.160><c> microseconds.</c>

00:26:23.670 --> 00:26:23.680 align:start position:0%
200 microseconds.
 

00:26:23.680 --> 00:26:25.550 align:start position:0%
200 microseconds.
&gt;&gt; Depending<00:26:24.120><c> on</c><00:26:24.240><c> how</c><00:26:24.400><c> you</c><00:26:24.640><c> configure</c><00:26:25.120><c> stuff,</c>

00:26:25.550 --> 00:26:25.560 align:start position:0%
&gt;&gt; Depending on how you configure stuff,
 

00:26:25.560 --> 00:26:28.030 align:start position:0%
&gt;&gt; Depending on how you configure stuff,
you<00:26:25.680><c> can</c><00:26:25.920><c> get</c><00:26:26.200><c> down</c><00:26:26.600><c> to</c><00:26:26.720><c> like</c><00:26:26.880><c> 100</c><00:26:27.680><c> seconds</c><00:26:27.960><c> or</c>

00:26:28.030 --> 00:26:28.040 align:start position:0%
you can get down to like 100 seconds or
 

00:26:28.040 --> 00:26:29.030 align:start position:0%
you can get down to like 100 seconds or
so.

00:26:29.030 --> 00:26:29.040 align:start position:0%
so.
 

00:26:29.040 --> 00:26:30.350 align:start position:0%
so.
But

00:26:30.350 --> 00:26:30.360 align:start position:0%
But
 

00:26:30.360 --> 00:26:32.950 align:start position:0%
But
for<00:26:30.640><c> practical</c><00:26:31.040><c> purposes,</c><00:26:31.680><c> below</c><00:26:32.000><c> a</c><00:26:32.120><c> second</c>

00:26:32.950 --> 00:26:32.960 align:start position:0%
for practical purposes, below a second
 

00:26:32.960 --> 00:26:34.630 align:start position:0%
for practical purposes, below a second
millisecond<00:26:33.520><c> is</c><00:26:33.680><c> all</c><00:26:33.880><c> you</c><00:26:34.000><c> need.</c>

00:26:34.630 --> 00:26:34.640 align:start position:0%
millisecond is all you need.
 

00:26:34.640 --> 00:26:37.110 align:start position:0%
millisecond is all you need.
&gt;&gt; That's<00:26:34.960><c> 35,000</c><00:26:35.800><c> times</c><00:26:36.120><c> faster</c><00:26:36.480><c> than</c><00:26:36.600><c> Dijkstra</c>

00:26:37.110 --> 00:26:37.120 align:start position:0%
&gt;&gt; That's 35,000 times faster than Dijkstra
 

00:26:37.120 --> 00:26:39.670 align:start position:0%
&gt;&gt; That's 35,000 times faster than Dijkstra
in<00:26:37.400><c> just</c><00:26:37.680><c> this</c><00:26:37.840><c> experiment.</c><00:26:38.880><c> And</c><00:26:39.040><c> on</c><00:26:39.200><c> average,</c>

00:26:39.670 --> 00:26:39.680 align:start position:0%
in just this experiment. And on average,
 

00:26:39.680 --> 00:26:43.350 align:start position:0%
in just this experiment. And on average,
it<00:26:39.840><c> only</c><00:26:40.040><c> needed</c><00:26:40.320><c> to</c><00:26:40.440><c> explore</c><00:26:40.880><c> 1,450</c><00:26:42.360><c> nodes,</c>

00:26:43.350 --> 00:26:43.360 align:start position:0%
it only needed to explore 1,450 nodes,
 

00:26:43.360 --> 00:26:45.230 align:start position:0%
it only needed to explore 1,450 nodes,
cutting<00:26:43.600><c> the</c><00:26:43.680><c> search</c><00:26:43.920><c> space</c><00:26:44.200><c> by</c><00:26:44.360><c> a</c><00:26:44.400><c> factor</c><00:26:44.920><c> of</c>

00:26:45.230 --> 00:26:45.240 align:start position:0%
cutting the search space by a factor of
 

00:26:45.240 --> 00:26:47.630 align:start position:0%
cutting the search space by a factor of
around<00:26:45.720><c> 44,000.</c>

00:26:47.630 --> 00:26:47.640 align:start position:0%
around 44,000.
 

00:26:47.640 --> 00:26:49.150 align:start position:0%
around 44,000.
A<00:26:47.720><c> Dijkstra</c><00:26:48.080><c> search</c><00:26:48.360><c> from</c><00:26:48.520><c> San</c><00:26:48.720><c> Francisco</c><00:26:49.080><c> to</c>

00:26:49.150 --> 00:26:49.160 align:start position:0%
A Dijkstra search from San Francisco to
 

00:26:49.160 --> 00:26:50.910 align:start position:0%
A Dijkstra search from San Francisco to
Montreal<00:26:49.800><c> would</c><00:26:50.000><c> need</c><00:26:50.200><c> to</c><00:26:50.280><c> check</c><00:26:50.640><c> all</c><00:26:50.800><c> the</c>

00:26:50.910 --> 00:26:50.920 align:start position:0%
Montreal would need to check all the
 

00:26:50.920 --> 00:26:53.110 align:start position:0%
Montreal would need to check all the
nodes<00:26:51.280><c> roughly</c><00:26:51.760><c> in</c><00:26:51.880><c> this</c><00:26:52.080><c> area.</c><00:26:52.920><c> On</c><00:26:53.080><c> a</c>

00:26:53.110 --> 00:26:53.120 align:start position:0%
nodes roughly in this area. On a
 

00:26:53.120 --> 00:26:55.510 align:start position:0%
nodes roughly in this area. On a
customizable<00:26:53.880><c> contraction</c><00:26:54.480><c> hierarchy,</c><00:26:55.320><c> it</c>

00:26:55.510 --> 00:26:55.520 align:start position:0%
customizable contraction hierarchy, it
 

00:26:55.520 --> 00:26:58.590 align:start position:0%
customizable contraction hierarchy, it
only<00:26:55.720><c> needs</c><00:26:55.960><c> to</c><00:26:56.080><c> search</c><00:26:56.440><c> these</c><00:26:56.920><c> 1,236</c>

00:26:58.590 --> 00:26:58.600 align:start position:0%
only needs to search these 1,236
 

00:26:58.600 --> 00:27:00.830 align:start position:0%
only needs to search these 1,236
nodes.<00:26:59.360><c> Most</c><00:26:59.600><c> of</c><00:26:59.680><c> the</c><00:26:59.760><c> nodes</c><00:27:00.080><c> cluster</c><00:27:00.520><c> around</c>

00:27:00.830 --> 00:27:00.840 align:start position:0%
nodes. Most of the nodes cluster around
 

00:27:00.840 --> 00:27:02.870 align:start position:0%
nodes. Most of the nodes cluster around
the<00:27:00.920><c> source</c><00:27:01.360><c> and</c><00:27:01.520><c> target.</c><00:27:02.200><c> Once</c><00:27:02.360><c> it</c><00:27:02.440><c> gets</c><00:27:02.680><c> far</c>

00:27:02.870 --> 00:27:02.880 align:start position:0%
the source and target. Once it gets far
 

00:27:02.880 --> 00:27:04.950 align:start position:0%
the source and target. Once it gets far
enough<00:27:03.160><c> up</c><00:27:03.320><c> the</c><00:27:03.440><c> hierarchy,</c><00:27:04.160><c> it</c><00:27:04.480><c> only</c><00:27:04.720><c> needs</c>

00:27:04.950 --> 00:27:04.960 align:start position:0%
enough up the hierarchy, it only needs
 

00:27:04.960 --> 00:27:06.790 align:start position:0%
enough up the hierarchy, it only needs
to<00:27:05.080><c> check</c><00:27:05.320><c> the</c><00:27:05.440><c> most</c><00:27:05.680><c> important</c><00:27:06.120><c> cuts</c><00:27:06.560><c> like</c>

00:27:06.790 --> 00:27:06.800 align:start position:0%
to check the most important cuts like
 

00:27:06.800 --> 00:27:08.990 align:start position:0%
to check the most important cuts like
the<00:27:06.880><c> Mississippi.</c><00:27:08.040><c> While</c><00:27:08.240><c> we</c><00:27:08.400><c> don't</c><00:27:08.720><c> know</c>

00:27:08.990 --> 00:27:09.000 align:start position:0%
the Mississippi. While we don't know
 

00:27:09.000 --> 00:27:11.030 align:start position:0%
the Mississippi. While we don't know
exactly<00:27:09.480><c> what</c><00:27:09.640><c> Google</c><00:27:09.880><c> Maps,</c><00:27:10.240><c> Apple</c><00:27:10.480><c> Maps,</c><00:27:10.760><c> or</c>

00:27:11.030 --> 00:27:11.040 align:start position:0%
exactly what Google Maps, Apple Maps, or
 

00:27:11.040 --> 00:27:12.630 align:start position:0%
exactly what Google Maps, Apple Maps, or
any<00:27:11.200><c> of</c><00:27:11.240><c> these</c><00:27:11.440><c> big</c><00:27:11.720><c> routing</c><00:27:12.040><c> applications</c>

00:27:12.630 --> 00:27:12.640 align:start position:0%
any of these big routing applications
 

00:27:12.640 --> 00:27:14.550 align:start position:0%
any of these big routing applications
actually<00:27:13.040><c> use</c><00:27:13.320><c> under</c><00:27:13.480><c> the</c><00:27:13.600><c> hood,</c>

00:27:14.550 --> 00:27:14.560 align:start position:0%
actually use under the hood,
 

00:27:14.560 --> 00:27:16.590 align:start position:0%
actually use under the hood,
they<00:27:14.880><c> all</c><00:27:15.200><c> could</c><00:27:15.400><c> be</c><00:27:15.520><c> built</c><00:27:15.800><c> with</c><00:27:16.000><c> contraction</c>

00:27:16.590 --> 00:27:16.600 align:start position:0%
they all could be built with contraction
 

00:27:16.600 --> 00:27:18.590 align:start position:0%
they all could be built with contraction
hierarchies,<00:27:17.680><c> and</c><00:27:17.960><c> customizable</c>

00:27:18.590 --> 00:27:18.600 align:start position:0%
hierarchies, and customizable
 

00:27:18.600 --> 00:27:20.470 align:start position:0%
hierarchies, and customizable
contraction<00:27:19.080><c> hierarchies</c><00:27:19.760><c> is</c><00:27:19.960><c> just</c><00:27:20.280><c> one</c>

00:27:20.470 --> 00:27:20.480 align:start position:0%
contraction hierarchies is just one
 

00:27:20.480 --> 00:27:22.550 align:start position:0%
contraction hierarchies is just one
variation.<00:27:21.440><c> And</c><00:27:21.560><c> there</c><00:27:21.760><c> are</c><00:27:21.960><c> even</c><00:27:22.240><c> more</c>

00:27:22.550 --> 00:27:22.560 align:start position:0%
variation. And there are even more
 

00:27:22.560 --> 00:27:24.270 align:start position:0%
variation. And there are even more
routing<00:27:22.920><c> algorithms</c><00:27:23.520><c> that</c><00:27:23.720><c> we</c><00:27:23.920><c> haven't</c>

00:27:24.270 --> 00:27:24.280 align:start position:0%
routing algorithms that we haven't
 

00:27:24.280 --> 00:27:25.990 align:start position:0%
routing algorithms that we haven't
covered.

00:27:25.990 --> 00:27:26.000 align:start position:0%
covered.
 

00:27:26.000 --> 00:27:27.590 align:start position:0%
covered.
&gt;&gt; But<00:27:26.200><c> if</c><00:27:26.320><c> you</c><00:27:26.400><c> think</c><00:27:26.600><c> about</c><00:27:26.840><c> it,</c><00:27:27.120><c> its</c><00:27:27.320><c> core</c>

00:27:27.590 --> 00:27:27.600 align:start position:0%
&gt;&gt; But if you think about it, its core
 

00:27:27.600 --> 00:27:29.230 align:start position:0%
&gt;&gt; But if you think about it, its core
search<00:27:27.960><c> is</c><00:27:28.160><c> still</c><00:27:28.480><c> Dijkstra's,</c><00:27:28.653><c> [music]</c>

00:27:29.230 --> 00:27:29.240 align:start position:0%
search is still Dijkstra's, [music]
 

00:27:29.240 --> 00:27:31.630 align:start position:0%
search is still Dijkstra's, [music]
a<00:27:29.320><c> 70-year-old</c><00:27:30.080><c> algorithm.</c>

00:27:31.630 --> 00:27:31.640 align:start position:0%
a 70-year-old algorithm.
 

00:27:31.640 --> 00:27:33.270 align:start position:0%
a 70-year-old algorithm.
&gt;&gt; Four<00:27:31.840><c> decades</c><00:27:32.320><c> after</c><00:27:32.520><c> Dijkstra</c><00:27:32.880><c> published</c>

00:27:33.270 --> 00:27:33.280 align:start position:0%
&gt;&gt; Four decades after Dijkstra published
 

00:27:33.280 --> 00:27:35.190 align:start position:0%
&gt;&gt; Four decades after Dijkstra published
his<00:27:33.400><c> article,</c><00:27:34.000><c> Danish</c><00:27:34.320><c> computer</c><00:27:34.640><c> scientist</c>

00:27:35.190 --> 00:27:35.200 align:start position:0%
his article, Danish computer scientist
 

00:27:35.200 --> 00:27:37.310 align:start position:0%
his article, Danish computer scientist
Mikkel<00:27:35.520><c> Thorup</c><00:27:36.080><c> said</c><00:27:36.360><c> that</c><00:27:36.600><c> all</c><00:27:36.840><c> theoretical</c>

00:27:37.310 --> 00:27:37.320 align:start position:0%
Mikkel Thorup said that all theoretical
 

00:27:37.320 --> 00:27:38.950 align:start position:0%
Mikkel Thorup said that all theoretical
developments<00:27:37.880><c> in</c><00:27:38.000><c> single</c><00:27:38.360><c> source</c><00:27:38.640><c> shortest</c>

00:27:38.950 --> 00:27:38.960 align:start position:0%
developments in single source shortest
 

00:27:38.960 --> 00:27:39.710 align:start position:0%
developments in single source shortest
paths<00:27:39.134><c> [music]</c>

00:27:39.710 --> 00:27:39.720 align:start position:0%
paths [music]
 

00:27:39.720 --> 00:27:42.830 align:start position:0%
paths [music]
have<00:27:39.840><c> been</c><00:27:40.000><c> based</c><00:27:40.400><c> on</c><00:27:40.520><c> Dijkstra's</c><00:27:41.000><c> algorithm.</c>

00:27:42.830 --> 00:27:42.840 align:start position:0%
have been based on Dijkstra's algorithm.
 

00:27:42.840 --> 00:27:44.950 align:start position:0%
have been based on Dijkstra's algorithm.
And<00:27:43.080><c> since</c><00:27:43.360><c> 2000,</c><00:27:44.080><c> many</c><00:27:44.360><c> of</c><00:27:44.480><c> the</c><00:27:44.600><c> newest</c>

00:27:44.950 --> 00:27:44.960 align:start position:0%
And since 2000, many of the newest
 

00:27:44.960 --> 00:27:46.950 align:start position:0%
And since 2000, many of the newest
shortest<00:27:45.320><c> path</c><00:27:45.600><c> algorithms</c><00:27:46.160><c> still</c><00:27:46.480><c> use</c><00:27:46.720><c> bits</c>

00:27:46.950 --> 00:27:46.960 align:start position:0%
shortest path algorithms still use bits
 

00:27:46.960 --> 00:27:48.870 align:start position:0%
shortest path algorithms still use bits
and<00:27:47.080><c> pieces</c><00:27:47.520><c> of</c><00:27:47.640><c> Dijkstra's.</c>

00:27:48.870 --> 00:27:48.880 align:start position:0%
and pieces of Dijkstra's.
 

00:27:48.880 --> 00:27:50.430 align:start position:0%
and pieces of Dijkstra's.
From<00:27:49.040><c> variations</c><00:27:49.720><c> on</c><00:27:49.880><c> contraction</c>

00:27:50.430 --> 00:27:50.440 align:start position:0%
From variations on contraction
 

00:27:50.440 --> 00:27:52.350 align:start position:0%
From variations on contraction
hierarchies<00:27:51.240><c> all</c><00:27:51.400><c> the</c><00:27:51.520><c> way</c><00:27:51.680><c> to</c><00:27:51.840><c> a</c><00:27:51.920><c> recent</c>

00:27:52.350 --> 00:27:52.360 align:start position:0%
hierarchies all the way to a recent
 

00:27:52.360 --> 00:27:54.030 align:start position:0%
hierarchies all the way to a recent
theoretical<00:27:52.800><c> breakthrough</c><00:27:53.480><c> for</c><00:27:53.640><c> an</c><00:27:53.800><c> even</c>

00:27:54.030 --> 00:27:54.040 align:start position:0%
theoretical breakthrough for an even
 

00:27:54.040 --> 00:27:57.710 align:start position:0%
theoretical breakthrough for an even
faster<00:27:54.520><c> shortest</c><00:27:54.920><c> path</c><00:27:55.160><c> algorithm.</c>

00:27:57.710 --> 00:27:57.720 align:start position:0%
faster shortest path algorithm.
 

00:27:57.720 --> 00:27:59.030 align:start position:0%
faster shortest path algorithm.
All<00:27:57.920><c> of</c><00:27:58.040><c> this</c>

00:27:59.030 --> 00:27:59.040 align:start position:0%
All of this
 

00:27:59.040 --> 00:28:03.310 align:start position:0%
All of this
based<00:27:59.520><c> on</c><00:27:59.680><c> a</c><00:27:59.720><c> 20-minute</c><00:28:00.520><c> invention.</c>

00:28:03.310 --> 00:28:03.320 align:start position:0%
 
 

00:28:03.320 --> 00:28:05.030 align:start position:0%
 
Part<00:28:03.520><c> of</c><00:28:03.600><c> Dijkstra's</c><00:28:04.080><c> enduring</c><00:28:04.480><c> success</c>

00:28:05.030 --> 00:28:05.040 align:start position:0%
Part of Dijkstra's enduring success
 

00:28:05.040 --> 00:28:07.310 align:start position:0%
Part of Dijkstra's enduring success
comes<00:28:05.320><c> down</c><00:28:05.640><c> to</c><00:28:05.760><c> just</c><00:28:05.960><c> how</c><00:28:06.080><c> simple</c><00:28:06.440><c> it</c><00:28:06.560><c> is.</c><00:28:07.160><c> As</c>

00:28:07.310 --> 00:28:07.320 align:start position:0%
comes down to just how simple it is. As
 

00:28:07.320 --> 00:28:09.630 align:start position:0%
comes down to just how simple it is. As
he<00:28:07.440><c> said,</c><00:28:07.840><c> simplicity</c><00:28:08.520><c> is</c><00:28:08.720><c> prerequisite</c><00:28:09.480><c> for</c>

00:28:09.630 --> 00:28:09.640 align:start position:0%
he said, simplicity is prerequisite for
 

00:28:09.640 --> 00:28:11.750 align:start position:0%
he said, simplicity is prerequisite for
reliability.<00:28:10.760><c> Dijkstra</c><00:28:11.120><c> thought</c><00:28:11.360><c> deeply</c>

00:28:11.750 --> 00:28:11.760 align:start position:0%
reliability. Dijkstra thought deeply
 

00:28:11.760 --> 00:28:13.630 align:start position:0%
reliability. Dijkstra thought deeply
about<00:28:12.040><c> problems</c><00:28:12.600><c> before</c><00:28:13.000><c> ever</c><00:28:13.240><c> touching</c><00:28:13.600><c> a</c>

00:28:13.630 --> 00:28:13.640 align:start position:0%
about problems before ever touching a
 

00:28:13.640 --> 00:28:15.430 align:start position:0%
about problems before ever touching a
pen<00:28:14.280><c> because</c><00:28:14.520><c> at</c><00:28:14.600><c> the</c><00:28:14.720><c> end</c><00:28:14.840><c> of</c><00:28:14.880><c> the</c><00:28:14.960><c> day,</c><00:28:15.320><c> it</c>

00:28:15.430 --> 00:28:15.440 align:start position:0%
pen because at the end of the day, it
 

00:28:15.440 --> 00:28:17.150 align:start position:0%
pen because at the end of the day, it
would<00:28:15.560><c> be</c><00:28:15.680><c> a</c><00:28:15.760><c> programmer</c><00:28:16.400><c> who</c><00:28:16.520><c> is</c><00:28:16.640><c> accountable</c>

00:28:17.150 --> 00:28:17.160 align:start position:0%
would be a programmer who is accountable
 

00:28:17.160 --> 00:28:38.830 align:start position:0%
would be a programmer who is accountable
for<00:28:17.280><c> their</c><00:28:17.400><c> work,</c><00:28:18.080><c> not</c><00:28:18.480><c> the</c><00:28:18.560><c> machine.</c>

00:28:38.830 --> 00:28:38.840 align:start position:0%
 
 

00:28:38.840 --> 00:28:41.310 align:start position:0%
 
&gt;&gt; Was<00:28:39.000><c> your</c><00:28:39.120><c> program</c><00:28:39.600><c> not</c><00:28:39.880><c> working?</c>

00:28:41.310 --> 00:28:41.320 align:start position:0%
&gt;&gt; Was your program not working?
 

00:28:41.320 --> 00:28:45.279 align:start position:0%
&gt;&gt; Was your program not working?
Then<00:28:41.560><c> you</c><00:28:41.720><c> have</c><00:28:41.840><c> no</c><00:28:41.920><c> one</c><00:28:42.320><c> to</c><00:28:42.400><c> hide</c><00:28:42.560><c> behind.</c>

00:28:45.279 --> 00:28:45.289 align:start position:0%
Then you have no one to hide behind.
 

00:28:45.289 --> 00:28:46.150 align:start position:0%
Then you have no one to hide behind.
&gt;&gt; [music]

00:28:46.150 --> 00:28:46.160 align:start position:0%
&gt;&gt; [music]
 

00:28:46.160 --> 00:28:48.870 align:start position:0%
&gt;&gt; [music]
&gt;&gt; You<00:28:46.320><c> can't</c><00:28:46.520><c> hide</c><00:28:46.680><c> behind</c>

00:28:48.870 --> 00:28:48.880 align:start position:0%
&gt;&gt; You can't hide behind
 

00:28:48.880 --> 00:28:56.950 align:start position:0%
&gt;&gt; You can't hide behind
unwilling<00:28:49.520><c> nature.</c>

00:28:56.950 --> 00:28:56.960 align:start position:0%
 
 

00:28:56.960 --> 00:28:58.630 align:start position:0%
 
&gt;&gt; So,<00:28:57.160><c> with</c><00:28:57.400><c> those</c><00:28:57.640><c> two</c><00:28:57.800><c> ideals,</c><00:28:58.280><c> he</c><00:28:58.400><c> hoped</c><00:28:58.560><c> to</c>

00:28:58.630 --> 00:28:58.640 align:start position:0%
&gt;&gt; So, with those two ideals, he hoped to
 

00:28:58.640 --> 00:29:00.430 align:start position:0%
&gt;&gt; So, with those two ideals, he hoped to
have<00:28:58.800><c> one</c><00:28:59.000><c> lasting</c><00:28:59.400><c> legacy.</c>

00:29:00.430 --> 00:29:00.440 align:start position:0%
have one lasting legacy.
 

00:29:00.440 --> 00:29:02.110 align:start position:0%
have one lasting legacy.
He<00:29:00.520><c> said,</c><00:29:00.880><c> "If</c><00:29:01.080><c> 10</c><00:29:01.320><c> years</c><00:29:01.520><c> from</c><00:29:01.640><c> now,</c><00:29:02.000><c> when</c>

00:29:02.110 --> 00:29:02.120 align:start position:0%
He said, "If 10 years from now, when
 

00:29:02.120 --> 00:29:03.510 align:start position:0%
He said, "If 10 years from now, when
you're<00:29:02.240><c> doing</c><00:29:02.440><c> something</c><00:29:02.760><c> quick</c><00:29:03.000><c> and</c><00:29:03.120><c> dirty,</c>

00:29:03.510 --> 00:29:03.520 align:start position:0%
you're doing something quick and dirty,
 

00:29:03.520 --> 00:29:04.750 align:start position:0%
you're doing something quick and dirty,
you<00:29:03.630><c> [music]</c><00:29:03.640><c> suddenly</c><00:29:03.960><c> visualize</c><00:29:04.480><c> that</c><00:29:04.640><c> I'm</c>

00:29:04.750 --> 00:29:04.760 align:start position:0%
you [music] suddenly visualize that I'm
 

00:29:04.760 --> 00:29:06.790 align:start position:0%
you [music] suddenly visualize that I'm
here<00:29:05.080><c> looking</c><00:29:05.360><c> over</c><00:29:05.560><c> your</c><00:29:05.720><c> shoulders</c><00:29:06.480><c> and</c><00:29:06.640><c> say</c>

00:29:06.790 --> 00:29:06.800 align:start position:0%
here looking over your shoulders and say
 

00:29:06.800 --> 00:29:08.270 align:start position:0%
here looking over your shoulders and say
to<00:29:06.880><c> yourself,</c><00:29:07.320><c> 'Dijkstra</c><00:29:07.840><c> would</c><00:29:07.960><c> not</c><00:29:08.160><c> have</c>

00:29:08.270 --> 00:29:08.280 align:start position:0%
to yourself, 'Dijkstra would not have
 

00:29:08.280 --> 00:29:10.150 align:start position:0%
to yourself, 'Dijkstra would not have
liked<00:29:08.520><c> this.'</c><00:29:09.320><c> Well,</c><00:29:09.640><c> that'd</c><00:29:09.840><c> be</c><00:29:09.920><c> enough</c>

00:29:10.150 --> 00:29:10.160 align:start position:0%
liked this.' Well, that'd be enough
 

00:29:10.160 --> 00:29:11.480 align:start position:0%
liked this.' Well, that'd be enough
immortality<00:29:10.800><c> for</c><00:29:10.960><c> me.</c>

00:29:11.480 --> 00:29:11.490 align:start position:0%
immortality for me.
 

00:29:11.490 --> 00:29:11.790 align:start position:0%
immortality for me.
&gt;&gt; [music]

00:29:11.790 --> 00:29:11.800 align:start position:0%
&gt;&gt; [music]
 

00:29:11.800 --> 00:29:13.470 align:start position:0%
&gt;&gt; [music]
&gt;&gt; So,<00:29:12.000><c> even</c><00:29:12.240><c> if</c><00:29:12.360><c> you</c><00:29:12.480><c> can</c><00:29:12.600><c> only</c><00:29:12.840><c> control</c><00:29:13.280><c> your</c>

00:29:13.470 --> 00:29:13.480 align:start position:0%
&gt;&gt; So, even if you can only control your
 

00:29:13.480 --> 00:29:15.150 align:start position:0%
&gt;&gt; So, even if you can only control your
little<00:29:13.720><c> corner</c><00:29:14.040><c> of</c><00:29:14.120><c> the</c><00:29:14.200><c> world,</c><00:29:14.960><c> you</c><00:29:15.040><c> can</c>

00:29:15.150 --> 00:29:15.160 align:start position:0%
little corner of the world, you can
 

00:29:15.160 --> 00:29:17.030 align:start position:0%
little corner of the world, you can
still<00:29:15.400><c> make</c><00:29:15.640><c> it</c><00:29:15.880><c> as</c><00:29:16.080><c> elegant</c><00:29:16.520><c> and</c><00:29:16.640><c> thoughtful</c>

00:29:17.030 --> 00:29:17.040 align:start position:0%
still make it as elegant and thoughtful
 

00:29:17.040 --> 00:29:19.030 align:start position:0%
still make it as elegant and thoughtful
as<00:29:17.200><c> possible</c><00:29:17.960><c> for</c><00:29:18.120><c> you</c><00:29:18.480><c> and</c><00:29:18.600><c> all</c><00:29:18.680><c> the</c><00:29:18.800><c> people</c>

00:29:19.030 --> 00:29:19.040 align:start position:0%
as possible for you and all the people
 

00:29:19.040 --> 00:29:23.925 align:start position:0%
as possible for you and all the people
who<00:29:19.160><c> come</c><00:29:19.360><c> after."</c>

00:29:23.925 --> 00:29:23.935 align:start position:0%
 
 

00:29:23.935 --> 00:29:25.870 align:start position:0%
 
&gt;&gt; [music]

00:29:25.870 --> 00:29:25.880 align:start position:0%
&gt;&gt; [music]
 

00:29:25.880 --> 00:29:27.070 align:start position:0%
&gt;&gt; [music]
&gt;&gt; Before<00:29:26.120><c> we</c><00:29:26.240><c> go,</c><00:29:26.480><c> I</c><00:29:26.520><c> just</c><00:29:26.640><c> wanted</c><00:29:26.880><c> to</c><00:29:26.920><c> say</c>

00:29:27.070 --> 00:29:27.080 align:start position:0%
&gt;&gt; Before we go, I just wanted to say
 

00:29:27.080 --> 00:29:28.950 align:start position:0%
&gt;&gt; Before we go, I just wanted to say
thanks<00:29:27.400><c> again</c><00:29:27.680><c> to</c><00:29:27.760><c> boot.dev</c><00:29:28.360><c> for</c><00:29:28.480><c> sponsoring</c>

00:29:28.950 --> 00:29:28.960 align:start position:0%
thanks again to boot.dev for sponsoring
 

00:29:28.960 --> 00:29:30.350 align:start position:0%
thanks again to boot.dev for sponsoring
this<00:29:29.160><c> video.</c><00:29:29.640><c> If</c><00:29:29.760><c> you</c><00:29:29.840><c> guys</c><00:29:30.000><c> want</c><00:29:30.120><c> to</c><00:29:30.200><c> check</c>

00:29:30.350 --> 00:29:30.360 align:start position:0%
this video. If you guys want to check
 

00:29:30.360 --> 00:29:31.470 align:start position:0%
this video. If you guys want to check
them<00:29:30.520><c> out,</c><00:29:30.680><c> you</c><00:29:30.760><c> can</c><00:29:30.880><c> check</c><00:29:31.040><c> the</c><00:29:31.120><c> link</c><00:29:31.320><c> in</c><00:29:31.400><c> our</c>

00:29:31.470 --> 00:29:31.480 align:start position:0%
them out, you can check the link in our
 

00:29:31.480 --> 00:29:33.510 align:start position:0%
them out, you can check the link in our
description<00:29:32.360><c> or</c><00:29:32.450><c> [music]</c><00:29:32.560><c> scan</c><00:29:32.800><c> this</c><00:29:32.920><c> QR</c><00:29:33.240><c> code</c>

00:29:33.510 --> 00:29:33.520 align:start position:0%
description or [music] scan this QR code
 

00:29:33.520 --> 00:29:34.910 align:start position:0%
description or [music] scan this QR code
right<00:29:33.720><c> here.</c><00:29:34.080><c> And</c><00:29:34.160><c> make</c><00:29:34.320><c> sure</c><00:29:34.480><c> to</c><00:29:34.600><c> use</c><00:29:34.800><c> at</c>

00:29:34.910 --> 00:29:34.920 align:start position:0%
right here. And make sure to use at
 

00:29:34.920 --> 00:29:37.870 align:start position:0%
right here. And make sure to use at
checkout<00:29:35.400><c> code</c><00:29:35.640><c> veritasium</c><00:29:36.440><c> for</c><00:29:36.560><c> 25%</c><00:29:37.240><c> off.</c>

00:29:37.870 --> 00:29:37.880 align:start position:0%
checkout code veritasium for 25% off.
 

00:29:37.880 --> 00:29:39.910 align:start position:0%
checkout code veritasium for 25% off.
So,<00:29:38.360><c> thanks</c><00:29:38.600><c> to</c><00:29:38.680><c> boot.dev</c><00:29:39.400><c> and</c><00:29:39.520><c> I</c><00:29:39.560><c> also</c><00:29:39.760><c> want</c>

00:29:39.910 --> 00:29:39.920 align:start position:0%
So, thanks to boot.dev and I also want
 

00:29:39.920 --> 00:29:42.190 align:start position:0%
So, thanks to boot.dev and I also want
to<00:29:39.960><c> thank</c><00:29:40.240><c> you</c><00:29:40.560><c> for</c><00:29:40.680><c> watching.</c>

00:29:42.190 --> 00:29:42.200 align:start position:0%
to thank you for watching.
 

00:29:42.200 --> 00:29:43.575 align:start position:0%
to thank you for watching.
&gt;&gt; You<00:29:42.400><c> have</c><00:29:42.560><c> arrived</c><00:29:43.160><c> at</c><00:29:43.320><c> your</c><00:29:43.440><c> destination.</c>

00:29:43.575 --> 00:29:43.585 align:start position:0%
&gt;&gt; You have arrived at your destination.
 

00:29:43.585 --> 00:29:49.470 align:start position:0%
&gt;&gt; You have arrived at your destination.
[music]

00:29:49.470 --> 00:29:49.480 align:start position:0%
 
 

00:29:49.480 --> 00:29:51.500 align:start position:0%
 
&gt;&gt; [music]

