CrashCourse · @crashcourse
Boolean Logic & Logic Gates: Crash Course Computer Science #3
Uploaded June 8, 2017 · Length 10:07
Summary
Learn about Boolean logic, its three basic operations (NOT, AND, OR), and how they are implemented using transistors to create logic gates.
- boolean logic explained
- logic gates transistors
- not and or gates
- computer science basics
- binary true false
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
Hi, I’m Carrie Anne and welcome to Crash Course Computer Science!
- 0:06
Today we start our journey up the ladder of abstraction, where we leave behind the simplicity
- 0:10
of being able to see every switch and gear, but gain the ability to assemble increasingly
- 0:15
complex systems.
- 0:16
INTRO
- 0:25
Last episode, we talked about how computers evolved from electromechanical devices, that
- 0:30
often had decimal representations of numbers – like those represented by teeth on a gear
- 0:35
– to electronic computers with transistors that can turn the flow of electricity on or off.
- 0:39
And fortunately, even with just two states of electricity, we can represent important information.
- 0:44
We call this representation Binary -- which literally means “of two states”, in the
- 0:48
same way a bicycle has two wheels or a biped has two legs.
- 0:52
You might think two states isn’t a lot to work with, and you’d be right!
- 0:55
But, it’s exactly what you need for representing the values “true” and “false”.
- 0:59
In computers, an “on” state, when electricity is flowing, represents true.
- 1:03
The off state, no electricity flowing, represents false.
- 1:06
We can also write binary as 1’s and 0’s instead of true’s and false’s – they
- 1:10
are just different expressions of the same signal – but we’ll talk more about that in the next episode.
- 1:15
Now it is actually possible to use transistors for more than just turning electrical current
- 1:19
on and off, and to allow for different levels of current.
- 1:22
Some early electronic computers were ternary, that's three states, and even quinary, using 5 states.
- 1:27
The problem is, the more intermediate states there are, the harder it is to keep them all
- 1:31
seperate -- if your smartphone battery starts running low or there’s electrical noise
- 1:35
because someone's running a microwave nearby, the signals can get mixed up... and this problem
- 1:39
only gets worse with transistors changing states millions of times per second!
- 1:43
So, placing two signals as far apart as possible - using just ‘on and off’ - gives us the
- 1:48
most distinct signal to minimize these issues.
- 1:51
Another reason computers use binary is that an entire branch of mathematics already existed
- 1:55
that dealt exclusively with true and false values.
- 1:58
And it had figured out all of the necessary rules and operations for manipulating them.


