Assignment Activity Unit 1
University of the People
CS 1105-01 Digital Electronics & Computer Architecture
November 18, 2026
Designing an Efficient Light Bulb Switch Circuit Using Boolean Algebra and Logic
Gates
John is an electronics enthusiast who has been asked to build a simple circuit in which
a switch controls a light bulb. The circuit must turn the bulb on when the switch is closed
(ON), turn it off when the switch is open (OFF), and use as few logic gates as possible. This
paper follows three steps: identifying the input and output signals, applying Boolean algebra
laws to find the simplest expression, and depicting the final circuit. The central finding is that
the bulb's state is identical to the switch's state, so the most efficient design needs no logic
gate at all. A single non-inverting buffer is justified only if extra drive current is required.
Identification of Input and Output Signals
The circuit has one input and one output. The input signal, S, represents the position of
the switch, and the output signal, L, represents the state of the light bulb. Both are binary
signals: logic 0 is the open or off state, and logic 1 is the closed or on state. Table 1 defines
the two signals.
Table 1
Input and Output Signals
Signal
Type
Represents
Logic 0 means
Logic 1 means
S
Input
Switch position
Switch open (OFF)
Switch closed (ON)
L
Output
Light bulb state
Bulb off
Bulb on
Because the requirement links the output directly to the input, the behavior can be
written as the truth table in Table 2. When S = 0, the bulb must be off, so L = 0. When S = 1,
the bulb must be on, so L = 1.
Table 2
Truth Table for the Switch and Bulb
S
L
0
0
1
1
Application of Boolean Algebra Laws
Boolean algebra lets a circuit's behavior be written as an expression and then
simplified so that fewer gates are needed (University of North Carolina at Chapel Hill, 2025).
In Table 2, the output is 1 in only one row, the row where S = 1, so the sum-of-products
expression has a single term: L = S. This is already the simplest form. To confirm that nothing
simpler or different is hiding in longer expressions, Table 3 starts from three deliberately
longer expressions that describe the same behavior and reduces each one with standard laws
(Baeldung, n.d.; Eastern Mediterranean University, n.d.).
Table 3
Simplification Steps Using Boolean Algebra Laws
Step
Expression
Law applied
A-1
L = (S · 1) + (S · S′)
Starting expression
A-2
L = S + (S · S′)
Identity law (S · 1 = S)
A-3
L=S+0
Complement law (S · S′ = 0)
A-4
L=S
Identity law (S + 0 = S)
B-1
L=S+S
Starting expression
B-2
L=S
Idempotent law (S + S = S)
C-1
L = (S′)′
Starting expression
C-2
L=S
Double negation law ((S′)′ = S)
All three derivations arrive at L = S. The result also shows why a NOT gate alone is
the wrong choice: it would give L = S′, which turns the bulb on when the switch is open.
Depiction of the Final Circuit
Since L = S, the output is a direct copy of the input. The minimal circuit therefore
connects the switch input to the bulb output with a wire and uses zero logic gates. Figure 1
shows the final circuit, with one input pin labeled S wired directly to one output pin labeled L.
Figure 1
Final Circuit: Direct Connection From S to L
S: Switch
L: Light Bulb
L= S (0 gates)
Table 4 compares candidate designs by gate count and by whether they meet the
required behavior.
Table 4
Comparison of Candidate Designs
Design
Gates
Evaluation
Direct connection (S to L)
0
Correct and minimal
Single buffer (S to buffer to L)
1
Correct; used only if a driver is needed
Design
Gates
Evaluation
Two NOT gates in series
2
Correct but wasteful
AND or OR with both inputs tied to S
1
Correct but unnecessary
NOT, NAND or NOR gate
1
Incorrect; inverts the signal
In a physical build, a logic signal may be too weak to power a bulb directly. A buffer is
a single-input gate whose output equals its input (Q = A), and it can supply more output
current to its load (King Fahd University of Petroleum and Minerals, n.d.). If John's switch
signal cannot drive the bulb, one buffer is the smallest addition that keeps the required
behavior, so it remains the minimum for that situation.
Explanation and Reasoning
The design choices follow from the Boolean result. NOT, NAND and NOR gates were
rejected because each inverts the signal, so the bulb would be on when the switch is open,
which violates the first condition. AND and OR gates with both inputs tied to S were rejected
because the idempotent laws (S · S = S and S + S = S) show that they add a gate without
changing the output (Baeldung, n.d.). Two NOT gates in series also work, by the double
negation law, but they use two gates where none are needed. Fewer gates mean a smaller
circuit, lower power consumption, shorter delay, and lower cost (University of North Carolina
at Chapel Hill, 2025), so the zero-gate design is the best choice.
The behavior can be checked in two cases. When the switch is open (S = 0), the wire
carries logic 0 to the output and the bulb is off. When the switch is closed (S = 1), the wire
carries logic 1 and the bulb is on. Both cases match Table 2, so all three conditions of the
assignment are satisfied.
Using Boolean algebra, the light bulb problem reduces to L = S. The circuit that meets
the conditions most efficiently is a direct connection with no logic gates, and a single buffer is
the only justified addition when extra drive current is needed. The exercise shows that
simplifying with Boolean laws is a practical way to avoid unnecessary hardware.
References
Baeldung. (n.d.). Basic laws in Boolean algebra. https://www.baeldung.com/cs/booleanalgebra-basic-laws
Eastern Mediterranean University. (n.d.). Laws and theorems of Boolean algebra [Course
reading].
https://opencourses.emu.edu.tr/pluginfile.php/60712/mod_resource/content/2/Addition
al%20Reading%20Laws%20and%20Theorems%20of%20Boolean%20Algebra.pdf
King Fahd University of Petroleum and Minerals. (n.d.). Lesson 2.3: Fan-out, drive and
buffers [Lecture notes]. https://faculty.kfupm.edu.sa/coe/abouh/Lesson2_3.pdf
University of North Carolina at Chapel Hill. (2025). COMP311 lecture 6: Boolean algebra,
digital tutorial [Lecture slides]. https://www.cs.unc.edu/~kakiryan/teaching/311fa25/slides/lecture06.pdf