AND OR NOT - Logic Gates Explained - Computerphile

  Рет қаралды 417,392

Computerphile

Computerphile

9 жыл бұрын

Audible free book: www.audible.com/computerphile
Basic logic gates explained and all the different ways they can be drawn and represented. Professor Brailsford takes us through the AND, OR & NOT logical operations.
3d X-Ray Images : • 3d X-Ray Images - Comp...
Hill Climbing Algorithm & Artificial Intelligence: • Hill Climbing Algorith...
Binary Addition & Overflow: • Binary Addition & Over...
How Computer Memory Works: • How Computer Memory Wo...
Easter Egg: • Logic Gates EASTER EGG...
/ computerphile
/ computer_phile
This video was filmed and edited by Sean Riley.
Computer Science at the University of Nottingham: bit.ly/nottscomputer
Computerphile is a sister project to Brady Haran's Numberphile. More at www.bradyharan.com

Пікірлер: 421
@b4ux1t3-tech
@b4ux1t3-tech 9 жыл бұрын
I already know all this stuff, but I watched the whole video simply because Professor Brailsford is such a wonderful lecturer. This is one of my all-time favorite channels, thanks for keeping with it! I would love to see a video going further into binary logic, for instance how NAND/NOR are used in flash memory, or how XOR is more generally used.
@SuperBartles
@SuperBartles 3 жыл бұрын
Christopher Pilcher Same. It’s like getting a masterclass in how to teach this stuff. I’ve been telling my son about propositional logic/Boolean algebra because it seems so useful in so many areas, most obviously computer science
@gradientO
@gradientO 3 жыл бұрын
@@SuperBartles what other areas?
@Rickyroko
@Rickyroko 9 жыл бұрын
Computerphile, you might consider doing an episode on the implementation of logic gates in RTL / CMOS so viewers can learn how all this actually works in silicon. I think Professor Derek McAuley has some knowledge on this from his discussion on Moore's Law. Great and interesting topics! Great work.
@bookdream
@bookdream 9 жыл бұрын
Probably the only Computerphile video in which I understood everything that was said.
@vimicito
@vimicito 6 жыл бұрын
I know that I'm quite late with my comment (3 years it seems), but I really wanted to say how much I like how Professor Brailsford cares about the electronics engineers. Much appreciated!
@erelde_
@erelde_ 9 жыл бұрын
Professor Brailsford seemed quite happy about explaining this ^^
@MilcorTheMighty
@MilcorTheMighty 9 жыл бұрын
2B + ~ 2B That is the question
@yousorooo
@yousorooo 9 жыл бұрын
You are mixing up the symbols.
@18vallancel
@18vallancel 9 жыл бұрын
2B || ~2B
@skifree0
@skifree0 9 жыл бұрын
18vallancel if the 2 is interpreted as a symbol and the ~ applied on (2B) as a whole on the RHS "technically speaking" thats a tautology => true. Did i break Shakespeare yet?
@18vallancel
@18vallancel 9 жыл бұрын
iamterence77 I know :)
@klutterkicker
@klutterkicker 9 жыл бұрын
True.
@alishawhelan-baxter6727
@alishawhelan-baxter6727 5 жыл бұрын
You teach this better than my computing teacher 😂💛
@johnbird9997
@johnbird9997 7 жыл бұрын
I like the way this guy explains things..are there more? Can I watch him exclusively?
@SinthTeck
@SinthTeck 9 жыл бұрын
That "square matrix" is called a Karnaugh map
@sp10sn
@sp10sn 3 жыл бұрын
@KamaCoding Interesting. What culture does not?
@troydavis3878
@troydavis3878 2 жыл бұрын
@KamaCoding It's simply a way of denoting things more precisely. Heisenberg's uncertainty principle, Euler's Number, Karnaugh Map, Pythagorean Theorem would be Principle, Number, Map and Theorem without the descriptive name of the practitioner who is most closely associated with it. Yes, owing to the time most of these discoveries were made, that being a time in which the preeminent science and math cultures of the world were western ones, many of these concepts have an Anglo name attached. I suspect in the future, we will see many more non-western names associated with discoveries to come.
@l0ckb0x22
@l0ckb0x22 2 жыл бұрын
@KamaCoding No, it's a Karnaugh map. Everyone studying computer architechture/organization knows this. To bring up culture here is not very elegant or clever.
@celinem9084
@celinem9084 4 жыл бұрын
I am 15 y/o and i learn this in school so this subject is amazing
@jacquelinemartinez3485
@jacquelinemartinez3485 2 жыл бұрын
Wonderful explanation, so calm and clear! Thanks
@Nintony58
@Nintony58 9 жыл бұрын
Had to learn this if you wanted to use redstone in Minecraft
@AkariInsko
@AkariInsko 4 жыл бұрын
True
@decrodedart2688
@decrodedart2688 3 жыл бұрын
Had to learn this (and beyond) to operate real life.
@Henrix1998
@Henrix1998 3 жыл бұрын
Similar to real life, only NAND and inverters are efficient in Minecraft, everything else needs extra pieces
@ziconghuang7139
@ziconghuang7139 3 жыл бұрын
But I leaned logic gate through redstone
@memerboi69.0
@memerboi69.0 2 жыл бұрын
@@Henrix1998 isn't or the simplest
@similartoself4750
@similartoself4750 6 жыл бұрын
Thank you for this! Great help in only a few minutes! You guys rock!
@anteconfig5391
@anteconfig5391 7 жыл бұрын
That "easter egg" at 2:00 would've been fun if it lead me somewhere but this was a lot of ones and zeros to begin with. whatever I still had some fun.
@trydodgingthis
@trydodgingthis 7 жыл бұрын
This is so clearly explained and so simply put. Honestly, fantastic tutorial
@Koseiku
@Koseiku 9 жыл бұрын
Good video, prof. I am learning logic gates right now. Quite an interesting topic.
@VinnieLeeStudio
@VinnieLeeStudio 6 жыл бұрын
Simple but wonderful! If you want really interesting triggering rhythms in modular synths, you need to learn this.
@Wesserz
@Wesserz 9 жыл бұрын
Thanks guys, just doing logic gates with my year 9 class, they'll love this!
@Luis1n7
@Luis1n7 2 жыл бұрын
Why does KZbin offer better lectures than my university? Great video! :)
@moazelsawaf2000
@moazelsawaf2000 5 жыл бұрын
You are great sir ❤️ I love your accent, sound, and your flow ❤️
@erobertt3
@erobertt3 3 жыл бұрын
disappointed that you didn't show the actual mechanics of how these work, personally I think that the logic behind it is pretty simple and intuitive
@nick1p.x226
@nick1p.x226 8 жыл бұрын
Great explanation, loved it
@gracemorrison5304
@gracemorrison5304 6 жыл бұрын
It was very useful for me. Thank you for the video!
@ShullTV
@ShullTV 3 жыл бұрын
Great video, thank you!
@gemma2901
@gemma2901 4 жыл бұрын
Thank you very much!!! Lovely explanation!
@Wykesidefruitmachine
@Wykesidefruitmachine 9 жыл бұрын
I love this. A fantastic free education by true scholars, and the knowledge that any revenue generated will be used to perpetuate education!
@minasalah2668
@minasalah2668 4 жыл бұрын
better than my college teacher great channel..keep it up
@SingHouse
@SingHouse 9 жыл бұрын
Very interesting to a layman like me to see how abstract logic takes on a physical form through electronics! I imagine that's how computer circuits work at a very fundamental level? Computer science must be an interesting subject.
@BertGrink
@BertGrink 6 жыл бұрын
In the digram symbol for the NOT-gate (inverter) it's really the little circle that does the inversion; you can also have a non-inverting buffer stage which is just the triangle without the circle.
@chasemarangu
@chasemarangu 7 жыл бұрын
Thank you for this! Now I get logic gates.
@eideticex
@eideticex 9 жыл бұрын
Nice thing about treating AND as multiply and OR as addition is that they have nearly identical mathematical properties. So you can write your outputs as a set of math functions. From that point optimizing your logic for least amount of gates becomes the familiar "simplification" stuff we were taught in arithmetic classes.
@Shadow4707
@Shadow4707 9 жыл бұрын
Nothing's stopping you from writing your outputs using the and-sign, or-sign and not-sign in math language. Just specify the behaviour of the three symbols and your good to go. :D (max-function for or-gates, min-function for and-gates, "if 1 then 0 else 1"-function for not-gates. Very easy.)
@Goatsee
@Goatsee 9 жыл бұрын
Basic gates, good refresher
@Antox68
@Antox68 8 жыл бұрын
Hello, I'm really interested by computerphile's videos. Are those kinds of lessons covered in computer science or computer engineering?
@eternalodball6426
@eternalodball6426 Жыл бұрын
woah great it's so wonderful learning like that
@brisinger184
@brisinger184 7 жыл бұрын
Thanks! This helped a lot!
@salom77
@salom77 7 жыл бұрын
I really enjoyed it.
@ethanlee4405
@ethanlee4405 6 жыл бұрын
Very useful, thanks.
@Schindlabua
@Schindlabua 9 жыл бұрын
To our european viewers: The way Professor Brailsford draws his logic gates is not what you'll usually see around here, as he uses a US standard. We simply draw squares with a symbol in it (& for and, ≥1 for or, etc). We also use the little circles denoting not operations for brevity, and all in all I think it's nicer and more intuitive than the random shapes which you have to memorize. Seeing how americans like random standards (three feetsies in a yard!) it doesn't surprise me that they still use it though :P The US-standard is called US ANSI 91-1984, the european one IEC 60617-12.
@rohanaslam2592
@rohanaslam2592 6 жыл бұрын
This helped a lot thanks
@KilgoreOnDrugs
@KilgoreOnDrugs 9 жыл бұрын
These are crucial basics, and very important... but you should really make another make another video on XOR and NAND, which are immensely usefull (but of courseyou are aware of that :) )
@YawnGod
@YawnGod 9 жыл бұрын
This is so nice.
@Selur91
@Selur91 9 жыл бұрын
Here in Spain the a.b(Many-times even a dot-less ab) is more commonly used, at least in college, than the a and b. Same thing for the or, but with the NOT we use it like !a, the ¬ is only used in maths. Also, with CMOS gates, the NOR and NAND are not a gate with a NOT behind, but the other way around, the OR is a NOR with a NOT "glued" behind.
@wexer82
@wexer82 9 жыл бұрын
Very cool video
@HungLionSmokes
@HungLionSmokes 6 жыл бұрын
David Attenborough for logic.
@KurakiN64
@KurakiN64 9 жыл бұрын
The logical addition actually represents the exclusive or and it perfectly makes sense when you realise that the mathematical structure ({0;1};+;⋅) in which you perform your calculations is identical to ℤ/2ℤ, hence 1 + 1 = 0.
@Schindlabua
@Schindlabua 9 жыл бұрын
+ is merely a symbol and you can define it any way you want really. It's also gotta be said that not only ℤ/2ℤ can form a boolean algebra, any lattice with a couple of additional properties does. + for regular old or starts to make a lot more sense when you look at how you'd build it with transistors, which is more or less just "connecting wires" - so HIGH signal + HIGH signal still equals HIGH signal, not LOW.
@DominicVictoria
@DominicVictoria 5 жыл бұрын
For people who are wondering how Not Gates really work. Not Gates technically doesn't turn convert the input into it's inverted state. Your input will just be read not modified. Instead. Gives you an output based on what your input is. Look it up and you'll know what I mean.
@retardedead5124
@retardedead5124 5 жыл бұрын
This guy is awesome. People these days aren't ready to know what's happening behind the scenes of these gates. And this is what it is. These are building blocks of CPU's and building introductions into a CPU I guess!
@Paul-vi9gh
@Paul-vi9gh 2 жыл бұрын
This video helped me understand the circuit system in Factorio... :)
@offtheball87
@offtheball87 9 жыл бұрын
I like a line over the notted symbols, because then you get this little mnemonic: Break the line, change the sign. I can't write it with the line over here, but it's a handy shortcut: !(A + B) = !A . !B It's also a little easier to read when you've got a complex equation. Fewer parentheses all over the place.
@rchandraonline
@rchandraonline 9 жыл бұрын
NOT is also written a lot of times with a bar over the input designator. For example, if the input is designated as A, NOT A will be written as an A with a line or bar over it.
@BertGrink
@BertGrink 6 жыл бұрын
and still others use a / to denote the negative state, eg "/A", typically when you're using plain text.
@paramountphysics
@paramountphysics 2 жыл бұрын
Best concept
@ociemitchell
@ociemitchell 9 жыл бұрын
I have also seen set intersection ∩ for and and union∪used for or. This makes sense if you think of a venn diagram. The intersection is where both statements are true and the union is where either one is true.
@GogiRegion
@GogiRegion 5 жыл бұрын
As soon as you mentioned multiplication, it hit me that or is just + and xor is -. I’m working on some assembly stuff, so that might come in handy.
@tanveerhasan2382
@tanveerhasan2382 4 жыл бұрын
Xor is equivalent to minus! I never thought of that
@m_t_t_
@m_t_t_ 2 жыл бұрын
@@tanveerhasan2382 how is it? 0-1 is not 1
@tanveerhasan2382
@tanveerhasan2382 2 жыл бұрын
@@m_t_t_ it's minus 1
@dmitripogosian5084
@dmitripogosian5084 Жыл бұрын
xor is exactly + mod 2, isn't it ?
@koszuta
@koszuta 9 жыл бұрын
2:00 Nice Easter Egg.
@AkariInsko
@AkariInsko 4 жыл бұрын
What did it mean in text
@NoName-ui5ou
@NoName-ui5ou 4 жыл бұрын
Akari Insko "easter egg"
@wildcommando117
@wildcommando117 9 жыл бұрын
Do some videos on database and logical modeling, Chen's notation and the such. Im taking it in university so im highly interested in it
@heterodoxagnostic8070
@heterodoxagnostic8070 4 жыл бұрын
in binary, 1+1=10 and the last digit is 0, so why isn't xor called logical sum instead of or gates?
@trenvert123
@trenvert123 6 жыл бұрын
One way of representing an OR gate mathematically is *a + b - (ab)*
@78anurag
@78anurag 2 жыл бұрын
How did you come up with that formula?
@nauvis
@nauvis 9 жыл бұрын
Found the Easter egg. Worth writing it out and adding the slots. Back to the video I go!
@sarainiaangelsong440
@sarainiaangelsong440 2 жыл бұрын
You forgot the And + Not for a Nand, as you did the Nor, but yeah I learned 3 notations today, all I knew before was the pictures of them but never the notation so it was neat.
@fdagpigj
@fdagpigj 9 жыл бұрын
It's worth noting that you can make an AND gate by inverting the inputs to an OR gate and then inverting the output, which means that AND actually consists of OR and NOT gates, and as such you can make any logic with only those two gates.
@RunnerPack
@RunnerPack 9 жыл бұрын
It works the other way, too. In fact, when I learned Boolean logic, I was told that NAND is sometimes called the "universal gate" because if you short its inputs together, it becomes an inverter (NOT). Thus, given enough of them, you could theoretically build any given logic circuit. For example, you could use two "NAND inverters" to invert the inputs of another NAND to make your OR gate.
@XannieXcool
@XannieXcool 5 жыл бұрын
v nice, thamks
@rougeandrei9095
@rougeandrei9095 7 жыл бұрын
This is helpful it is also better than watching redstone logic gates rather than computer logic gates
@ahmidahmid9303
@ahmidahmid9303 5 жыл бұрын
Thank you
@nguyenphuoc6714
@nguyenphuoc6714 5 жыл бұрын
Thanks!
@finno2679
@finno2679 6 жыл бұрын
Cool how this transfers to math with like Venn diagrams with the intersect and union stuff
@armincal9834
@armincal9834 4 жыл бұрын
One of those topics that are actually pretty deep and Scientific yet pretty easy to understand, if only we could formulate all the other difficult Scientific topics like we have the logic gates and boolean algebra in general :D
@ConsciousAtoms
@ConsciousAtoms 9 жыл бұрын
nice easter egg!
@allanfloyd8103
@allanfloyd8103 9 жыл бұрын
Next should be one on how you can build an XOR (exclusive OR gate) out of these components.
@TheInevitableHulk
@TheInevitableHulk 3 жыл бұрын
Would XOR emulate addition with AND representing the carry bit?
@wanchan7842
@wanchan7842 6 жыл бұрын
I can't find any video about 'boolean satisfiability problem' on the computerphile channel :(Are you going to make one?
@BenuthBasnet
@BenuthBasnet 3 жыл бұрын
subscribed
@heheboi8831
@heheboi8831 3 жыл бұрын
this just summarize my entire first chapter of my math class
@NiallsSongs
@NiallsSongs 4 жыл бұрын
I want to avoid giving the impression that I have any intelligent understanding of this stuff at all, but it seems to me that that matrix is a really nice way to represent the possible outputs for the inputs.
@OVRxNxOUT
@OVRxNxOUT Жыл бұрын
I absolutely hated Truth Tables in high school math. I think they got introduced 1st in Like algebra II OR III & got ever more complicated in Geometry & I think also Trig?? I took as many honors classes as I could & I think We even saw them pop up in my Physics class. I wish I hadn’t of hated them so much as this is one of those moments of- ‘If only I knew then what I know now…’ I would’ve appreciated them, tried a bit harder, & understood a helluva lot more about why they exist & their function to everyday life.
@MinorMood
@MinorMood 3 жыл бұрын
Thanks a lot for the video, sir! The only question I still have - irrelative to the main topic, though - is why you use the music notation sheet (for orchestration, as a matter of fact) for drawing here?))
@Computerphile
@Computerphile 3 жыл бұрын
This is "music lined" computer listing paper - it looks similar to a musical stave but it's numbered for computer code and comes on a continuous feed - aka "fan-fold" paper. Hope that helps -Sean
@rockydo2307
@rockydo2307 7 жыл бұрын
3:15 That really confused me when doing mechatronics, I wasn't sure if it meant and or multiplication but both made sense anyway haha.
@BetaSwimmer
@BetaSwimmer 2 жыл бұрын
Not is often also represented by the 'bang' symbol "!" And fun math logic, if you 'not' a logic pair, like a+b, and factorally apply the 'not' to the formula like a multiplier you also flip the operator symbol. Ex: ! = not !(a+b) ==> !a.!b Not(a and b) ==> not a or not b
@kkk007jamesbond
@kkk007jamesbond 4 жыл бұрын
Long live the professor.
@hansangb
@hansangb 2 жыл бұрын
Got here a bit late. But now I have to go see if Karnaugh (sp?) map is covered as the natural extension of this series.
@_Anna_Nass_
@_Anna_Nass_ Жыл бұрын
Omg I knew AND was A multiplied by B but I didn’t know why until just now and it’s so simple and I feel so dumb for not putting that together myself
@Skydude69
@Skydude69 8 жыл бұрын
I love how he writes on that old fashioned printer paper. his video might help me pass my Systems Architecture class. Thanks!
@RuneaIndustries
@RuneaIndustries 9 жыл бұрын
Nice little "easter egg" :D
@skinnedtomato9720
@skinnedtomato9720 7 жыл бұрын
Time for logic! There are three AND gates, one OR gate, and one NOR gate. One signal is connected to the A on the first AND gate, and one signal is connected to the B on the first AND gate. Signal A is off. This AND gate is also connected to the OR gate. A signal is connected to the A signal on the second AND gate. There is another signal on the second AND gate. Signal A and Signal B are on. The NOR gate has a signal that is on. The NOR and OR gate are connected to the A and B signals of the last AND gate. Is the last AND gate on or off?
@strivingtoo7669
@strivingtoo7669 6 жыл бұрын
Thanks
@Kram1032
@Kram1032 9 жыл бұрын
did you paint the ¬ instead of typing it in the video?
@mavriksc
@mavriksc 9 жыл бұрын
i've never seen the ~ notation for not. the other one we used in Discrete was to put a bar over the item.
@mustafatalaeezadehkhousani4856
@mustafatalaeezadehkhousani4856 8 жыл бұрын
I prefer to think that NOT symbol is just that little circle. That way we already know that the triangle is just a simple buffer, so the circle with a triangle is actually a negating buffer.
@SirFancyPantsMcee
@SirFancyPantsMcee 2 жыл бұрын
This helps me remember that AND starts before OR. multiplication before division. Could be a bad way to think about it.
@Midaspl
@Midaspl 9 жыл бұрын
That 'different way' is called Karnaugh map ;) .
@CarlosTrejo2309
@CarlosTrejo2309 9 жыл бұрын
Thanks to Little Big Planet 2 I already knew that :)
@zacboss467
@zacboss467 6 жыл бұрын
I like how his "truth table" is a K-Map. That might be a little ambiguous to the uninitiated down the line if they don't know the difference between a proper truth table and a K-map
@Theldonio
@Theldonio 9 жыл бұрын
You can actually create any gate using only nor gates or only nand gates. I'm pretty sure actual computers use nands (transistors) whereas Minecraft logic uses nors (redstone torches).
@skifree0
@skifree0 9 жыл бұрын
actually you can frequently interchange where nands and nors are used. You can build a transistor based nor gate in the same amount of material as it does to build a nand gate. really its all dependant on the type of logic you are building. for instance building a S/R latch with nor gates is cheaper than building it with NAND gates because with NAND, bot S/R have to be inverted before feeding into the latch itself.
@FinaISpartan
@FinaISpartan 9 жыл бұрын
All gates can be made with Or And Not Nor and Nand
@angeldude101
@angeldude101 9 жыл бұрын
The nand gates in real computers are only a few micrometers across (I don't known the actual distance) and can transfer a signal extremely fast. A single not gate in Minecraft can take up to 2m^3 in volume and passes signals in just 1/10 of a second.
@Rocky183
@Rocky183 9 жыл бұрын
Final Spartan what about if you not use and and or or and nand or and nor?
@ConsciousAtoms
@ConsciousAtoms 9 жыл бұрын
angeldude101 Modern cpu gate size is on the order of 20 nanometers.
@oscarchivas3123
@oscarchivas3123 9 жыл бұрын
Is XOR similar to OR except there can only be one 1 (one true and one false)?
@preenaidoo298
@preenaidoo298 4 жыл бұрын
This guy could sell ice to a penguin
@thomasbroadbent9518
@thomasbroadbent9518 8 жыл бұрын
Can you use group theory notation like Union or Intersect? Seems very similar.
@RylanEdlin
@RylanEdlin 8 жыл бұрын
They are similar, but definitely not the same. You don't really use union or intersection to display logic, though you could argue that if you take a set containing something to mean true and the empty set to mean false, then you could perform and and or with them. I can't think of a reason why you would want to, though.
@xingewen
@xingewen 9 жыл бұрын
Hello, At the top of the page it is written AND OR NOT XOR Then in the video we are explained the AND, the OR, the NOT and the NOR So is an XOR same as a NOR ?
@Computerphile
@Computerphile 9 жыл бұрын
辛格文 XOR is a separate video, sorry for the confusion - XOR coming very soon!
@NWProductionsHD
@NWProductionsHD 9 жыл бұрын
Amelia explained it precisely in truth table form but it's the eXclusive or. In the exclusive case if A or B are true, then the output is true, BUT if A AND B are both true, then the output is false. To compare it to real life an exclusive or is similar to where you order a meal at a restaurant, and you have a choice between soup OR salad as the side dish. This is an example of an exclusive or as we can have one or the other, but not both. When dealing with or's we assume them to be inclusive, and because of this fact we have the always funny (but extremely corny) joke: "A logician goes out to dinner and orders the steak, the server asks if they would like the soup or salad, the logician responds yes." //_^
@Desmaad
@Desmaad 9 жыл бұрын
Speaking of logic gates, I found out that three-way light switches (where two switches control one light fixture) operate like XNOR gates: both inputs have to be in the same state to produce an "on" or 1 state.
@klutterkicker
@klutterkicker 9 жыл бұрын
Did you know there are three-way dimmer switches? I really want to try one of those.
@PhazonSouffle
@PhazonSouffle 9 жыл бұрын
The ones in my house don't discern which state the switches are in. The light changes state when one of the switches changes state. Despite pondering over this since age 5 I still have no idea how it works.
@ColinRichardson
@ColinRichardson 9 жыл бұрын
Is it not a XOR rather than a XNOR? Better to think "When they are both off, it's off" I know technically they are the same thing, but Adding the extra inversion for no reason to the outcome.
@Tfin
@Tfin 9 жыл бұрын
PhazonSouffle OR is a0 b0 = 0 a1 b0 = 1 a1 b1 = 1 a0 b1 = 1 XOR (eXclusive OR) is a0 b0 = 0 a1 b0 = 1 a1 b1 = 0 a0 b1 = 1 You'll see that every switch flip with XOR flips the state, similar your 3-ways, BUT they're (probably) the other way around, so that the light is on only when both switches are in the same position (both up or both down), which is the NOT version of that, the OP's XNOR.
@JsbWalker
@JsbWalker 9 жыл бұрын
PhazonSouffle It works the way that Desmaad described, using an XNOR or XOR gate. In an XOR gate the gate is exclusive, which means that the output only works when only one of the other inputs are on. If they are in the same state it is off. Now imagine that your lights are on and they are controlled by two switches. The first switch is on, and the second switch is off. If you were to turn the first switch off, the switches would be in the same state and the lights would be off. If you were to turn the second switch on, the switches would be in the same state and the lights would be off. So with this logic it doesn't matter which switch you press, the outcome will be that the output switches states as the switches move in and out of synchronicity.
@DrGreenGiant
@DrGreenGiant 6 жыл бұрын
Any reason why you didn't state C type bitwise operators? & |
@alachabre
@alachabre 8 жыл бұрын
Nice video on basic truth tables. It would be interesting to see this channel do a video on the NAND gate, which is the truly universal logic gate. Any logic, from the simplest to the most complex, can be constructed using combinations of NAND and only NAND.
@ClicketyClack
@ClicketyClack 7 жыл бұрын
NAND and NOR are both universal. And so are four other (uncommonly-used) gates.
@obidahasdia4095
@obidahasdia4095 4 жыл бұрын
*What about XOR?*
XOR & the Half Adder - Computerphile
9:31
Computerphile
Рет қаралды 250 М.
How Computer Memory Works - Computerphile
14:16
Computerphile
Рет қаралды 836 М.
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 22 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
UFC Vegas 93 : Алмабаев VS Джонсон
02:01
Setanta Sports UFC
Рет қаралды 221 М.
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН
Why Use Binary? - Computerphile
8:29
Computerphile
Рет қаралды 664 М.
L Systems : Creating Plants from Simple Rules - Computerphile
15:16
Computerphile
Рет қаралды 45 М.
OR, AND, and XOR gates
9:46
Craig Robertson
Рет қаралды 52 М.
Exploring How Computers Work
18:12
Sebastian Lague
Рет қаралды 3,4 МЛН
Fibonacci Programming - Computerphile
8:57
Computerphile
Рет қаралды 244 М.
Boolean Logic & Logic Gates: Crash Course Computer Science #3
10:07
CrashCourse
Рет қаралды 2,8 МЛН
The Most Difficult Program to Compute? - Computerphile
14:55
Computerphile
Рет қаралды 1,4 МЛН
Making logic gates from transistors
13:02
Ben Eater
Рет қаралды 2,6 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 22 МЛН