Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,060 --> 00:00:02,740
You might be wondering
how are computers
2
00:00:02,740 --> 00:00:04,615
get these ones and zeros?
3
00:00:04,615 --> 00:00:07,300
It's a pretty question. Imagine
we have a light bulb and
4
00:00:07,300 --> 00:00:10,765
a switch that turns the state
of the light on or off.
5
00:00:10,765 --> 00:00:12,370
If we turn the light on,
6
00:00:12,370 --> 00:00:14,260
we can denote that state is one,
7
00:00:14,260 --> 00:00:16,120
if the light bulb is off,
8
00:00:16,120 --> 00:00:17,905
we can represent
the state as zero.
9
00:00:17,905 --> 00:00:20,710
Now imagine eight light
bulbs and switches that
10
00:00:20,710 --> 00:00:24,200
represents eight bits with
a state of zero or one.
11
00:00:24,200 --> 00:00:26,230
Let's backtrack to
the punch cards
12
00:00:26,230 --> 00:00:27,865
that were used in
Jacquard's loom.
13
00:00:27,865 --> 00:00:30,700
Remember that the loom use
cards with holes in them.
14
00:00:30,700 --> 00:00:32,710
When the loom would
reach a hole,
15
00:00:32,710 --> 00:00:34,405
it would hook to
thread underneath,
16
00:00:34,405 --> 00:00:36,190
meaning that the loom was on.
17
00:00:36,190 --> 00:00:37,645
If there wasn't a hole,
18
00:00:37,645 --> 00:00:40,480
it would not hook the
thread, so it was off.
19
00:00:40,480 --> 00:00:43,300
This is a foundational
binary concept.
20
00:00:43,300 --> 00:00:46,180
By utilizing the two
states of on or off,
21
00:00:46,180 --> 00:00:47,815
Jacquard was able to weave
22
00:00:47,815 --> 00:00:50,590
intricate patterns into
fabric with his looms.
23
00:00:50,590 --> 00:00:51,700
Then the industry started
24
00:00:51,700 --> 00:00:53,540
refining the punchcards
a little more.
25
00:00:53,540 --> 00:00:54,820
Where there was a whole,
26
00:00:54,820 --> 00:00:56,380
the computer would read one,
27
00:00:56,380 --> 00:00:58,645
if there wasn't a hole,
it would read zero.
28
00:00:58,645 --> 00:01:00,580
Then by just translating
29
00:01:00,580 --> 00:01:02,615
the combination of
zeros and ones,
30
00:01:02,615 --> 00:01:04,090
a computer could calculate
31
00:01:04,090 --> 00:01:06,025
any possible amount of numbers.
32
00:01:06,025 --> 00:01:09,120
Binary in today's computer
isn't done by reading holes.
33
00:01:09,120 --> 00:01:10,850
It uses electricity via
34
00:01:10,850 --> 00:01:13,865
transistors allowing electrical
signals to pass through.
35
00:01:13,865 --> 00:01:15,445
If there's an electric voltage,
36
00:01:15,445 --> 00:01:16,870
we would denote it as one,
37
00:01:16,870 --> 00:01:19,390
if there isn't, we would
denote it by zero.
38
00:01:19,390 --> 00:01:21,490
But just having transistors
isn't enough for
39
00:01:21,490 --> 00:01:23,830
our computer to be able
to do complex tasks.
40
00:01:23,830 --> 00:01:25,060
Imagine if you had two light
41
00:01:25,060 --> 00:01:27,035
switches opposite
ends of a room,
42
00:01:27,035 --> 00:01:28,830
each controlling of
light in the room.
43
00:01:28,830 --> 00:01:30,470
What if when you went to turn
44
00:01:30,470 --> 00:01:32,330
on the light with one switch,
45
00:01:32,330 --> 00:01:34,020
the other switch
wouldn't turn off?
46
00:01:34,020 --> 00:01:36,275
That'll be a very
poorly designed room.
47
00:01:36,275 --> 00:01:39,185
Both switches should either
turn the light on or off,
48
00:01:39,185 --> 00:01:40,975
depending on the
state of the light.
49
00:01:40,975 --> 00:01:43,835
Fortunately, we have something
known as logic gates.
50
00:01:43,835 --> 00:01:45,769
Logic gates allow
our transistors
51
00:01:45,769 --> 00:01:47,480
to do more complex tasks like
52
00:01:47,480 --> 00:01:49,430
decide where to send
electrical signals
53
00:01:49,430 --> 00:01:51,740
depending on logical conditions.
54
00:01:51,740 --> 00:01:53,945
There are lots of different
types of logic gates,
55
00:01:53,945 --> 00:01:55,885
but we won't discuss
them in detail here.
56
00:01:55,885 --> 00:01:57,440
If you're curious
about the role that
57
00:01:57,440 --> 00:02:00,515
transistors and logic gates
play in modern circuitry,
58
00:02:00,515 --> 00:02:03,020
you can read more about it in
the supplementary reading.
59
00:02:03,020 --> 00:02:05,270
Now we know how our
computer gets it's ones and
60
00:02:05,270 --> 00:02:08,015
zeros to calculate into
meaningful instructions.
61
00:02:08,015 --> 00:02:09,560
Later in this course,
we're going to be
62
00:02:09,560 --> 00:02:11,000
able to talk about
how we're able to
63
00:02:11,000 --> 00:02:13,550
turn human-readable
instructions into zeros
64
00:02:13,550 --> 00:02:16,280
and ones that our computer
understands through compilers.
65
00:02:16,280 --> 00:02:18,650
That's one of the very
basic building blocks of
66
00:02:18,650 --> 00:02:20,120
programming that's led to
67
00:02:20,120 --> 00:02:22,700
the creation of our favorite
social media sites,
68
00:02:22,700 --> 00:02:25,830
video games, and just
about everything else.5277
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.