Why Do Computers Use 1s and 0s? Binary and Transistors Explained.

Full Transcript — Download SRT & Markdown

00:00
Speaker A
It's a common theme throughout the modern world that everything in a computer's brain comes down to ones and zeros.
00:06
Speaker A
You've most likely heard that this code of ones and zeros is what's referred to as binary.
00:13
Speaker A
And while almost everybody knows that this is somehow related to what computers do, very few of us seem to understand what binary is or why computers use it.
00:24
Speaker A
If you want to know, then this video is for you, because it's actually a very simple concept.
00:29
Speaker A
And still quite fascinating, before we get to computers, let's talk about what binary itself is.
00:36
Speaker A
As it existed long before computers did, binary is nothing more than a system of counting.
00:41
Speaker A
To understand how it works, let's look at two other systems of counting, tally marks and the glorious base 10 positional that we all know and love today.
00:49
Speaker A
Tally marks are the simplest counting system imaginable, however many things you have, you put down that many marks, easy as pie, but not very efficient.
00:56
Speaker A
Meanwhile, base 10 positional, which is what we use today, uses a different symbol to represent different amounts of things.
01:03
Speaker A
With the numbers zero through nine, we can recognize that each symbol indicates a different amount of things.
01:10
Speaker A
If we need to represent something higher than nine, we add a digit to the left.
01:16
Speaker A
Roll its first digit back to zero and start over.
01:19
Speaker A
This system is very efficient compared to tally marks because each digit we add.
01:26
Speaker A
Exponentially increases the amount of things we can represent.
01:31
Speaker A
Because in this system we add a new digit every 10 things.
01:38
Speaker A
Each digit represents an increasing power of 10.
01:43
Speaker A
This is the number of ones we have, the number of tens, the number of hundreds, the number of thousands, and so on.
01:50
Speaker A
Now, this is probably something you already know.
01:55
Speaker A
But it's very important to keep it in mind when we talk about binary.
02:00
Speaker A
Now, binary works the exact same way as base 10 positional.
02:07
Speaker A
But instead of each digit going from zero to nine, it goes from zero to one.
02:13
Speaker A
Counting upwards in binary sounds like this: 0, 1, 10, 11, 100, 101, 110, 111, and 1000.
02:20
Speaker A
Because each digit of binary has only two values and not 10, each additional digit represents an increasing power of two, rather than an increasing power of 10.
02:30
Speaker A
So this is the number of ones we have, the number of twos, fours, eights, 16s, 32s, 64s, 128s, and so on.
02:40
Speaker A
Not nearly as efficient as base 10, but exponentially more efficient than tally marks.
02:46
Speaker A
Literally.
02:48
Speaker A
So now that we know how binary works, let's talk about computers.
02:53
Speaker A
Why did the first computer creators, as wise and intelligent as they are.
03:00
Speaker A
Waste their time with such an ineffective system of counting?
03:05
Speaker A
Well, it's because of a physical limitation on how computers work.
03:11
Speaker A
Everything a computer does comes down to what's known as micro transistors.
03:17
Speaker A
Simple, tiny, incy-bincy little switches that can either be on or off.
03:24
Speaker A
And can be flipped on or off with a very weak electrical charge.
03:28
Speaker A
The first goal was to get computers to count.
03:31
Speaker A
And to get them to count by using these switches, we could use the tally system.
03:40
Speaker A
Meaning the number of on switches equals the number of things we have.
03:46
Speaker A
Or we could use the much more efficient system of binary.
03:52
Speaker A
Where each switch represents a digit of binary.
03:56
Speaker A
Eight transistors using the tally system could represent a number as large as eight by turning all of them on.
04:03
Speaker A
With binary, we can represent a number as high as 255.
04:10
Speaker A
An on switch means a one.
04:14
Speaker A
And an off switch means a zero.
04:17
Speaker A
Now is a good time to mention that a single transistor.
04:22
Speaker A
Is what's known as a bit, which stands for binary digit.
04:28
Speaker A
A byte is eight of these bits in a row, which means any number between zero and 255.
04:36
Speaker A
So if binary is just a system of counting.
04:41
Speaker A
What do people mean when they explain how to spell things in binary?
04:45
Speaker A
Well, what they really mean is how to spell things with ASCII, the American Standard Code for Information Interchange.
04:53
Speaker A
Is a way to convert a computer's data, which can only be in numbers, and turn it into letters for humans to have an easier time to work with.
05:02
Speaker A
ASCII simply assigns a character to each value represented by a byte of binary.
05:08
Speaker A
Now, because a byte has eight digits of binary to work with, and eight digits of binary can represent up to 255 values.
05:17
Speaker A
ASCII had 255 letters and symbols to choose from.
05:24
Speaker A
More than enough for the entire alphabet.
05:27
Speaker A
Punctuation marks and other symbols.
05:31
Speaker A
For example, the corresponding ASCII number for an uppercase A is 65.
05:37
Speaker A
Now, 65 in base 10 is equal to 1,000,001 in binary.
05:42
Speaker A
So whenever you type in an uppercase A in a word program, a coding program, or a scripting program or whatever.
05:54
Speaker A
Somewhere there's a little tiny row of eight transistors arranged in the pattern of off, on, off, off, off, off, off, on.
06:05
Speaker A
Which represents 01000001 in binary.
06:12
Speaker A
Which is interpreted as 65 in base 10.
06:17
Speaker A
Which is converted by ASCII into an uppercase A.
06:22
Speaker A
You're likely starting to get a feel for the staggering amount of transistors required to write something as simple as a Facebook status.
06:29
Speaker A
Let alone all the different coding that your computer has to do to make the screen light up, play games, calculate massive values, and so on.
06:40
Speaker A
Well, long before we got to the point where your phone can play three-dimensional games.
06:48
Speaker A
It became clear that numbers as high as 255 just weren't going to cut it.
06:56
Speaker A
Regardless of how many bytes we had.
07:00
Speaker A
And it was a lot.
07:03
Speaker A
Even adding four fully active bytes together could only get a number as high as 1020.
07:13
Speaker A
To solve this problem, new computers were designed to recognize two bytes as one single number.
07:21
Speaker A
So now instead of referencing one line of eight transistors, computers could reference two lines.
07:30
Speaker A
Giving 16 digits worth of binary.
07:34
Speaker A
This was a huge help because it increased the amount of representable numbers exponentially from 255 up to 65,535.
07:45
Speaker A
When you hear people talking about the difference between 8-bit and 16-bit.
07:52
Speaker A
This is more or less it.
07:55
Speaker A
Now, that doesn't mean that a 16-bit system is exponentially that much more powerful.
08:04
Speaker A
Because your program isn't always going to be utilizing all of these numbers in each byte that it represents.
08:10
Speaker A
It just has the option to.
08:12
Speaker A
Which opens up lots of doors.
08:15
Speaker A
Well, this could go on for ages and ages, but I want to end this particular video right here.
08:21
Speaker A
So as not to be overwhelming.
08:24
Speaker A
In future videos, I will explain how computers use these numbers to decide which pixel is what color on your monitor.
08:32
Speaker A
What the different components of your computer are for.
08:37
Speaker A
And how hard drives store binary digits on a spinning disk rather than in transistors.
08:44
Speaker A
Thank you for watching.
08:46
Speaker A
And if you enjoyed this video, liking and subscribing is always a huge help.
08:50
Speaker A
Well, I've been enjoying making these instructional videos, I might move them to a different channel soon.
08:59
Speaker A
And continue doing comedic gaming related things on this channel.
09:05
Speaker A
So as not to confuse YouTube's search algorithm.
09:07
Speaker A
Which I think I am.

Get More with the Söz AI App

Transcribe recordings, audio files, and YouTube videos — with AI summaries, speaker detection, and unlimited transcriptions.

Or transcribe another YouTube video here →