CrashCourse · @crashcourse

Boolean Logic & Logic Gates: Crash Course Computer Science #3

Uploaded June 8, 2017 · Length 10:07

Boolean Logic & Logic Gates: Crash Course Computer Science #3

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.

  1. 0:03

    Hi, I’m Carrie Anne and welcome to Crash Course Computer Science!

  2. 0:06

    Today we start our journey up the ladder of abstraction, where we leave behind the simplicity

  3. 0:10

    of being able to see every switch and gear, but gain the ability to assemble increasingly

  4. 0:15

    complex systems.

  5. 0:16

    INTRO

  6. 0:25

    Last episode, we talked about how computers evolved from electromechanical devices, that

  7. 0:30

    often had decimal representations of numbers – like those represented by teeth on a gear

  8. 0:35

    – to electronic computers with transistors that can turn the flow of electricity on or off.

  9. 0:39

    And fortunately, even with just two states of electricity, we can represent important information.

  10. 0:44

    We call this representation Binary -- which literally means “of two states”, in the

  11. 0:48

    same way a bicycle has two wheels or a biped has two legs.

  12. 0:52

    You might think two states isn’t a lot to work with, and you’d be right!

  13. 0:55

    But, it’s exactly what you need for representing the values “true” and “false”.

  14. 0:59

    In computers, an “on” state, when electricity is flowing, represents true.

  15. 1:03

    The off state, no electricity flowing, represents false.

  16. 1:06

    We can also write binary as 1’s and 0’s instead of true’s and false’s – they

  17. 1:10

    are just different expressions of the same signal – but we’ll talk more about that in the next episode.

  18. 1:15

    Now it is actually possible to use transistors for more than just turning electrical current

  19. 1:19

    on and off, and to allow for different levels of current.

  20. 1:22

    Some early electronic computers were ternary, that's three states, and even quinary, using 5 states.

  21. 1:27

    The problem is, the more intermediate states there are, the harder it is to keep them all

  22. 1:31

    seperate -- if your smartphone battery starts running low or there’s electrical noise

  23. 1:35

    because someone's running a microwave nearby, the signals can get mixed up... and this problem

  24. 1:39

    only gets worse with transistors changing states millions of times per second!

  25. 1:43

    So, placing two signals as far apart as possible - using just ‘on and off’ - gives us the

  26. 1:48

    most distinct signal to minimize these issues.

  27. 1:51

    Another reason computers use binary is that an entire branch of mathematics already existed

  28. 1:55

    that dealt exclusively with true and false values.

  29. 1:58

    And it had figured out all of the necessary rules and operations for manipulating them.