A Level Computer Science Paper 1: 1.4.3. Boolean Algebra
This flashcard set introduces logic gates as components that process binary inputs to produce specific outputs. It explains how gates can be combined using truth tables and provides details on the NOT gate, including its symbol, function, and Boolean expression.
Logic gates
Take inputs from 1 or more binary switches and reach an output
Can be combined to form a complex circuit
Key Terms
Logic gates
Take inputs from 1 or more binary switches and reach an output
Can be combined to form a complex circuit
Combining logic gates
Make a column in your truth table for each gate, starting from the ones needed first
NOT gate
Symbol: One line going into a triangle with a circle at the point and a line coming out
What it does: Turns a 0 to a 1 and a 1 to a 0
Boolean...
AND gate
Symbol: Two lines into the long edge of a semi-circle, one coming out
What it does: Only outputs a 1 if both inputs are 1
Boolean algebra: P ...
OR gate
Symbol: Two lines into the inside of a crescent moon, one out
What it does: If one or both input(s) are 1 it outputs a 1
Boolean algebra: P =...
XOR gate
Symbol: The OR symbol but with another curve the same as the inside of the moon cutting the lines
What it does: Only outputs 1 if one input is 1...
Related Flashcard Decks
Study Tips
- Press F to enter focus mode for distraction-free studying
- Review cards regularly to improve retention
- Try to recall the answer before flipping the card
- Share this deck with friends to study together
| Term | Definition |
|---|---|
Logic gates | Take inputs from 1 or more binary switches and reach an output |
Combining logic gates | Make a column in your truth table for each gate, starting from the ones needed first |
NOT gate | Symbol: One line going into a triangle with a circle at the point and a line coming out |
AND gate | Symbol: Two lines into the long edge of a semi-circle, one coming out |
OR gate | Symbol: Two lines into the inside of a crescent moon, one out |
XOR gate | Symbol: The OR symbol but with another curve the same as the inside of the moon cutting the lines |
De Morgan’s First Law | ¬(A V B) = ¬A ∧ ¬B |
De Morgan’s Second Law | ¬(A ∧ B) = ¬A V ¬B |
How to implement de Morgan’s laws | Invert both terms, swap OR and AND and invert the whole result |
Associative Rule | If the same expression is used on three inputs the brackets can be anywhere or not there |
Commutative Rule | Changing which input comes first makes no difference E.g. A V B = B V A |
Distribution | Allows you to multiply out or factorise an expression, done the same as brackets in maths |
Double negative | ¬¬X = X |
Absorption | When brackets have the first input inside in front of it also with an and and an or inside and out you can eliminate the second variable X V ( X ∧ Y) = X X ∧ (X V Y) = X |
Finding an expression from a karnaugh map | Draw squares/rectangles around groups of 1s, find the expression for each and put around ors |
Grouping sizes in karnaugh maps | 1, 2, 4 or 8 Groups can overlap |
Order of rows/columns in karnaugh maps | 00, 01, 11, 10 |
Wraparound | Combining smaller groups on the edges to make a larger one with a simpler expression |
Half-adder circuit | Inputs A and B going into a XOR gate to give the digit The same 2 inputs go into an AND gate for the carry |
Half-adder vs adder | An adder can add 3 bits so is more practical (A, B and the previous carry bit) |
Adder circuit | Repeats the half-adder circuit with the output from the XOR and C as the inputs. |
n Adders | Can add together n pairs of bits with carry bits |
D-type flip-flop inputs and outputs | Inputs D and the clock Outputs Q and not Q |
How does a D-type flip-flop work? | On the rising edge of the clock (when it goes from 0 to 1), Q changes to equal the value of D and not Q the opposite. It will stay like this until the next rising edge (it doesn’t change on a falling edge) |
D-type flip-flop uses | Storing values (registers or counters) Static RAM |